Custom sidebars

Posted in: Newspaper
Post count: 6

There’s a WordPress plugin called widget logic that apparently lets you control what pages you want your widgets to appear on. I think the Newspaper theme has something called id filter in tagDiv Composer for the tag filter and there’s custom sidebars also. I’m trying to find the best implementation for showing certain tags on certain pages in the sidebars of specific archive pages. 

For example, in my sidebar on huntcode.com on the homepage, if someone clicks Linux in the sidebar it will open the Linux tag archive page and it should show different tags than what shows on the homepage in the sidebar such as the different flavors of Linux like CentOS and Ubuntu instead it’s displaying Linux in the sidebar of every page even pages that aren’t related to the Linux topic like on the JavaScript tag archive page or something else.

  • This topic was modified 1 year by imcamg.
Post count: 6

I asked AI chatGPT and it suggested a plugin like Elementor to create custom sidebars for specific pages but I want to be careful about using a plugin to achieve this if it’s not compatible with the theme. Would it be better to just add conditional logic for the tags in the theme’s sidebar.php file?

Post count: 27744

Hello,

Do you want to have a different sidebar on each tag or do you want to have only the posts related to the current tag?
You can create a sidebar like in this guide https://forum.tagdiv.com/sidebars-tutorial/, and if you want, you can choose this filter option tag- current tag https://i.imgur.com/7jVsi1G.png -> https://forum.tagdiv.com/flex-block-settings-guide/

Thank you!

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