wp_enqueue_style referencing parent theme
You can use get_stylesheet_directory_uri(); while enqueuing the scripts and styles. It returns the directory path in which your child stylesheet is stored.
You can use get_stylesheet_directory_uri(); while enqueuing the scripts and styles. It returns the directory path in which your child stylesheet is stored.
It does look like some compatability issues are present. There is an answer to a very similar situation on stack exchange here: https://stackoverflow.com/questions/37738732/jquery-3-0-url-indexof-error
You can’t replace the function, but you can substitute it: Copy the function to your child theme’s functions file. Rename the function. Modify it as needed. Find the template file that references it, such as header.php, and copy that to your child theme. In your child theme’s new template file replace the reference to the … Read more
You could use the filter term_links-post_tag to sort tags while ignoring their case: add_filter( “term_links-post_tag”, ‘themeslug_sort_tags_alphabetically’ ); function themeslug_sort_tags_alphabetically( $tags ){ natcasesort( $tags ); return $tags; } This code is to be placed in the functions.php of the child theme.
You can’t just redeclare the function in the child theme or call add_action a second time. It doesn’t replace it, it adds a second hook. As a result, you haven’t overriden it, you’ve duplicated the original. Child theme overrides only work for templates. What’s more, by adding a second definition of wp_bootstrap_starter_custom_header_setup you’ve declared the … Read more
No, it doesn’t appear to be possible. At least not directly. You can replace functions in parent themes if they are wrapped in: if ( ! function_exists( ‘get_nav_markup’ ) ) { } Because child themes are loaded before the parent this gives you an opportunity to define get_nav_markup() before the parent theme is loaded. That … Read more
The parent theme’s functions.php runs after the child theme’s, so in order to remove an action defined by the parent theme the remove_action call must be delayed using a hook after the parent theme registers the action. So putting the remove_action call purely inside the child’s functions.php won’t work. It must be attached to a … Read more
There is no filter. To filter a value the developer needs to create a filter by wrapping the filterable value in a call to apply_filters() with a name for that filter. They have not done that. What they have done is make the WpkPageHelper class pluggable. This means that it’s possible for a child theme … Read more
From the WordPress documentation on child themes (Referencing or Including Other Files): To reference the parent theme directory, you would use get_template_directory() instead. Therefore, in your child theme, you could include your parent template file like this: <?php include get_template_directory() . ‘/template_parts/layouts/profile/profile-modern.php’; ?>
I think you can just move the languages folder to /wp-content/languages/ then you prevent the theme to update your translations of the theme. And then you can add your own little plugin to change the load_theme_textdomain path to the new folder in wp-content: Add this as a plugin in /wp-content/plugins/buttercream-lang.php /** * Plugin Name: Buttercream … Read more