child of Simone stylesheet not loading?
-
My goal is to build a child of the Simone theme. I think there is a particular issue about child stylesheet loading with the Simone theme.
Am I loading my stylesheet correctly?
Here is what is at the top of my child theme style.css file:
/* Theme Name: Simone Child for SRP Theme URI: https://siliconrun.com/wp-jun2016/wp-content/themes/simone-child-srp/ Description: Child theme built for SRP based on Simone by Morten Rand-Hendriksen Author: Susan Taunton Author URI: https://wildbluepixel.com Template: simone Version: 0.0.1 License: GNU General Public License v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html */
This is in my child theme functions.php file:
add_action( 'wp_enqueue_scripts', 'dequeue_parent_theme_styles', 11 ); function dequeue_parent_theme_styles() { wp_dequeue_style( 'simone-parent-style' ); wp_dequeue_style( 'simone-layout' ); }
Here’s the home page of my site-in-progress.
https://siliconrun.com/wp-jun2016/The dotty background (which I don’t want behind the page or post content), appears when I activate my child of Simone theme. Also page margins disappear when I activate my child of Simone theme.
I also find I am unable to remove the top and bottom space from above and below the title box in the masthead section. Normally, I would expect adding the style below to the child theme stylesheet would do that:
div.site-branding { padding:0; }
But it doesn’t.
And that is the only style I have in my child theme stylesheet.
Thank you for any helpful insights!
- The topic ‘child of Simone stylesheet not loading?’ is closed to new replies.