Home › Forums › Calendar Products › Events Calendar PRO › Add widget area to Category pages
- This topic has 6 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
February 2, 2015 at 3:25 pm #939554kqedParticipant
Hi – is it possible to add a widget area just to the Category archive pages? I couldn’t find a way to customize just those pages, rather than all of the archive pages.
For instance:
http://ww2.kqed.org/arts/the-do-list/category/arts/theater/February 2, 2015 at 11:00 pm #939626Gustavo BordoniKeymasterHi Kevin,
Thanks for reaching out to us man, glad to help you.
What I would suggest you is to use some thing the Widget Visibility JetPack add-on. If you don’t have JetPack installed I would say that you would be better with a simpler version of the plugin, since what you really need is that specific addon and JetPack brings a lot of baggage along it with.
I hope this solves your issue, If not, please don’t hesitate to reply and I will try to help you further.
My Best Regards,
February 3, 2015 at 11:49 am #939790kqedParticipantMy question wasn’t about how to change widget targeting — it was about how to make a new widget area that only appears on the Events Category archive pages.
February 3, 2015 at 11:14 pm #939892Gustavo BordoniKeymasterHi Kevin.
Can you provide us what is the content of your current page.php and single.php, so that I can provide you a snippet with a possible solution to your problem.
Could you use the Gist from GitHub to share those files, and post a link here? Thanks a lot!
My Best Regards,
February 4, 2015 at 3:19 pm #940074kqedParticipantWe’re using a child theme of twenty fourteen, and haven’t modified page.php. Single.php is here:
https://gist.github.com/kic00/58ab56837f103abf2c89February 4, 2015 at 8:10 pm #940130Gustavo BordoniKeymasterHi Kevin,
So to accomplish that you can follow this tutorial on how to add a sidebar to your site, which is the widget area that you mentioned.
Judging by the code you sent me, you should add the “Step 3” of the tutorial I’ve sent you to the file sidebar-general.php. What you should do is wrap that code with a conditional like is_category to check if you are inside of the archive for that given category.
Don’t hesitate to reply if this didn’t solve your issue.
My Best Regards,
July 7, 2015 at 6:31 am #983716Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Add widget area to Category pages’ is closed to new replies.