Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Small Question - Links in Header


  #1  
Old Jan 8, 2009, 01:59 PM
JamesFerguson
 
5 posts · Jan 2009
Small Question - Links in Header

I was able to figure this out in the previous version of Atahualpa, but I'm stumped on this version. I love the way the layout shows the page links on the top of the header. I wanted to use the same style, but instead of page links, provide links to other things (ie: Twitter page, Facebook profile, etc.). I was able to update the header.php file with this before, but I'm unable to figure it out this time. Any help would be greatly appreciated.

Thanks!
  #2  
Old Jan 8, 2009, 02:11 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
In header.php, find

PHP Code:
         <?php bfa_header_config($bfa_ata_configure_header); ?>
and before or after it put this

PHP Code:
 <div id="menu1"><ul id="rmenu2" class="clearfix rMenu-hor rMenu">
<
li><a href="link">Link Text</a></li>
<
li><a href="link">Link Text</a></li>
<
li><a href="link">Link Text</a></li>
<
li><a href="link">Link Text</a></li>
<
li class="rMenu-expand"><a href="link">Link with sub menu</a>
 <
ul class="rMenu-ver">
    <
li><a href="link">Sub menu item 1</a></li>
    <
li><a href="link">Sub menu item 2</a></li>
</
ul>
</
li>
<
li><a href="link">Link Text</a></li>
</
ul></div
This example has second level items, too. Too remove them, remove this part of the code:

PHP Code:
<li class="rMenu-expand"><a href="link">Link with sub menu</a>
 <
ul class="rMenu-ver">
    <
li><a href="link">Sub menu item 1</a></li>
    <
li><a href="link">Sub menu item 2</a></li>
</
ul>
</
li
Finally, still in header.php, find

PHP Code:
 <?php if (strpos($bfa_ata_configure_header,'pages')!==FALSE) { ?>sfHover( 'rmenu2' );<?php ?>
and replace with

PHP Code:
 <?php # if (strpos($bfa_ata_configure_header,'pages')!==FALSE) { ?>sfHover( 'rmenu2' );<?php # } ?>
sfHover( 'rmenu2' );
After you implemented this, don't use the page menu bar (%pages) anymore in Atahualpa Theme Options -> Header. Using both the page menu bar and this custom link menu bar at the same time will cause errors in IE6 and maybe other browsers too.
  #3  
Old Jan 8, 2009, 02:30 PM
JamesFerguson
 
5 posts · Jan 2009
Wow. Thanks for the quick response. I'm most of the way there. I was able to find and add in the code you suggested. Is there a way to have it appear like the links to the pages do in one of the bars in the header?
  #4  
Old Jan 8, 2009, 02:54 PM
JamesFerguson
 
5 posts · Jan 2009
Quote:
Originally Posted by Flynn
[/php]Finally, still in header.php, find

PHP Code:
 <?php if (strpos($bfa_ata_configure_header,'pages')!==FALSE) { ?>sfHover( 'rmenu2' );<?php ?>
and replace with

PHP Code:
 <?php # if (strpos($bfa_ata_configure_header,'pages')!==FALSE) { ?>sfHover( 'rmenu2' );<?php # } ?>
sfHover( 'rmenu2' );
After you implemented this, don't use the page menu bar (%pages) anymore in Atahualpa Theme Options -> Header. Using both the page menu bar and this custom link menu bar at the same time will cause errors in IE6 and maybe other browsers too.
Thanks again, Flynn. I was able to do the first part, but this part is holding me up. It seems that I can almost get it to work with the %pages listed in the Theme Options, but that's the opposite of what you suggested. Right now the links come up fine and in the correct format, but below them the pages will come up. If I take out the %pages, I get a regular, un-styled vertical list of links instead of the horizontal list.
  #5  
Old Jan 8, 2009, 03:20 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Update: This post is for Atahualpa up to version 3.1.7.
Atahualpa up to 3.1.7: Use Post #2 + Post #5 (this post)
Atahualpa 3.1.8 and newer: Use Post #2 + Post #10 (see below)

Doh - I forgot one setting. In style.css.php, find

PHP Code:
<?php if (strpos($bfa_ata_configure_header,'%pages')!==false OR strpos($bfa_ata_configure_header,'%cats')!==false) { ?>
and replace with

PHP Code:
<?php # if (strpos($bfa_ata_configure_header,'%pages')!==false OR strpos($bfa_ata_configure_header,'%cats')!==false) { ?>
Still in style.css.php, find

PHP Code:
<?php ?>


/* ------------------------------------------------------------------
---------- HACKS: Clearfix & others ---------------------------------
------------------------------------------------------------------ */
and replace with

PHP Code:
<?php # } ?>


/* ------------------------------------------------------------------
---------- HACKS: Clearfix & others ---------------------------------
------------------------------------------------------------------ */
  #6  
Old Jan 8, 2009, 05:24 PM
JamesFerguson
 
5 posts · Jan 2009
Thank you so much! That fixed it. Thank you very much for your help with this. I really appreciate it. I'll be donating shortly.
  #7  
Old Jan 30, 2009, 11:22 AM
Masselyn
 
91 posts · Jan 2009
So. California
I wonder if I am doing something wrong with this code, because my menu bar (the one mentioned above) comes up fine...looks & works great...but it is showing at the end of the header just above the first post. I want it to be above my header image, where I would have the pages menu show. How can I adjust this?

Thanks.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Header and Sidebar Question kbaldwin Header configuration & styling 4 Jul 11, 2009 12:34 PM
Image too small at 770 px for Atahualpa theme - any way to make it stretch to 100%? houston777 Header configuration & styling 1 Jul 5, 2009 04:25 PM
Custom Header - Inserting HTML table and links over header. hotsauce Header configuration & styling 2 Apr 9, 2009 05:56 AM
Additonal question about changing header clarissahulsey Header configuration & styling 1 Feb 13, 2009 07:18 PM
Elementary question re header images robertayers Header configuration & styling 1 Feb 10, 2009 05:38 PM


All times are GMT -6. The time now is 12:10 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.