Howdy, folks.
Used this:
to add a widget area – worked like a charm.
BUT
It doesn’t display on category pages.
Help?
Thanks!
Mark
Hi Mark,
Could you provide us with a link to the site in question so that we can take a closer look please?
Regards,
Rikard
You folks have been in there before – it’s just a testbed, not public… so I’ll add links in the private area. :)
Thank you!
Hey!
Do you mind creating a temporary admin login and posting it here privately?
Regards,
Yigit
Yigit!
Hey. Sure! see below
Hi,
Where did you get the “pre_page_widget_area” hook? You should add the hook in the archive.php file.
Best regards,
Ismael
See my initial post. I got it from the official documentation, which says to add it to functions.php.
Hi,
Please review it again. In the documentation, the hook name is different. The “pre_page_widget_area” do not exist, at least in the theme. Where did you get it? If you want it work on category pages, you have to add this line somewhere in the archive.php template:
add_action('pre_page_widget_area');
Or use the default hook provided in the documentation.
Best regards,
Ismael
You are absolutely right. Duh.
Thanks SO much!
M
For those of you who might have been following the thread…
A while back, we had a team member move the header custom widget area into the body of some pages.
I had totally forgotten about it. He had duplicated the Kriesi custom code for adding a widget area to the header, and modified it so it would show up elsewhere.
Thanks, Yigit and Ismael – and sorry to make you crawl through code! You guys are the best.