Image Widget in certain categories

Posted in: Newspaper
Post count: 18

Hello,

i want certain banners to be displayed in certain categories.
So i went in widgets add image and used the widget display control.
But it seems that does not work correct.
For example see the images.
I have set an image to be displayed only in Lifestyle category and that image is in every category.

The site url is : https://www.inkavala.gr

Images:

http://prntscr.com/mo4gzl
http://prntscr.com/mo4hff

Post count: 20688

Hi,

Can’t say if that control plugin will work properly or not with the theme. Why not create different widget sidebars for each category. You can create as many sidebars as needed and set them for the categories you want in the theme panel.

Thanks

Post count: 18

Hello,

I can create different sidebars for every category but the category layout is the same
so that widget displayed in every category.

If i press edit template and put a sidebar widget ,that widget will be placed in every category because the template is the same .

How can i do the above that you mention?

Post count: 20688

I failed to see that the category pages use the same cloud template. A solution would be to create copies of the cloud template and use different widget sidebars for each one, but that may take a while if there are many categories.

Try this plugin – https://www.wpbeginner.com/plugins/how-to-show-or-hide-widgets-on-specific-wordpress-pages/
See if works, or some of these – https://technumero.com/show-or-hide-widgets-on-specific-pages-in-wordpress/

With CSS it may require a lot of cases, depending on what you want to do exactly. There could be conditions created, for example if not category lifestyle hide the second image widget in the sidebar. So that second image widget will show on the intended category page
http://prntscr.com/momau3 and not in the others – http://prntscr.com/mombaf

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