D
D
dadster2015-10-16 21:45:07
WordPress
dadster, 2015-10-16 21:45:07

How to override the function of the main WordPress theme (StoreFront theme)?

There is such a WooCommerce theme - StoreFront.
Some of its functions are located not in the main functions.php file, but in the inc/functions/extras.php file.
There is a function that is called directly in the template, it does not return anything, it just outputs information via echo.
How can I properly override this function?
If I insert it into the functions.php file at the root of the child theme, the site crashes with an error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2015-10-17
@dadster

If there are no filters in it, or checks for the presence of another function with the same name, then there is no way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question