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 »

[SOLVED] Home link in page-right menu order


  #1  
Old Aug 5, 2009, 09:36 PM
reneevt5
 
1 posts · Aug 2009
I have my page menu bar set to %page-right in ATO>Style and Edit Header Area.

In this setting, all the pages get sorted in reverse order, with home page last (on the right). I have fixed the other pages by reversing their page order but the Home page stays on the right.

In ATO>Page Menu Bar I have Home in the first box and menu_order chosen for the page order.

www.anovelwritingsite.com

How do I get Home to move to the left side of the list?

Last edited by reneevt5; Aug 6, 2009 at 01:29 AM.
  #2  
Old Aug 6, 2009, 06:03 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The reversal of the menu is due to CSS. To get the menu to the right side, a CSS 'float: Right;' is used. This causes the items to be listed from right to left instead of the normal left to right.

You could set your page order so the item you want to be the left most - when '%page-right' is used has the highest number, nd decrease the page numbers, but it won't help with the 'home' tag.

To move the home tage, you will have to make a code change. This code change will only effect the 'home' tag (but you could use the page order also)

in 3.4.2, edit bfa_header_config.php and find the block of code (lines 22-34)
HTML Code:
	// "Home" Link?
	if ( $bfa_ata['home_page_menu_bar'] != '' ) {
		$page_menu_bar .= '<li class="page_item';
		if (function_exists('is_front_page')) {
			if ( is_front_page() ) { 
				$page_menu_bar .= ' current_page_item';
			}
		} elseif ( is_home() ) { 
			$page_menu_bar .= ' current_page_item';	
		}
		$page_menu_bar .= '"><a href="' . $bfa_ata['get_option_home'] . '/" title="' . $bfa_ata['bloginfo_name'] . '">' . 
		$bfa_ata['home_page_menu_bar'] . '</a></li>' . "\n";	
	}
and change it to (note add new first line and last line)
HTML Code:
	// "Home" Link?
	if ( strpos($header_items,"%page-right") == FALSE ) {
	if ( $bfa_ata['home_page_menu_bar'] != '' ) {
		$page_menu_bar .= '<li class="page_item';
		if (function_exists('is_front_page')) {
			if ( is_front_page() ) { 
				$page_menu_bar .= ' current_page_item';
			}
		} elseif ( is_home() ) { 
			$page_menu_bar .= ' current_page_item';	
		}
		$page_menu_bar .= '"><a href="' . $bfa_ata['get_option_home'] . '/" title="' . $bfa_ata['bloginfo_name'] . '">' . 
		$bfa_ata['home_page_menu_bar'] . '</a></li>' . "\n";	
	}
	}
next, cut this enire block of code and add it before the line
HTML Code:
	// Close table if centered
change the first line of this block from
HTML Code:
	if ( strpos($header_items,"%page-right") == FALSE ) {
to
HTML Code:
	if ( strpos($header_items,"%page-right") !== FALSE ) {
that should cause the 'home' tab to be the first item in the menubar, reading from left to right, no matter where the menubar is centered.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Oct 4, 2009 at 03:33 PM.
  #3  
Old Oct 4, 2009, 03:29 PM
aaro
 
3 posts · Oct 2009
I had this same problem, and this fixed it! I owe you. However, you may want to change the following instructions:

Quote:
Originally Posted by juggledad
next, copy this enire block of code and add it before the line
HTML Code:
	// Close table if centered
Since you actually need to cut the section, not copy it. For a CSS noob like me, that word makes the difference between success and aggravation. But thanks again!
  #4  
Old Oct 4, 2009, 03:32 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Good point - fixed post and changed post #2 the word 'copy' to 'cut'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jan 16, 2010, 12:39 AM
rinoa3108
 
53 posts · Apr 2009
if we change the .php files though, will we need to add them in again when we upgrade to newer versions of Atahualpa?
  #6  
Old Jan 16, 2010, 04:39 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That is correct
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jan 27, 2010, 11:02 AM
jdtfk
 
9 posts · Jan 2010
I had the same problem.
In my case it was the categories section, so just had to change

Quote:
if ( strpos($header_items,"%page-right") !== FALSE ) {
to

Quote:
if ( strpos($header_items,"%cat-right") !== FALSE ) {
Thanks juggledad.
  #8  
Old Oct 18, 2010, 02:16 PM
gasserol
 
7 posts · Oct 2009
Hello, is this right for atahualpa 3.5.3 too?
Thanks for your excellent theme!
  #9  
Old Dec 8, 2010, 05:50 PM
Sophie's Avatar
Sophie
 
1 posts · Dec 2010
Hi there! thank you for your wonderful theme!

It's my first time ever doing this...so, I messed up!
I followed the steps you said above but I have 3.4.9 version. WordPress 3.0.1. and now my header is messed up. no "Home" page anymore and other shifting of spaces in the header place. I put in attach how it looks now my bfa_header_config.php.

pls tell me what changes should I do to get back the "Home" page - and to appear first when the pages are listed on the right side.

pls help!
Gratitude,
Sophie
Attached Files
File Type: txt bfa_header_config.php xx.txt (11.6 KB, 1860 views)

Last edited by Sophie; Dec 8, 2010 at 06:44 PM.
  #10  
Old Dec 29, 2010, 03:02 PM
photomeblack's Avatar
photomeblack
 
7 posts · Oct 2010
Dallas, TX
In version 3.5.3
Quote:
$page_menu_bar .= '<li class="page_item';
and
Quote:
$page_menu_bar .= '"><a href="' . $bfa_ata['get_option_home'] . '/" title="' . $bfa_ata['bloginfo_name'] . '">' .
appear as below
Quote:
echo '<li class="page_item';
and
Quote:
echo '"><a href="'; bloginfo('url'); echo '/" title="'; bloginfo('name'); echo '">' .
Leaving the code as is, when I follow the procedures in #2 (and #3) there is no change. Is there a different procedure for v3.5.3?
  #11  
Old Jan 7, 2011, 08:17 PM
photomeblack's Avatar
photomeblack
 
7 posts · Oct 2010
Dallas, TX
Solution for Atahualpa 3.5.3 and WordPress 3.0.3: Create your menu list in WordPress Menus, change %pages to %page-right in ATO>Style & edit HEADER AREA>Configure Header Area. Then follow Juggledad's recommendations in #2 above. When you view your page, if your page order on the menu is reversed, reverse the order of your menu elements on the WordPress Menus page.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Changing order of page menu bar ofpeb Page & Category Menu Bars 13 Jan 5, 2012 11:07 PM
Rotating Header Images link to Different pages instead of home page? WordPressZen.com Header configuration & styling 10 Oct 13, 2010 01:41 PM
my-category-order plugin order by 'order' not working darrenk Page & Category Menu Bars 3 Mar 24, 2010 07:56 AM
Right Aligned page menu bar; links are in wrong order aaro Page & Category Menu Bars 1 Oct 4, 2009 06:37 AM
page menu bar order Tony0 Atahualpa 3 Wordpress theme 1 Aug 3, 2009 06:12 PM


All times are GMT -6. The time now is 11:05 AM.


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