New Landing How can we help? Themeforest Theme Support Neighborhood set widget ids in theme functions file

Viewing 3 posts - 1 through 3 (of 3 total)
  • #28679
    jhealy
    Member

    Hi,

    just a quickie, but it is quite annoying when implementing a child theme. When you register your sidebars can you add an id to them please. Without this you cannot unregister them in a child theme so are stuck with them or you have to delete code directly from parent theme. Obviously this is not preferred.

    Further the sidebars are just inline in the functions file can you look at hooking into the appropriate action when you are adding ids into the code please, something like:

    add_action( ‘widgets_init’, ‘register_neighbourhood_sidebars’, 10);

    Thanks,

    JHealy

    #29046
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    For now you can add the id to the sidebar in the parent theme and remove it in the child theme by calling unregister_sidebar. It is inside functions.php.

    I flagged this for the developer.

    Thanks for spotting it 🙂

    Thanks,
    laranz.

    #29236
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Adding an ID would mean that it would wipe the current widget setup when users update. I will instead add the function around the registering so that you can override it in the child theme. Hope that helps, and thanks for the recommendation.

    – Ed

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register