• Hello

    Can I somehow overwrite “class AlxTabs extends WP_Widget” in child theme and if so, how?

    Thank you

Viewing 1 replies (of 1 total)
  • Hi!

    If you want to load a new widget file via a child theme instead, it’s best to copy over the whole alx_load function from functions.php and modify this line in it:

    load_template( get_template_directory() . '/functions/widgets/alx-tabs.php' );

    To:

    load_template( get_stylesheet_directory() . '/functions/widgets/alx-tabs.php' );

    And it will grab the child theme’s file instead. And you should be able to modify anything you wish within that file.

    (See more details about this in the documentation section “Child Theme”, via the help dropdown)

Viewing 1 replies (of 1 total)
  • The topic ‘Overwrite "class AlxTabs extends WP_Widget" in child theme’ is closed to new replies.