Breadcrumbs not showing bantam theme
-
Hi,
I followed your guide here, in my theme funtion I added the theme support see code below function.php
<?php function child_styles() { wp_enqueue_style( 'my-child-theme-style', get_stylesheet_directory_uri() . '/style.css', array( 'front-all' ), false, 'all' ); } add_action( 'wp_enqueue_scripts', 'child_styles', 11 ); add_action( 'after_setup_theme', function() { add_filter( 'vamtam_less_vars', function( $vars ) { if ( isset( $vars['beaver-global'] ) ) { foreach( $vars['beaver-global'] as $k => $var ) { if ( is_object( $var ) || is_array( $var ) ) { unset( $vars['beaver-global'][$k] ); } } } return $vars; }); /** * Register theme support for Rank Math breadcrumbs */ add_theme_support( 'rank-math-breadcrumbs' ); });
and in wp-code-snippets I added the code to display
/** * Use the following code in your theme template files to display breadcrumbs: */ <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
code snippet i tried running everywhere and also insert before content and insert before paragraph
but I still don’t see the breadcrumb on the shop page or products or anywhere
what am I doing wrong ? how can I fix it ?
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Breadcrumbs not showing bantam theme’ is closed to new replies.