Archived topic
How can i move the breadcrumps up in my blog posts?
24 replies · Started by eden on January 15, 2020
If widget is the only option then you can use this plugin to turn the widget into shortcode:
https://en-ca.wordpress.org/plugins/shortcode-widget/
Then you can create a hook element:
https://docs.generatepress.com/article/hooks-element-overview/
and use the after_entry_title hook:
https://docs.generatepress.com/article/hooks-visual-guide/#single-post
OK I have installed it but i still dont understand how can i turn the top bar widget into shortcode,
I have done the test they have gave me and put the shortcode as referred in this page https://wordpress.org/plugins/shortcode-widget/#installation
And the test is in the right place as you can see in here https://edensharabi.co.il/affiliate-marketing/#more-343 after the title.
But HOW can i take the breadcrumps to there ?!
Instead of using Widget Shortcodes ( so you can remove that plugin ) do this:
1. Create a new Hook Element.
2. Add this code:
<div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">
<?php if(function_exists('bcn_display'))
{
bcn_display();
}?>
</div>
3. Select the after_entry_title hook
4. Set Display Rules to Posts > All Posts
If you want to include the breadcrumb on Pages then include them in the Display rules and change the hook to after_entry_header
You can see the hooks and their positions here:
I have done everything and nothing happened
plz check it here https://imgur.com/a/QlDxSuy
Check the Execute PHP checkbox and make sure you have set your Display Rules
Yes when i check the excecute php checkbox the post is not loading well and something is broken in the posts page https://edensharabi.co.il/affiliate-marketing plz check
I updated the code here
Perfect ! Thank you!
Glad we got there :)