• I am using Colormag theme and want to make some customisations of CSS, functions.php and 404.php so I created a child theme “colormag-child” which activated OK but I cannot get the changes to display.

    To create my child theme I made a new theme folder called “colormag-child” and added a style.css like:

    /*
     Theme Name:     Colormag Child Theme
     Theme URI:      http://themegrill.com/theme-instruction/colormag/
     Description:    ColorMag Child Theme
     Author:         Tony Gilbert
     Author URI:     http://www.websupportguy.com
     Template:       colormag
     Version:        1.0.0
    */
    
    @import url("../colormag/style.css");
    
    /* write custom css */

    To test if it’s working I have added a new H2 style like:

    h2 {
        font-size: 48px;
    /*    font-size: 32px;*/
        line-height: 1.2;
    }

    But the H2s in posts are still showing at 32px, not 48 px, so I know the CSS in the child theme is not being loaded.

    Any idea why it’s not being loaded? The site is http://www.travelnasia.com if you would like to take a look. I’ve already searched for posts with similar problems and found nothing that was helpful for me.

    Thanks, Tony

Viewing 2 replies - 1 through 2 (of 2 total)
  • In the code snippet you posted here, you’ve correctly included the semicolon at the end of the @import line. But on your actual site, you don’t have the semicolon at the end of the @import line. Also, I don’t see the h2 { ... } code on your site.

    Hello, I am using the @import code to make a colormag child theme. It works but now all of my pages are listed on the menu of the home page as opposed to the 5 that I wish as menu items. What is happening and how do I fix this? Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Can't get child theme changes to work’ is closed to new replies.