• I have been hoping to migrate from Yoast and been testing out your plugin. So far, loving what I see. Great clean look and Schema implementation.

    I have tested SeoPress against Yoast and All in One Seo and only seem to come across this issue with SeoPress so hoping it is an easy fix.

    Issue: SeoPress was not recognizing the add_theme_support( ‘title-tag’ ) in my themes functions.php

    Solutions tried:
    1) Added code mentioned on Function code recommended in your Support Page. This has resulted in duplicate title blocks as you can see on the page noted. <title><?php wp_title(); ?> is not specifically cited in header; and Theme <title> block changes correctly with Yoast and All in One Seo.

    2) Deactivated all plugins – conflict is between SeoPress and my TagDIV theme. However, starting here as other SEO plugins are updating the title correctly.

    3) The third option is to work with my Theme developer to determine where they have included the <title> block as it isn’t apparent in header theme, and work with them to disable. However, as previously noted – as other SEO Plugins appear to function as expected, I am wondering if this is a bug in SeoPress?

    Any suggestions you can provide would be helpful.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,
    you mentioned TagDiv, I guess you’re using Newspaper theme too.

    There is an incompatibility with this theme (the only known).

    We tried to contact several times their support but we didn’t get any answer from them…

    🙁

    Thread Starter Mark | makingyouthink.ca

    (@mlhanlon)

    Sadly yes — looks like I am off to option three.

    Peaking at others “Newspaper” sites, others have found a way to disable the theme related <title> tag – at least it isn’t where it is expected in the HTML. So that will be my next option. If I come up with a repeatable workaround, I’ll be sure to pass it along.

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    We can take a look to find a “hack” if you send us a link to download your theme and page builder to contact[at]seopress.org

    Thanks

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    A solution (to add to a mu-plugin for example):

    add_action( 'after_setup_theme', function() {
    	add_theme_support( 'title-tag' );
    	remove_all_filters( 'wp_title' );
    	remove_all_filters( 'wpseo_title' );
    	remove_all_actions('wp_head', 'theme_slug_render_title');
    	add_filter( 'wp_title', 'sp_remove_title', 9999999999999, 2 );
    
    }, 99999999999999);
    
    function sp_remove_title( $title, $sep ) { 
    	return false;
    }
    
    add_action('wp_loaded', 'buffer_start');
    function buffer_start() { 
    	ob_start("sp_remove_empty_title");
    }
    
    function sp_remove_empty_title($buffer) {
    	$buffer = str_replace('<title></title>','',$buffer);
    	return $buffer;
    }
    Thread Starter Mark | makingyouthink.ca

    (@mlhanlon)

    Much appreciated! Worked like a charm — I created a new php file in mu-plugin directory and added the code. Thanks for your great support in solving this issue!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘False: add_theme_support( ‘title-tag’ ); Missing’ is closed to new replies.