• Resolved kremin

    (@kremin)


    Two questions, both dealing with text that appears when you hover your cursor.

    When I hover over my page’s tab, either in Chrome or Firefox, it replicates the site title twice. I’d like the site title to just appear once!

    On a related note, when I hover over the post circles, a text bubble pops up repeating the post title – how do I erase this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kremin

    (@kremin)

    For the first part, is this a function of the header? I’m using a Child Theme and Custom CSS to make it confusing, but in the parent theme I believe I would have to alter this block of code:

    <title><?php
    	/*
    	 * Print the <title> tag based on what is being viewed.
    	 */
    	global $page, $paged;
    
    	wp_title( '|', true, 'right' );
    
    	// Add the blog name.
    	bloginfo( 'name' );
    
    	// Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";
    
    	// Add a page number if necessary:
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'spun' ), max( $paged, $page ) );
    
    	?></title>
    Thread Starter kremin

    (@kremin)

    For others who are curious, that was indeed the block. It created some sort of redundancy. I removed the following chunk:

    // Add the blog name.
    	bloginfo( 'name' );
    
    	// Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";
    
    	// Add a page number if necessary:
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'spun' ), max( $paged, $page ) );

    …then saved the header.php file and uploaded it to my child theme and the duplication in tabs is gone!

    Still can’t figure out how to eliminate hovering text when mousing-over the circles, however…

    Thread Starter kremin

    (@kremin)

    I spent a monster amount of time in my child theme’s version of content-home.php, hoping that would be the place to remove the floating text boxes, but to no avail. Has anyone had any success removing mouseover floating titles from Spun? I’ve never seen a page where anyone has removed them…

    Thread Starter kremin

    (@kremin)

    Success! If anyone wants to do this on their blog, I would install the “Use Google Libraries” plugin; then add this jQuery to your footer.php before </body>:

    <script type="text/javascript">
    jQuery('document').ready(function($){
    	$('[title]').removeAttr('title');
    });
    </script>

    So awesome.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Site Title Appearing Twice on Mouseover / Removing Hover Titles?’ is closed to new replies.