Breadcrumbs in CranSEO #
Breadcrumbs improve website navigation and enhance SEO by helping search engines understand your site’s structure. CranSEO provides an easy way to enable and customize breadcrumbs.
Step 1: Enable Breadcrumbs #
- Log in to your WordPress dashboard.
- Navigate to CranSEO > Settings > Breadcrumbs.
- Toggle Enable Breadcrumbs to ON.
- Click Save Changes.
Step 2: Add Breadcrumbs to Your Theme #
To display breadcrumbs on your site, you need to insert a shortcode or add a PHP function to your theme.
Option 1: Using the Shortcode #
- Insert
[cranseo_breadcrumbs]
in your page, post, or widget where you want breadcrumbs to appear.
Option 2: Using the PHP Function #
- If you want breadcrumbs to appear site-wide (e.g., above post titles), add the following PHP code to your theme’s
header.php
orsingle.php
:if (function_exists('cranseo_breadcrumbs')) { cranseo_breadcrumbs(); }
Step 3: Customize Breadcrumb Settings #
- Under CranSEO > Settings > Breadcrumbs, you can:
- Customize Separator (e.g.,
>
or/
) - Show Homepage in Breadcrumbs
- Enable Schema Markup for better search engine visibility
- Customize Separator (e.g.,
- Click Save Changes after making adjustments.
Step 4: Test Breadcrumbs #
- Visit a post or page to check if breadcrumbs are displaying correctly.
- Use Google’s Rich Results Test to verify breadcrumb schema markup.
Troubleshooting #
- If breadcrumbs do not appear, check your theme’s template files to ensure they support manual breadcrumb insertion.
- Clear your site’s cache and refresh the page.