Tagged: breadcrumbs
Hi, I would like to insert breadcrumbs automatically into the page template in a particular area.
I am trying to figure out what code I would need to insert to generate the breadcrumbs.
I’ve read the guide on using shortcodes for inserting breadcrumbs but was wanting to make it automatic rather than having to use shortcodes.
Can anyone suggest what code would need to be included?
I’ve tried the following with no effect:
echo ‘<p class=”breadcrumb”><span class=”breadcrumb_info”>’.__(‘You are here:’,’avia_framework’).'</span> ‘;
Hey aztamer!
Can you please point out the area that you would like to insert breadcrumbs?
Best regards,
Yigit
Hi Yigit, I would like to place them after:
<div class=”container”>
<main class=”template-page content av-content-small alpha units” itemprop=”mainContentOfPage” role=”main”>
So for example if the contents of page would be
<h1>page title </h1>
the breadcrumbs would appear directly above them.
So for example I am aiming for this:
But currently have this:
Hi!
Have you tried using a plugin such as this one – https://wordpress.org/plugins/breadcrumb-navxt/
Regards,
Yigit