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 »

Center Page Menu Bar


  #1  
Old Jan 26, 2009, 01:42 AM
technstuff
 
6 posts · Jan 2009
Help Center Page Menu Bar

How do you center the the Page Menu Bar so the text is not on the left but in the middle?
  #2  
Old Jan 26, 2009, 04:38 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
EDIT: See post#17 (css-only, not exactly centered) and post#19 (table, exactly centered) for alternative/better solutions

Change functions/bfa_header_config.php, line 12

PHP Code:
$page_menu_bar '<div id="menu1"><ul id="rmenu2" class="clearfix rMenu-hor rMenu">' "\n"
to

PHP Code:
$page_menu_bar '<div id="menu1"><div class="clearfix rMenu-center">
<ul id="rmenu2" class="clearfix rMenu-hor rMenu">' 
"\n"
and, line 23

PHP Code:
$page_menu_bar .= '</ul></div>' "\n"
to

PHP Code:
$page_menu_bar .= '</ul></div></div>' "\n"
and at Atahualpa Theme Options -> HTML/CSS Inserts -> CSS Inserts, add, for instance, this:

HTML Code:
ul#rmenu2 {
border: 0;
}
div.rMenu-center {
border: dashed 1px #ccc;
overflow: hidden;
}
The overflow:hidden in the CSS style above solves the problem of the horizontal scrollbar that appears too early but it hides the vertical drop downs in non-IE browsers.

Last edited by Flynn; Feb 24, 2009 at 01:29 PM. Reason: Added "overflow:hiden" to div.rMenu-center{...}
  #3  
Old Jan 26, 2009, 08:48 AM
technstuff
 
6 posts · Jan 2009
I made the changes and still no center.

Thank You for all your help with this.
BTW I great theme!
  #4  
Old Jan 26, 2009, 09:17 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Are you running a 3.x version? I tried it in 3.1.8 and it worked.
  #5  
Old Jan 26, 2009, 10:19 AM
technstuff
 
6 posts · Jan 2009
Hmmmm
3.1.8 downloaded yesterday. I went to paste the code for you here but when I did I noticed extra *'s so
I manually typed the code above and it worked. I guess copy and pasted added some crap maybe.

I added background color to span the site (just incase anyone else tries the code and wants to span the site.
PHP Code:
ul#rmenu2 {
border0;
}
div.rMenu-center {
borderdashed 1px #ccc;
background-colorwhite;

Thank You again for all your help. Best worpdress theme I have ever used and help from the developer.

I bought viva7 for a client. Developer never responds to email, theme is hard to work with and now has quite and never released a wordpress 2.7 of the theme
  #6  
Old Feb 6, 2009, 04:52 PM
cks
 
2 posts · Feb 2009
I tried it too an nothing happened. I checked the code and it looks the same. I also have some CSS in the CSS box for making the header navigation bold. Would that affect it?

Thanks!
  #7  
Old Feb 17, 2009, 10:05 AM
khou
 
7 posts · Feb 2009
Quote:
Originally Posted by Flynn
Are you running a 3.x version? I tried it in 3.1.8 and it worked.
It's also works in 3.2 !

Thanks Flynn
  #8  
Old Feb 23, 2009, 08:06 AM
kcmeesha
 
4 posts · Feb 2009
Quote:
Originally Posted by Flynn
Change functions/bfa_header_config.php, line 12
after replacing line 12 I now have some white space on the right of the page and scroll bar on the bottom, the size of extra space seems to depend on the menu text size with anything over 24px causing the page to be wider than the screen. Menu is not nearly as wide as the page so I am not sure why this is happening. I adjusted the text size to 22px but I wonder why this is happening.
Thanks
www.kcmeesha.com
  #9  
Old Feb 24, 2009, 08:48 AM
Tigger
 
35 posts · Feb 2009
Same to me. Looks like the menu bar went through the right border of the whole screen. For the menu bar I added a picture as background and now it is even getting a bit worse.

Seems like the menu has three containers with a bit different settings. One of them is getting pushed to the right by centering the menu bar.

Also the scroll bar on the bottom is a bit nasty.

Anybody has an idea how to fix that ?
  #10  
Old Feb 24, 2009, 01:06 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
You both have the same issue but it doesn't seem to be caused by the menu bar.

@kcmeesha: Your Google iframe ad is 200px wide, the sidebar is 200px including 10px padding on each side. If you change all the 3 or so "200px" and "200" values in the Google ad the scrollbar goes away. The ad's container is too wide for the given sidebar width. Or change your right sidebar to 220px.

@tigger: Your scollbar issue seems to be gone now that you gave the layout a smaller width. If you want me to find the problem, please change it to the width it had before (99% or 100% ?) again for the next few days
  #11  
Old Feb 24, 2009, 01:16 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
@Tigger
@kcmeesha

The scrollbars come back when the window is being resized.

The scrollbars seem to start when the window width is smaller than 2 x [menu bar width]

Looking into it...
  #12  
Old Oct 19, 2010, 07:35 AM
jstein
 
95 posts · Sep 2010
Is this still the same code I'd use for the more recent versions of WP/Atahualpa? I noticed this post is from more than two years ago. I too am trying to center my menu items. Someone gave me the code to do it and it worked, except that the sub menu itmes were all off center an inaccessible because the mouse couldn't get over to them without them disappearing.

Any thoughts?

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Atahualpa Page Menu Bar -&gt; BFA Page Menu Bar? bhannemann Page & Category Menu Bars 16 Feb 21, 2011 04:49 AM
[SOLVED] Page Menu Bar - Strange Space Occurring Between Menu Items NealSchaffer Page & Category Menu Bars 2 Jun 20, 2009 10:18 AM
A hack to align page navigation menu to center araneum Page & Category Menu Bars 8 Apr 9, 2009 07:48 PM
How do I add an icon to a page menu link in page menu bar? bcorrigan Page & Category Menu Bars 9 Apr 6, 2009 02:35 PM
Center titles in menu bar. c32v Page & Category Menu Bars 2 Apr 5, 2009 07:13 AM


All times are GMT -6. The time now is 03:00 PM.


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