If I moved the location of my generic “posts” page, do I need to change the slugs for all of the individual posts?
If I moved the location of my generic “posts” page, do I need to change the slugs for all of the individual posts?
If I moved the location of my generic “posts” page, do I need to change the slugs for all of the individual posts?
According to their documentation the primary category should appear as the breadcrumb. I’d use a Yoast-specific forum to ask their folks.
The solution is quite simple. I copied single-product.php from woocommerce/templates and modified it so loop starts before before_main_content hook: get_header( ‘shop’ ); ?> <?php while ( have_posts() ) : the_post(); ?> <?php /** * woocommerce_before_main_content hook. * * @hooked woocommerce_output_content_wrapper – 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb – 20 */ do_action( … Read more
You can change the code in the theme files to do this. Open the file category.php (if this file doesn’t exist, try archive.php) and replace the text you want to change with single_cat_title() Here is the documentation However these changes will be overwritten if you update your theme You can create a child theme or … Read more
Custom post type archive false is not compatible with breadcrumbs
Does your single-product.php contain this? <?php /** * woocommerce_before_main_content hook. * * @hooked woocommerce_output_content_wrapper – 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb – 20 */ do_action( ‘woocommerce_before_main_content’ ); ?>
Using the_title() and fetching the parent page’s title and slug to construct breadcrumbs
Can’t get parent page id
We’ve created a custom function called get_breadcrumb() to generate the breadcrumb links. You only need to add the get_breadcrumb() function code in functions.php file of the current theme. function get_breadcrumb() { echo ‘<a href=”‘.home_url().'” rel=”nofollow”>Home</a>’; if (is_category() || is_single()) { echo “ » ”; the_category(‘ • ‘); if (is_single()) { echo ” » “; the_title(); } } … Read more
Your question is much more like a CSS question. The anchor a by default is display as inline. So it doesn’t have height and width unless text, image etc inside with finite dimension. To make it work, just add display:block; to the css so it expands to match the parent container. li.trail-begin { display: inline-block; … Read more