Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #622989

    Have updated Enfold to latest, WordPress and all plugins updated. In Yoast I have a tag for the description – %%excerpt%%

    It’s not appearing in a page, but if I enter a custom description in Yoast page editor, it will appear. Normally not an issue as Google makes it’s own description, but this effects OG/Twitter tags as well.

    Why am I posting here instead of Yoast forum? Another site, not based on Enfold, does correctly use the %%excerpt%% template.

    I did try the below at the end of my enfold-child functions.php which also didn’t work:

    function add_yoast_opengraph_description( $str ) {
    	if ( $str == '' ) {
    		return get_the_excerpt();
    	} else {
    		return $str;
    	}
    }
    add_filter( 'wpseo_opengraph_desc', 'add_yoast_opengraph_description' );
    #624642

    Hey,

    Can you check if it works with the default theme (on that site)?

    Best regards,
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.