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

    I have created a Yoast description template (%%excerpt%%) that should autogenerate the meta description for pages/posts. This doesn’t appear to be working on four sites. I tested creating a post without Avia Builder and Yoast correctly generated the meta description tag based on it’s template

    Yoast 5.6.1
    Enfold 4.1.2

    I have disabled Varnish on the server and removed W3TC to rule out any caching issues

    • This topic was modified 7 years, 2 months ago by themepack.
    #865568

    This appears to be an Issue with the Enfold child-theme. I switched to twentysixteen and switched to enfold and the description tag appeared. So it only affects the child-theme

    #865569

    Hey themepack,

    So it doesn’t work when you are using the Layout Builder? If so that is as expected, you will have to set the excerpt manually for each post. If you don’t see the excerpt field then please select to show it in the Screen Options panel in the top right hand corner of the screen.

    Best regards,
    Rikard

    #865571

    For anyone else looking at this, you’ll need to add the following into your child theme functions.php to enable the excerpt on ‘pages’

    add_post_type_support( 'page', 'excerpt' );

    It looks like Yoast still won’t autogenerate a description but at least if provides an opportunity to have some control over the description metadata.

    Rikard, I don’t understand why using the layout builder won’t autotgenerate the description? Is it because Yoast can’t scan shortcodes?

    #865696

    Hi,

    Exactly, Yoast cannot read the shortcodes generated by the Layout Builder unfortunately.

    Thanks for sharing your code, much appreciated :-)

    Best regards,
    Rikard

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