Child theme not working
-
Hi Coblog,
I have recently realised that my style.css sheet is not showing any changes on my website. Only css added through the ‘additional css’ tab in WP editor is working.
Any idea how to correctly enqueue the parent theme?
This is my functions.php file:
<?php /** * Enqueue theme scripts and styles. */ function coblog_child_scripts() { // Child theme stylesheet. wp_enqueue_style( 'coblog-child', get_stylesheet_directory_uri() . '/style.css' ); // Font Awesome. wp_enqueue_style( 'font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' ); // Custom Scripts wp_enqueue_script( 'coblog-child-scripts', get_stylesheet_directory_uri() . '/js/scripts.js', array( 'jquery' ), '1.0', true ); } add_action( 'wp_enqueue_scripts', 'coblog_child_scripts', 8 );
The style.css sheet starts with:
/* Theme Name: Coblog Theme URL: https://thecodinglawyer.com Description: Coblog Child Theme Author: Adam Hackl?nder Author URL: https://thecodinglawyer.com/ Template: coblog Version: 1.0.0 Text Domain: coblog-child */
My issue is that I am trying to edit the search field and therefore need to be able to edit the style.css sheet.
Thanks!
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Child theme not working’ is closed to new replies.