Add custom widget - by larsjanssen64@gmail.com

This topic has 5 replies, 2 voices, and was last updated 9 years, 4 months ago ago by Andrew Mitchell

  • Avatar: larsjanssen64@gmail.com
    larsjanssen64@gmail.com
    Participant
    August 2, 2016 at 17:21

    Hello,

    I would like to make a custom widget in: Header-structure-3.php. I know how
    to make a custom widget found it here: https://codex.wordpress.org/Widgetizing_Themes. But how do I add a custom widget in this theme?

    Thankyou

    4 Answers
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 3, 2016 at 09:10

    Hello,

    First of all, we recommend to use child theme if you plan to do any changes in template files. Child theme archive you can find it in theme package.

    Create your widget area (use function.php of child theme). Copy header.php file and headers folder into the child theme folder and make appropriate changes to add widget area.

    Avatar: larsjanssen64@gmail.com
    larsjanssen64@gmail.com
    Participant
    August 3, 2016 at 12:51

    Hello Andrew,

    I already done that. But how do I add the widget then?

    Thankyou

    Avatar: larsjanssen64@gmail.com
    larsjanssen64@gmail.com
    Participant
    August 3, 2016 at 14:17

    Hello,

    Never mind already fixed it.

    Thankyou

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 3, 2016 at 14:37

    You’re welcome!

    Regards,
    Andrew Mitchell

  • Viewing 5 results - 1 through 5 (of 5 total)

The issue related to '‘Add custom widget’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.