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 » New Versions, & Updating » Old Version fixes and change logs »

BugFix 344 Title tags in Page Menu Bar


  #1  
Old Oct 4, 2009, 09:10 PM
Henry64
 
3 posts · Oct 2009
My observation/question has to do with the configuring of the Page Menu Bar. The "No" option of the "Title tags in Page Menu Bar" seems to work for all pages except the "Home" page. And even though the "Home" page name can be changed to something else, hovering always displays the blog title as set in the "General" settings of WordPress. Is there a way to turn off the title tag for the "Home" page? Or alternatively, is there a way to change the "title" that is displayed when hovering to something other than the name of the page?



Thanks!
  #2  
Old Oct 5, 2009, 07:39 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
When hovering over the pages in the page menu bar, a 'Title' should showup depending on the setting at ATO->Page Menu Bar->Title tags in Page Menu Bar. However, if this setting is 'No' hovering over the 'Home' page will display the Blog Title.

The following change will change this so that displaying the Blog Title when hovering over the 'Home' menubar item, will be controled by the 'ATO->Page Menu Bar->Title tags in Page Menu Bar' setting.

Edit bfa_header_config.php and locate the code starting with the comment '// "Home" Link?'
(in version 3.4.4 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 replace that section with the following
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'] . '/"';
		if ( $bfa_ata['titles_page_menu_bar'] == "Yes" ) { 
			$page_menu_bar .= ' title="' . $bfa_ata['bloginfo_name'] . '"';
		}
		$page_menu_bar .= '>' . $bfa_ata['home_page_menu_bar'] . '</a></li>' . "\n";	
	}
__________________
"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 17, 2009 at 02:43 PM.

Bookmarks

Tags
hover, page menu bar, title



Similar Threads
Thread Thread Starter Forum Replies Last Post
BUGFIX 364-01: “Title tags in Category Menu Bar” fails to remove muti-line title juggledad Old Version fixes and change logs 2 Feb 10, 2011 04:47 PM
BUGFIX 361-01: meta tags not appearing in generated source juggledad Old Version fixes and change logs 5 Jan 13, 2011 04:57 AM
BUGFIX 351/352-05: Page Title Does Not Display Hyphens, Commas, etc. juggledad Old Version fixes and change logs 1 Aug 8, 2010 12:03 PM
How to configure title tags for page menu bar? upscho Page & Category Menu Bars 2 Feb 25, 2009 01:26 PM


All times are GMT -6. The time now is 05:20 PM.


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