Black Friday Sale! Get up to $30 off GP Premium! Learn more ➝

[Support request] Adding widget area

Home Forums Support [Support request] Adding widget area

Home Forums Support Adding widget area

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #226319
    lsitlabs

    Hi,

    I would like to add an extra widget area (with a call to action) before the footer widgets in my child theme?

    What would be the best way to do that?

    As in, should I simply use “register_sidebar” in functions.php and then add_action hooking it to “generate_before_footer” or is there a better way to do that (specifically, it would be really cool to have the possibility to add a “section” sitewide and not only page by page)?

    Thanks,
    Luca

    #226398
    Tom
    Lead Developer
    Lead Developer

    Hi Luca,

    That’s exactly how you should do it, and hooking it into the generate_before_footer hook will make it sitewide 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.