ThemeShaper Forums » Thematic

Adding content or image below header

(3 posts)
  • Started 10 years ago by Jamie Mitchell
  • Latest reply from Jamie Mitchell
  • This topic is resolved
  1. Jamie Mitchell
    Member

    hi all...

    Geez i love thematic, it just keeps getting better.

    now, i am just working out how to add the home menu link as well as an add_action for some content, image banner or file (like themeshaper) into a childtheme function.php

    this is an example of what i did, it works perfectly, but can somebody just take a look and see if it is infact the right way to do it.

    thanks in advance.

    <?php
    function childtheme_menu_args($args) {
    $args = array(
    'show_home' => 'Home',
    'sort_column' => 'menu_order',
    'menu_class' => 'menu',
    'echo' => true
    );
    return $args;
    }

    ?>

    <?php
    function childtheme_sample_content() {
    ?>
    <div id="leader">sample content</div>

    <?php
    }
    add_filter('wp_page_menu_args','childtheme_menu_args');
    add_action('thematic_belowheader','childtheme_sample_content');
    ?>

    Posted 10 years ago #
  2. Hey Jamie,

    this is the recommended way to do it.

    Cheers,

    Chris

    Posted 10 years ago #
  3. Jamie Mitchell
    Member

    yeh! :)

    thanks Chris...

    Posted 10 years ago #

RSS feed for this topic

Reply

You must log in to post.