Hello!
You can use the shortcode anywhere. If you want it displayed on every page at the same spot (which is good for consistency and accessibility), there are several options depending on your theme and if you use a particular page builder.
If you do not use a page builder, WordPress has several methods for managing widgets nowadays. It’s… untactful. Still, it should be either of these two:
1. Classic: https://ww.wp.xz.cn/documentation/article/manage-wordpress-widgets/
2. Block-based: https://ww.wp.xz.cn/documentation/article/block-based-widgets-editor/
If you use a page builder, you may wish to edit a template via it. Since there are so many different page builders, a link to your site would help me determine which you use so I can provide further instructions.
For developers, there’s also an API function that the theme author can implement (basically, it’s function tsf_breadcrumb()).
Hello,
Thank you for your quick and thorough reply. We’re using WPBakery Page Builder at islyon.org. I’m using a child theme, is there some way I can implement it using that? I tried adding it using widgets, but like you said, it’s a bit untactful.
Thank you again.
Hello!
Sorry for the delay — the plugin updates took up my time.
Here you can learn how to implement “third-party shortcodes” like [tsf_breadcrumb] in WP Bakery via their Shortcode Mapper: https://kb.wpbakery.com/docs/learning-more/shortcode-mapper/. Depending on where you wish to place it, this might be best.
Otherwise, if you’d still like to try using a widget, you could try embedding a shortcode block and then entering the shortcode, or try an HTML widget and entering the shortcode directly.
Thank you very much for your reply. I’ve tried the shortcode mapper, but it still requires that I add it to each page. I tried it with the widgets, and managed to make it work, but it’s not showing up at the top of the page as I had hoped. Would it be possible to add this to my theme files instead? Thanks again for the help.
-
This reply was modified 2 years, 4 months ago by
rkingisl. Reason: spelling
Hello!
Yes, it’s possible to add this to your theme files.
Please ask WPBakery or your theme author for assistance on this. They can use either apply_shortcodes( '[tsf_breadcrumb]' ) or tsf_breadcrumb(). They may know of a way to add this to a better location without adjusting the code.
Excellent, thank you again. I will follow up with them.