add widget on post page

Posted in: Newspaper
Post count: 14

Looking for understand how to add a widget on post page ?
see image bellow >
https://ibb.co/hiW0Dv

when i add my widget in Newspaper default section, is not appear in Post page.

Post count: 22421

Hello,

Yes that is because you do not use the default sidebar. Sidebars in our theme use a “fallback” system. Here is how it works. If you set a specific sidebar on posts, it will show that sidebar, if you leave it on default, it will grab the sidebar from the primary category: https://forum.tagdiv.com/primary-category/
If the category as well is left on default, then it will grab the sidebar from the blog and post template from the theme panel: https://www.screencast.com/t/5rRHoNpS8il Only if all 3 places are left on default, will the theme use the “default sidebar” you show in the screenshot.

I hope this helps.
Thank you!

Post count: 14

Hi Bogdan and thanks for your reply.
Really, i was wondering to add one widget but not in side bar. let me explain :

I need to add custom-related-posts in the post page after and under Main body , see image please
https://ibb.co/hR8Tiv
Can you please help me to realize that ?
Thanks

Post count: 22421

Hi,

You provided a screenshot from the widgets area and I assumed the sidebar is what you are after. If you want to add a widget on posts, you can either add it on each post in particular or on ALL at once using a shortcode implementation. I assume your custom widget has a shortcode so you can use the do_shortcode funstion in the post template files like so:
<?php echo do_shortcode ('your shortcode here'); ?>
https://www.screencast.com/t/Sn1Sumh2d

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.