Skip to content

Breadcrumbs Title field not shown when theme support 'yoast-seo-breadcrumbs' #13015

@mingyeungs

Description

@mingyeungs
  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

When "Breadcrumbs" is set to disabled (which is the default setting btw), and the current theme has (add_theme_support( 'yoast-seo-breadcrumbs' );), the Breadcrumbs Title field (shown in green box below) for custom post types is not shown on the Search Appearance page.

yseo_search-appearance_template_cpt-archive

Please describe what you expected to happen and why.

The Breadcrumbs Title fields should show when the theme support 'yoast-seo-breadcrumbs', no matter if "Breadcrumb settings" has been explicitly set to Enabled.

Also notice that the "Enable Breadcrumbs" field is hidden when the theme support 'yoast-seo-breadcrumbs', and the user have no way to turn that on even if they wanted to.

Screen Shot 2019-05-23 at 4 32 22 PM

How can we reproduce this behavior?

  1. Fresh install Wordpress and Yoast SEO
  2. Activate a theme with add_theme_support( 'yoast-seo-breadcrumbs' )
  3. The breadcrumb title fields are not shown

Related code

Whether to show Breadcrumbs TItle is determined by WPSEO_Options::get( 'breadcrumbs-enable' ) === true (wordpress-seo/admin/views/tabs/metas/paper-content/post-type-content.php : Line 60).

The condition should be revised here, or WPSEO_Options::get( 'breadcrumbs-enable' ) should return true when theme support 'yoast-seo-breadcrumbs'

Technical info

  • If relevant, which editor is affected (or editors):
  • Classic Editor
  • Gutenberg
  • Classic Editor plugin
  • Which browser is affected (or browsers):
  • Chrome
  • Firefox
  • Safari
  • Other

Used versions

  • WordPress version: 5.2.1
  • Yoast SEO version: 11.1.1
  • Gutenberg plugin version:
  • Classic Editor plugin version:
  • Relevant plugins in case of a bug:
  • Tested with theme:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions