Changing the argument of a function

Try: (add to functions.php of your theme) add_filter( ‘woocommerce_breadcrumb_defaults’, ‘wpse_woocommerce_breadcrumb_defaults’ ); function wpse_woocommerce_breadcrumb_defaults( $args ) { $args[‘wrap_before’] = ‘<nav class=”woocommerce-breadcrumb my-class”>’; $args[‘wrap_after’] = ‘</nav>’; return $args; } Or, copy: wp-content/plugins/woocommerce/templates/global/breadcrumb.php to wp-content/themes/your-theme/templates/global/breadcrumb.php UPDATE: This is the correct path and not above: (thanks @mmm) wp-content/themes/your-theme/woocommerce/global/breadcrumb.php and change the echo $wrap_before; and echo $wrap_after; to your liking.. … Read more

design has been broken in WordPress child theme [closed]

It seems like all the css files are not laoding, you can check what’s not loading the source code and add that or simply replace your functions.php with the following code for Hestia theme. <?php if ( !defined( ‘ABSPATH’ ) ) exit; if ( !function_exists( ‘hestia_child_parent_css’ ) ): function hestia_child_parent_css() { wp_enqueue_style( ‘hestia_child_parent’, trailingslashit( get_template_directory_uri() … Read more

How can I get this child theme stylesheet to properly load? Or if it is correct, why doesn’t my child theme appearance match the parent?

I think you need to declare the bootstrap dependency when you enqueue the parent stylesheet (bootstrap.css is enqueued by the parent theme). The parent theme doesn’t declare the dependency but enqueues style.css after bootstrap.css, so it “just” works. But when you change the order of the enqueue, the dependencies are broken. Use the third parameter … Read more