• Hi,

    First of all, I love your plugin. It came recommended directly from Studiopress.

    Quick question though: By default, the plugin duplicates the title onto the image, leaving me with two H1. I thought about hiding one of them with CSS but that would probably hurt SEO.

    Any idea how to fix this?

    Thank you so much!

Viewing 1 replies (of 1 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    Breakthrough Pro does a lot of moving the title around on various pages. You have two options, depending on which H1 you would like to keep. The easiest option is to keep the theme title and disable the plugin title. To do this, go to Appearance > Display Featured Image for Genesis, and make sure the “Do not move the titles to overlay the backstretch Featured Image” option is checked.

    If you want to remove the theme titles, it’s a bit more work because you need to account for all of the different ways the theme has moved the title around. It’s all located in headings.php in the theme folder. This is an example of how to remove the theme title on a singular post/page:

    
    add_action( 'wp_enqueue_scripts', 'prefix_maybe_remove_breakthrough_title', 100 );
    /**
     * If Display Featured Image for Genesis is going to output a title over the image,
     * remove the theme title.
     */
    function prefix_maybe_remove_breakthrough_title() {
    	if ( ! wp_script_is( 'displayfeaturedimage-backstretch-set', 'enqueued' ) ) {
    		return;
    	}
    	// Breakthrough Pro adds this in headings.php, line 97
    	remove_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_post_title' );
    }
    

    It checks if the plugin script is enqueued and only removes it if it is (because at that point it will output the banner image). If you want to remove all of the titles from the various places they are moved, look through that file for the various titles and then add them to the end of the above function. Make sure you practice safe coding and have backups of your files.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin duplicates H1 titles on Breakthrough Pro’ is closed to new replies.