• Resolved dimal

    (@dimalifragis)


    Hello.

    While there is a code in your FAQ about fixing the canonical url with SEO FRAMEWORK, still the desctiption is wrong, taken from your page description:

    “<meta name=”description” content=”This page is used by Events Made Easy. Don't change it, don't use it in your menu's, don't delete it. Just make sure the EME setting called 'Events page'” />”

    Any ideas how to fix this?

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Franky

    (@liedekef)

    EME overrides that description per event with its own meta-tag. So maybe you should try to make sure the SEO framework doesn’t interfere there …

    Thread Starter dimal

    (@dimalifragis)

    Sure, the question is how? There is no option for that.

    Maybe i should ask the SEO plugin developer.

    Plugin Author Franky

    (@liedekef)

    I think the seo framework filter to bypass is the_seo_framework_description_output. I’ll add that to the faq too
    Edit: FAQ adapted (hope it works ?? )

    • This reply was modified 4 years, 2 months ago by Franky.
    Thread Starter dimal

    (@dimalifragis)

    I will have to test this next WE and update here.

    Thread Starter dimal

    (@dimalifragis)

    Well, the

    “add_filter (‘the_seo_framework_description_output’, ’eme_seo_framework_filter’);”

    part doesn’t seem to work. SEO Framework continues to put out the wrong page description.

    Plugin Author Franky

    (@liedekef)

    Sorry, then it is a question for that plugin I suppose … you did use the complete example I hope? I renamed the function reference so …

    • This reply was modified 4 years, 2 months ago by Franky.
    Thread Starter dimal

    (@dimalifragis)

    Sure, i already asked them and wait.

    Yes i used the full functions.

    Thread Starter dimal

    (@dimalifragis)

    If anybody needs to do that, this is the way to totally disable SEO Framework from EME.

    In the below example you need to find and replace the PAGE ID.

    add_filter( 'the_seo_framework_query_supports_seo', function( $supported ) {
    
    	$tsf = the_seo_framework();
    
    	// This TSF method also works in the admin area, and prevents ID collision with terms.
    	if ( $tsf->is_singular() ) {
    
    		// Define your excluded page IDs here.
    		$excluded_ids = [ 42, 9001 ];
    
    		// This TSF method supports page-as-archive pages, like blog and shop pages.
    		if ( in_array( $tsf->get_the_real_ID(), $excluded_ids, true ) ) {
    			$supported = false;
    		}
    	}
    
    	return $supported;
    } );
    Plugin Author Franky

    (@liedekef)

    Thanks, I updated the faq. Maybe it would work like this too?

    add_filter( 'the_seo_framework_query_supports_seo', function( $supported ) {
    	if (eme_is_single_event_page() || eme_is_single_location_page()) {
    			$supported = false;
    	}
    	return $supported;
    } );

    But I’ll leave that up to you for testing ??

    Thread Starter dimal

    (@dimalifragis)

    Yes that also seems to work.

    What of the two shall i use?

    (the first code was posted by the SEO Frameworks devs).

    Plugin Author Franky

    (@liedekef)

    By the looks of it, I’d say that the latter is more efficient, but you can always add php timings at the beginning and at the end of the function to see what is more efficient in timing to be sure ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘This plugin and SEO Framework’ is closed to new replies.