-
Hello,
I have Rank Math SEO installed on my video WordPress website at https://internettvdotcom.com/how-to-videos/. I’m using the Covert VideoPress theme and would like to add Breadcrumbs. I followed the Breadcrumbs instructions and made the necessary changes.
When I inserted the code below in my theme right before the ending Header tag like so…
<header class=”site-header” role=”banner”>
” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”>
<hgroup>
<h1 class=”site-title”><?php bloginfo( ‘name’ ); ?></h1>
<h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>
</hgroup>
<?php if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs(); ?>
</header>
</div>
—————–…No Breadcrumbs appeared in my posts.
Then I read your ‘Native Theme Support, section. I didn’t know whether this applied to me or not but I went ahead and followed the instructions.
If I am to do this, How do I add the following code to my function.php?
The instructions said to include the following code to the theme’s functions.php file or attach it to the hook ‘after_setup_theme’. I found the ‘after_setup_theme’ code but don’t know exactly where to insert the add_theme_support( ‘rank-math-breadcrumbs’ ); code.
This is what I see…
add_action(“after_setup_theme”, “imwb_videopress_setup”);
add_action(“widgets_init”, “imwb_videopress_widgets_init”);
add_action(‘wp_head’,’imwb_videopress_head’,50);
// add_action(‘wp_footer’, ‘imwb_videopress_footer’, 50 );
add_filter(‘imwb_videopress_filter_content’, ‘imwb_videopress_content_filter’, 10, 2);
add_filter(‘excerpt_more’, ‘imwb_videopress_excerpt_more’);
add_filter(‘excerpt_length’, ‘imwb_videopress_excerpt_length’);
—————–If I am supposed to add the add_theme_support( ‘rank-math-breadcrumbs’ ); code, where exactly do I insert it?
If I’m going about this the wrong way, please advise.
Thanks
The ticket ‘breadcrumbs’ is closed to new replies.