Where in the header.php file?

Forums Forums Menus Where in the header.php file?

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #13
    Anonymous
    Member

    Hi, wondering where exactly in the header.php file one should place your code in?

    #1869

    Where you put the code is entirely up to you. It depends on where exactly in your blog you want it to appear. Usually you would place it towards the end of the file. If you would like specific help with your theme, drop me a line via my contact page and I’ll help you from there.

    #1969

    Where you put the code is entirely up to you. It depends on where exactly in your blog you want it to appear. Usually you would place it towards the end of the file. If you would like specific help with your theme, drop me a line via my contact page and I’ll help you from there.

    #1870
    Anonymous
    Member

    If I want it to appear in the header horizontally in the header of my kubrick theme. Where in the header.php file should I place it. What codes near it should I look for.

    #1970
    Anonymous
    Member

    If I want it to appear in the header horizontally in the header of my kubrick theme. Where in the header.php file should I place it. What codes near it should I look for.

    #1871

    Edit: I tested this tonight and found you need to clear your floats or the search box will blow out the side of the page. I’ve edited the code below accordingly.

    The Kubrick theme is slightly annoying this regard as it doesn’t have a fixed width box to plonk your content in, or at least it does, but that box includes the graphical borders which you won’t want your menu obscuring. But you can get around this by using a DIV tag with margins to pull the edges of the menu in as follows:

    Below this section of code in your header.php file:
    [code:vhl65qbz]<div id="page">
    <div id="header">
    <div id="headerimg">
    <h1><a href="http://ryanhellyer.net/test/wordpress1/">Ryan’s test blog</a></h1>
    <div class="description">This is Ryan’s blog for testing out WordPress stuff</div>
    </div>
    </div>
    <hr />[/code:vhl65qbz]

    Place the following code:
    [code:vhl65qbz]<div style="margin:0 25px;">
    <?php suckerfish(); ?>
    </div>
    <div style="clear:both;"></div>[/code:vhl65qbz]

    That should place the menu nicely underneath the main header for you. I haven’t test it though, so if it doesn’t look correct then let me know.

    #1971

    Edit: I tested this tonight and found you need to clear your floats or the search box will blow out the side of the page. I’ve edited the code below accordingly.

    The Kubrick theme is slightly annoying this regard as it doesn’t have a fixed width box to plonk your content in, or at least it does, but that box includes the graphical borders which you won’t want your menu obscuring. But you can get around this by using a DIV tag with margins to pull the edges of the menu in as follows:

    Below this section of code in your header.php file:
    [code:vhl65qbz]<div id="page">
    <div id="header">
    <div id="headerimg">
    <h1><a href="http://ryanhellyer.net/test/wordpress1/">Ryan’s test blog</a></h1>
    <div class="description">This is Ryan’s blog for testing out WordPress stuff</div>
    </div>
    </div>
    <hr />[/code:vhl65qbz]

    Place the following code:
    [code:vhl65qbz]<div style="margin:0 25px;">
    <?php suckerfish(); ?>
    </div>
    <div style="clear:both;"></div>[/code:vhl65qbz]

    That should place the menu nicely underneath the main header for you. I haven’t test it though, so if it doesn’t look correct then let me know.

    #1872
    Anonymous
    Member

    Please can you show as wich line do we have to put the code :
    <?php wp_page_menu();} ?>
    ON the Header.php page.

    #1972
    Anonymous
    Member

    Please can you show as wich line do we have to put the code :
    <?php wp_page_menu();} ?>
    ON the Header.php page.

    #1873

    Please don’t bump ancient posts like this.

    The instructions you are following were incorrect (unless you have the "Auto Theme Support" option turned on). You need to add the following code:

    [code:2a5hkx7i]<?php if ( function_exists( ‘pixopoint_menu’ ) ) {pixopoint_menu();} ?>[/code:2a5hkx7i]

    It is impossible to tell you where since there are tens of thousands of different themes and they’re all different.

    #1973

    Please don’t bump ancient posts like this.

    The instructions you are following were incorrect (unless you have the "Auto Theme Support" option turned on). You need to add the following code:

    [code:2a5hkx7i]<?php if ( function_exists( ‘pixopoint_menu’ ) ) {pixopoint_menu();} ?>[/code:2a5hkx7i]

    It is impossible to tell you where since there are tens of thousands of different themes and they’re all different.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.