Okay, so after a couple of days pulling my hair out, I finally realized that I needed to add the following line, after the require_once line in functions.php:
add_action('widgets_init', 'wpb_load_widget');
… and everything then worked perfectly. (where wpb_load_widget is the name of my register-widget function in the widget file itself.)
Related Posts:
- Widget is displayed in two places
- How to customize the_archive_title()?
- How to override parent functions in child themes?
- remove_action on after_setup_theme not working from child theme
- Adding a second email address to a completed order in WooCommerce [closed]
- Can the new 4.8v text widget visual editor be removed?
- Include files in child theme functions file
- How to influence the information displayed on widget inside wp-admin
- Child theme functions.php do I use php open and close tags?
- Declaring an instance of class included in parent theme from child theme functions.php
- How can I get $id variable in widget’s form function?
- Using add_filter() in Widgets
- Implementing DNS Prefetching with WordPress
- Child theme – overriding add_image_size by a child theme [duplicate]
- Is it possible to override this function/class in a child theme?
- How to override functions.php in child theme?
- remove the wrapping of text widget or
- Programmatically Add Font-Awesome Icons to Category Widget
- Authors details such as social media links, emails etc → Is this Meta or something else?
- Change parent theme file function in child themes functions.php
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- Reuse variable in hook callback
- Dynamically Register Sidebars For Each Top Level Page
- How to override filter in child theme?
- I created a child theme and it doesn’t work for some of the css files
- Unregister Nav Menu with fallback?
- Child Theme Not Overriding Parent Theme
- Displaying Widgets
- Changes to functions.php not working
- How to store / access files in child theme folder
- Increment price for Woocommerce Minicart [closed]
- Overwrite Parent Theme add_image_size in Child Theme
- Proper way of using functions in action hook?
- Missing argument 2 for a custom function widgets_init
- how to edit functions.php in a child theme
- Include files in child themes, declare in functions.php
- How to remove set_post_thumbnail_size() in child themes?
- How to insert custom widget in custom sidebar in theme activation?
- Echo tags used to describe the theme
- Child theme within a child theme?
- Right way to update widget on dynamic new input field
- Problem only while using require_once() within functions.php
- Passing values from a widget to a function within a plugin
- Override widget in function WordPress
- How can I change a function in a parent theme via a child themes functions.php
- Best practices regarding the creation of custom widgets?
- How can I make a widget shortcode to control all the widgets?
- Replace a menu with widget or a custom template file programmatically
- Automatically include all php files in a child theme directory
- Pagination in relation to archive.php
- How to load parent theme template parts in child theme
- WordPress Shortcode function display outside of widget
- Get rid of the widget Item Class=”widget-item”
- Running script based on Category
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Not all CSS elements transferring via parent to child?
- Can’t Write Custom Widget Code In One ECHO
- Got white blank page after copying the functions.php to child theme
- Randomizing wp_tag_cloud() in child theme
- Where do I go to edit this area? [closed]
- Why is it so hard to add a class to the tag in the sidebar widget?
- Parent theme styles overriding child theme CSS [closed]
- The correct way to add a JavaScript in the functions.php [closed]
- Passing user enetered value in widget: number of words, for example
- Register_Sidebar overwriting itself and doesn’t exist in global $wp_registered_sidebars;
- How to remove admin footer text from inside child theme?
- How to store a number (coming from cookie) into query vars for later usage in other filters?
- How to overwrite template.php file
- remove_action not working, even after changing priority [duplicate]
- How to use parent theme functions in child theme functions.php file?
- Removing parent theme CSS without editing parent theme
- widgets not working
- Change custom featured image size in twentythirteen child theme
- How to conditionally add a widget via a hook in functions.php
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- How Do I include/Import a Custom Widget from the Parent theme into My Child Theme?
- Looking for Functions File that doesn’t Exist
- how can I add filter in specfic field in my website?
- How to add javascript code into Divi child theme?
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- Change default color scheme in twentyfifteen child theme?
- my wordpress doesn’t save items to customized widget area
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- Copying a widget class to functions.php results on a blank page
- uninstall a theme programmaticlly
- Adding a meta box fields to child theme options page
- Update add_image_size
- Load a Child Theme’s style.css just before the closing tag
- Expanding a function to call a plugin or show a link
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- Register a widget area when a theme option has been saved?
- Blank child theme – functions.php problem
- Give a function a unique ID
- Add the title of a widget as an ID – for anchor links
- Child Theme not working – CSS gone
- How do I make my child theme’s CSS update when I save it?
- How to fix enqueue_styles error for a twenty-seventeen childtheme
- Swap WordPress “Widget Area” based on Page Template
- Proper way to load styles using a child theme
- Child theme’s functions.php not being read (child theme’s autoload.php not being run)