Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #660489

    Howdy, folks.
    Used this:

    to add a widget area – worked like a charm.
    BUT
    It doesn’t display on category pages.
    Help?
    Thanks!
    Mark

    #660781

    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

    #660901

    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!

    #660912

    Hey!

    Do you mind creating a temporary admin login and posting it here privately?

    Regards,
    Yigit

    #660930

    Yigit!

    Hey. Sure! see below

    #662315

    Hi,

    Where did you get the “pre_page_widget_area” hook? You should add the hook in the archive.php file.

    Best regards,
    Ismael

    #662316

    See my initial post. I got it from the official documentation, which says to add it to functions.php.

    #663238

    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

    #663411

    You are absolutely right. Duh.
    Thanks SO much!
    M

    #663419

    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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Custom widget area on archive page….’ is closed to new replies.