WordPress.org

Ready to get started?Download WordPress

Forums

Spun
[resolved] Site Title Appearing Twice on Mouseover / Removing Hover Titles? (5 posts)

  1. kremin
    Member
    Posted 12 months ago #

    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?

  2. kremin
    Member
    Posted 12 months ago #

    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>
  3. kremin
    Member
    Posted 12 months ago #

    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...

  4. kremin
    Member
    Posted 12 months ago #

    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...

  5. kremin
    Member
    Posted 12 months ago #

    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.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.