• Resolved goonhoon

    (@goonhoon)


    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)
  • Anonymous User 17295425

    (@anonymized-17295425)

    Hello @goonhoon,
    I already check your problem and create a child theme for testing your problem. But childtheme in my PC is working well. Here is my child theme.

    https://www.dropbox.com/s/7hoqxz08zgce7f6/coblog-child.zip?dl=0

    If you have any more question let me know. I will try to solve your problem as soon as possible. If you are satisfied with our support then give us a five-star review in the WordPress directory. As a new plugin developer, it helps us a lot.
    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Child theme not working’ is closed to new replies.