Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #546640

    Hi,
    I’ve been having problem getting Enfold to work with an SEO plugin (The SEO Framework) . The problem being that my home page title does not match the og:title. The plugin author suggests the following:

    The theme you’re using is using outdated standards and is doing it wrong. Inform your theme author about this issue. Give the theme author this link: https://codex.wordpress.org/Title_Tag And give the theme author these pieces of code:

    
    //* functions.php
    add_theme_support( 'title-tag' );
    
    
    //* header.php
    if ( ! function_exists( '_wp_render_title_tag' ) ) {
        //* Below WordPress 4.1 compatibility
        function theme_slug_render_title() {
            /**
             * Please, don't add any parameters to the wp_title function, except the empty one provided. Don't 'beautify' the title: It's bad for SEO.
             * Don't add anything else between the title tag. No blogname, nothing.
             */
            ?><title><?php wp_title(''); ?></title><?php
        }
        add_action( 'wp_head', 'theme_slug_render_title' );
    }
    

    What are your thoughts on this?

    #546646

    Hey Barnez1!

    I have added the issue to our git, so we can include that fix maybe as an upcoming update.
    Thanks a lot for letting us know, we actually can consider update that, but in no case it is outdated, as WordPress is still using the title tag, as we using it.

    Have you considered any other plugin, like Yoast SEO?

    Thanks a lo

    Regards,
    Basilis

    #546650

    Hi Basillis,

    Thanks for getting back so quickly and for considering this for a future update. I’ve been with Yoast SEO for years, but their recent updates have been unpredictable over the last 18 months and hence I’m looking to change.

    Cheers,
    Barnez

    #547754

    Hi!

    The theme has its own filter for situation like this and its called “avf_title_tag”. You can use that to modify the title according to your needs. Example: https://kriesi.at/support/topic/duplicated-titles-w-yoast-seo-plugin/#post-367661

    Regards,
    Ismael

    #547961

    Hi,

    Thanks for picking back up on this Ismael. As it happens the SEO plugin developer.has created a filter to resolve the issue, but it’s great to know that Enfold also has this covered. Keep up the great work, and excellent support!

    Regards,
    Barnez

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘SEO issue: My home page title is different from the og:title’ is closed to new replies.