Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Old Version fixes and change logs (http://forum.bytesforall.com/forumdisplay.php?f=37)
-   -   BugFix 344 Title tags in Page Menu Bar (http://forum.bytesforall.com/showthread.php?t=3730)

Henry64 Oct 4, 2009 08:10 PM

BugFix 344 Title tags in Page Menu Bar
 
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!

juggledad Oct 5, 2009 06:39 AM

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";       
        }



All times are GMT -6. The time now is 08:02 PM.

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