• Hi,

    We are using WordPress theme and Child but When I activate my child theme, then all defined widget disappears.

    How to keep my widget on the child theme ?

    Thank you!!!

    • This topic was modified 7 years, 4 months ago by presslayouts.
Viewing 5 replies - 1 through 5 (of 5 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello Presslayouts,

    It is the default expression of WordPress. When you activate your child theme during the development phase, it will place your all defined widgets to the inactive widget bar. You just need to move them back from inactive widget bar to desired sidebar section. This can be achieved from Admin Panel > Appearance > Widgets. The best practice is to set up the child theme at the beginning of the development.

    Hope this will help you.

    Thanks.

    Thread Starter presslayouts

    (@presslayouts)

    Hello AddWeb,

    Thank you for your fast help.

    But we are sorry, because I could not understand what I needed to do. So please you try to explain me in detail with some screenshot?

    Thanks.

    AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello Presslayouts,

    Please refer this link for the screenshot.
    https://www.dropbox.com/s/u8rgn3tq0cz8o30/wordpress_widget.png?dl=0

    This screenshot will help you to set the widgets in your child theme

    Thanks.

    Thread Starter presslayouts

    (@presslayouts)

    Hello AddWeb Solution Pvt. Ltd.,

    Thank you for sent me screenshot for widget, but i need to solution permanently not i need to inactive widget to again active widget area.

    Because we are theme developer and author and we selling our theme, So i need to solution for my all purchased users not only for me.

    Why widget disappears when i activate my child theme?

    Please tell me any problem in my theme code or any else ?

    Thank you.

    AddWeb Solution

    (@addweb-solution-pvt-ltd)

    When switching themes all widgets are moved to “Inactive Widgets” area, leaving an empty sidebar. You can consider it as a default expression.

    This happens when:

    • New theme has a different number of registered sidebars than old theme.
    • New theme and old theme have the same number of registered sidebars, but the ID value for the sidebar is different between the two.

    Widgets should never be put into Inactive if the new theme has a least one sidebar registered. The ID values for registered sidebars in themes should be ignored and not used for comparison.

    You can read more about it here

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Widget disappears when i activate my child theme’ is closed to new replies.