Archived topic
Lightweight Social Media Icons after Breadcrumbs
6 replies · Started by Kathrin on April 7, 2021
Hi, is there a way to show lightweight social media icons after the breadcrumbs. The breadcrumbs are displayed at this position: generate_before_main_content.
Thank you very much!
Greetings Kathrin
Hi there,
You will need to use this plugin to turn LSI widgets into shortcode:
https://en-ca.wordpress.org/plugins/widget-shortcode/
Then add the shortcode using the same hook but lower priority.
Are you using GenerateBlocks by any chance? If so another (better) option would be to use a block element and the buttons blocks with icons.
Let me know if this helps :)
Dear Leo,
thanks for the information. But I was wrong. I need the blocks after the Featured Image. My structure is Page-Heading followed by the Featured Image. Should I do it in the same way?
I don't use Generate Blocks at the moment.
Greetings Kathrin
It works fine with GenerateBlocks but is there a way that this block is inserted automatically in every post?
Greetings Kathrin
Hi there,
1. create a new Block Element:
https://docs.generatepress.com/article/block-element-overview/
2. Create your social icon block using GenerateBlocks.
3. Set the Hook to: generate_after_entry_header
4. Set the Priority to 30
5. Set the Display Rules to Posts > All Posts.
Please note that the social icons will just be links to the social sites - not sharing links.
If you require social sharing links then you would need a plugin for that - and you can use the same method above to add them
Thank you very much, it works great. I just need it as a separator between the featured image and the following content, so that the ad is not following an image :)
Greetings Kathrin
Glad we could be of help!