-
AuthorPosts
-
July 13, 2016 at 4:16 pm #660489
Howdy, folks.
Used this:to add a widget area – worked like a charm.
BUT
It doesn’t display on category pages.
Help?
Thanks!
MarkJuly 14, 2016 at 11:51 am #660781Hi Mark,
Could you provide us with a link to the site in question so that we can take a closer look please?
Regards,
RikardJuly 14, 2016 at 3:49 pm #660901You folks have been in there before – it’s just a testbed, not public… so I’ll add links in the private area. :)
Thank you!
July 14, 2016 at 4:05 pm #660912Hey!
Do you mind creating a temporary admin login and posting it here privately?
Regards,
YigitJuly 14, 2016 at 4:36 pm #660930Yigit!
Hey. Sure! see below
July 19, 2016 at 3:15 am #662315Hi,
Where did you get the “pre_page_widget_area” hook? You should add the hook in the archive.php file.
Best regards,
IsmaelJuly 19, 2016 at 3:19 am #662316See my initial post. I got it from the official documentation, which says to add it to functions.php.
July 21, 2016 at 9:04 am #663238Hi,
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,
IsmaelJuly 21, 2016 at 2:50 pm #663411You are absolutely right. Duh.
Thanks SO much!
MJuly 21, 2016 at 3:03 pm #663419For 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. -
AuthorPosts
- The topic ‘Custom widget area on archive page….’ is closed to new replies.
