- This topic has 24 replies, 3 voices, and was last updated 3 years, 2 months ago by
David.
-
AuthorPosts
-
January 17, 2020 at 5:44 pm #1135642
Leo
StaffCustomer SupportIf 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-postDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 18, 2020 at 3:50 am #1135847eden
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/#installationAnd 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 ?!
January 18, 2020 at 4:15 am #1135853David
StaffCustomer SupportInstead 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 PostsIf 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:
https://docs.generatepress.com/article/hooks-visual-guide/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 18, 2020 at 4:19 am #1135854eden
I have done everything and nothing happened
January 18, 2020 at 4:21 am #1135855eden
plz check it here https://imgur.com/a/QlDxSuy
January 18, 2020 at 4:30 am #1135862David
StaffCustomer SupportCheck the Execute PHP checkbox and make sure you have set your Display Rules
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 18, 2020 at 4:37 am #1135867eden
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
January 18, 2020 at 4:55 am #1135870David
StaffCustomer SupportI updated the code here
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 18, 2020 at 5:00 am #1135872eden
Perfect ! Thank you!
January 18, 2020 at 5:00 am #1135875David
StaffCustomer SupportGlad we got there 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.