ThemeShaper Forums » Thematic


thematic_header() and functions

(3 posts)
  • Started 8 years ago by d_rec
  • Latest reply from d_rec
  • This topic is resolved
  1. Finally got my Wamp Server and Localhost up and running in time for some much need redisn of my website. What I've been trying to achieve is similar to how the logo and menu appears on my site now - by using this function;

    // Take Away Default Thematic Header
    function new_header() {
    add_action('init', 'new_header');
    // Insert Custom Header
    function custom_header() { ?>

    <div id="page-menu" class="menu">
    <ul id="page-nav" class="sf-menu">

    <?php wp_list_pages('title_li='); ?>

    <?php }
    add_action('thematic_header','custom_header', 'wp_page_menu', 'childtheme_menu');

    Now I'd like to put the header aside widget slightly above my menu and is where I get stuck. I can get the widget in the header using the code from this post;

    Would I have to create a new widget area plus move the menu from 'thematic_access',9 all in the one function? Could I get away without removing the blog description or is what I want is to make a total custom header?

    Posted 8 years ago #
  2. i dont think you need to remove the thematic_access at all to get it to line up w/ the logo. you should be able to do that with CSS. give a width to the #branding div and maybe float it?

    then adding the widget area would depend on where you'd like it to appear in the code. there are several open spots in the thematic_header

    you could use 2 or 4 (or 5 since you are unhooking the descriptions) to get it inside branding. or use spot #6 to have it outside of the branding div. OR if you want it to be in the header but before the branding div you could unhook thematic_brandingopen from the first spot and move it to the second

    function move_brandingopen(){

    will remove the brandingopen function from its current spot and this will hook it into spot 2:


    if you wanted to move the thematic access it would be the same process... you dont have to re-write the function using wp_list_pages etc...
    then spot 1 will be open for your new

    Posted 8 years ago #
  3. Thanks Helgatheviking(sorry for late reply), tried that above code but it conflicted with a file in wp-includes. Found your reply about Bacon and Stuff and sort of worked it out. I've had to use a lot of padding to get the placement right, not 100% happy with the menu but it's a work in progress.
    Thank you to all those that ask questions and thanks to those that answer - I'll never fully remember how to code and have found valuable links/posts from this forum.

    Posted 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.