- This topic has 10 replies, 2 voices, and was last updated 15 years, 6 months ago by
imported_Ryan.
-
AuthorPosts
-
April 23, 2008 at 8:32 am #13
Anonymous
MemberHi, wondering where exactly in the header.php file one should place your code in?
April 23, 2008 at 8:34 am #1869imported_Ryan
MemberWhere 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.
April 23, 2008 at 8:34 am #1969imported_Ryan
MemberWhere 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.
April 23, 2008 at 8:35 am #1870Anonymous
MemberIf 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.
April 23, 2008 at 8:35 am #1970Anonymous
MemberIf 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.
April 23, 2008 at 8:37 am #1871imported_Ryan
MemberEdit: 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.
April 23, 2008 at 8:37 am #1971imported_Ryan
MemberEdit: 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.
December 26, 2009 at 10:22 am #1872Anonymous
MemberPlease can you show as wich line do we have to put the code :
<?php wp_page_menu();} ?>
ON the Header.php page.December 26, 2009 at 10:22 am #1972Anonymous
MemberPlease can you show as wich line do we have to put the code :
<?php wp_page_menu();} ?>
ON the Header.php page.December 26, 2009 at 1:16 pm #1873imported_Ryan
MemberPlease 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.
December 26, 2009 at 1:16 pm #1973imported_Ryan
MemberPlease 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.
-
AuthorPosts
- You must be logged in to reply to this topic.