-
AuthorPosts
-
October 6, 2014 at 11:18 am #330790
Hi guys, firstly this is the best and easiest to use theme ever especially with 3.0 update! I’ve used it for some time now and think this is the first time I’ve asked for support – that’s how customisable it is!
Anyway – to the point… My client’s new website has quite a complex sidebar navigation and the client wants breadcrumbs below the Easy Slider to aide in navigation. I believe this isn’t possible with the avia breadcrumbs so I’ve installed Yoast breadcrumbs, but I can’t get the positioning right :(.Thanks in advance!
Kris
October 6, 2014 at 12:55 pm #330835I’ve tried adding the following code:
<?php if ( function_exists(‘yoast_breadcrumb’) ) {
yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’);
} ?>to a few different PHP files and am having no luck. I thought it would be pretty simple to implement this – I assumed it would just be a case of adding that code to the top of the php file that displays the content – which I think is page.php? But this doesn’t seem to work.
October 7, 2014 at 3:26 am #331310Hey!
Thank you for using Enfold.
If you’re using the advance layout builder, the page will use the template-builder.php file. If not, then yes, it will be using the page.php file. Please try to add this on functions.php:
add_filter('avf_template_builder_content', 'add_modified_date', 10, 1); function add_modified_date($content = "") { if ( function_exists(‘yoast_breadcrumb’) ) { $content .= yoast_breadcrumb(‘<p id=”breadcrumbs”>’,’</p>’); } return $content; }
Unfortunately, we don’t provide support for third party plugins. Please contact the plugin author.
Regards,
IsmaelOctober 7, 2014 at 11:27 am #331497Cheers for that – I think the client might be happy with the avia breadcrumbs now though. One question though, can I remove the avia breadcrumbs and title from the h1 tag (which they’re wrapped in), as many of my pages have different h1s to the page title. I feel this wouldn’t be best practise for seo (maybe it would be better in a span)?
October 7, 2014 at 11:58 am #331508Sorted this now – can be closed
Thanks for help :) -
AuthorPosts
- The topic ‘Yoast breadcrumb positioning’ is closed to new replies.