• Resolved eclev91

    (@eclev91)


    WP 5.8.1
    Yoast 17.4

    1. Install a theme that does not declare yoast-seo-breadcrumbs support
    2. In Search Appearance > Breadcrumbs, disable breadcrumbs
    3. In Search Appearance > Content Types, see the breadcrumbs archive title field is not shown.
    3. Activate a theme that declares yoast-seo-breadcrumbs support (or add to functions.php)
    4. See in Search Appearance > Breadcrumbs, the breadcrumbs enable/disable toggle is gone.
    5. In Search Appearance > Content Types, see the breadcrumbs archive title field is still not shown.

    Seems like once theme support is declared, if the breadcrumbs-enable option has already been explicitly set to false and saved to the database, there’s no way to toggle breadcrumbs back on and access any settings hidden behind a WPSEO_Options::get( 'breadcrumbs-enable' ) check.

    • This topic was modified 3 years, 1 month ago by eclev91.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Eclev91,

    Thanks for reaching out but we are having a hard time replicating.

    First, can you let us know the specific theme you used in testing that does not declare yoast-seo-breadcrumbs support? Also, in your case, for which content type do you have the breadcrumbs archive title field not shown?

    Looking forward to hearing from you.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

    Thread Starter eclev91

    (@eclev91)

    @maybellyne @devnihil I’ll be more specific.

    – Use wp-cli to set up a new WordPress install (I don’t think the wp-cli part matters, but wp core download, wp core config ... and wp core install ... will do the trick)
    – Double-check that Twenty Twenty-One theme is activated
    – Add a custom post type with this code at the end of the Twenty Twenty-One functions.php file. This code was generated using wp scaffold post-type dog.
    – Visit Search Appearance > Content Types, and see the Breadcrumb Archive Title field is available for the “Dog” content type
    – Disable breadcrumbs via Search Appearance > Breadcrumbs
    – Visit Search Appearance > Content Types, and see the Breadcrumb Archive Title field is unavailable for the “Dog” content type (expected)
    – Add add_theme_support('yoast-seo-breadcrumbs'); to the end of the functions.php file for Twenty Twenty-One, the active theme
    – See in Search Appearance > Breadcrumbs, the breadcrumbs enable/disable toggle is gone (expected)
    – Visit Search Appearance > Content Types, and see the Breadcrumb Archive Title field is still unavailable for the “Dog” content type (unexpected)

    Which means you cannot alter the breadcrumb title for a custom post type if the theme declares breadcrumb support, but the database option for breadcrumbs has them disabled.

    • This reply was modified 3 years ago by eclev91.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘yoast-seo-breadcrumbs theme support doesn’t override admin setting’ is closed to new replies.