Hot answers tagged

3

You'll be unable to automatically update the parent Divi theme when it's directory becomes renamed. You can use any of caching​ plugins with CSS minify or/and CSS combine turned ON. This way everybody will see /cache directory instead of the actual theme directory. Or as the alternative, you can update renamed parent theme manually, directory by directory, ...


2

There's no need for the wp-content/themes path - both themes sit in the same directory, so you can just traverse up one and then back down to child theme: background-image: url(../child-theme-name/images/some-image.png); Update: Regarding your answer to "where is the CSS file stored", you inferred that the stylesheet resides in the child theme folder - in ...


2

Sorry I can not comment yet on this site Could you be removing an action before it is registered? Have you tried wrapping this with an on init hook? Perhaps using remove_filter would be a better choice. function my_init() { remove_filter( 'storefront_header', array( 'Galleria_Structure', 'galleria_top_bar_wrapper' ) ); remove_filter( ...


2

Why not use a completely separate repo for each child-theme site once its established? Clone the master repo when spinning up the environment, remove the Git directory, init a new Git repo, and push it up to wherever? Now each child theme can be developed independently of each other. Alternatively, if you're using the same site as a base and making minor ...


1

It's outputting the word Array which is self explanatory. Instead of direct echoing it, you will need to turn the array into a string. Try implode, something like: Tags: <?php $my_theme = wp_get_theme(); echo implode(', ', $my_theme->get( 'Tags' ) ); ?>


1

It is mostly matter of personal preference how to structure this. The typical approaches are: CSS import (used to be popular, but considered kind of meh now); enqueue parent stylesheet as dependency and customize with rules in your stylesheet (more files, less trouble); copy parent stylesheet into child completely either once or repeatedly via build tools ...


1

You would have to rename the directory of the Divi theme. However, this could break the theme if there are components that depend on the directory being named Divi. Also, there may be copyright issues.


1

There are three things to check: 1 - Is your parent theme complete and what is the exact spelling of the parent theme's name in its style.css. Uppercase and lowercase are important. 2 - Is the child theme directory named parentname-child. It should be in the themes directory, not in a subdirectory of the parent theme. 3 - Does the child theme's style.css ...



Only top voted, non community-wiki answers of a minimum length are eligible