• Resolved zpupster

    (@zpupster)


    this is my first child theme.

    parent theme-oxygen

    what i have done is started a New Folder in
    wp-content–>themes–>
    and named it oxygen-child

    save a style.css file with this info

    /*
    Theme Name: oxygenChild Theme
    Theme URI: http: //site.com/
    Description: This is a custom child theme I have created.
    Author: Craig
    Author URI: http: //site.com
    Template: oxygen
    Version: 0.1
    */
    
    @import url("../oxygen/style.css")

    went to Apearence–> themes

    and chose oxygenChild and activated it.

    i viewed it and it looked just like oxygen
    with styling

    My Problem :

    when i add anything to style.css in oxygen-child

    such as

    body {
    margin: 0;
    font: 0.75em/1.75em ‘Helvetica Neue’, Helvetica, Arial, sans-serif; /* 12 / 16 = 0.75; 21 / 12 = 1.75 */
    color: #444;
    background: #000;
    padding: 0;
    }

    or anything for that matter

    all styling disappears

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter zpupster

    (@zpupster)

    i watched 2 videos on youtube and still can not figure out why the css disappears.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    From what it seems you have a syntax error; which is reasonable to presume since syntax errors break all proceeding CSS.

    Put a semicolon on the end of your @import line;

    @import url("../oxygen/style.css");

    Thread Starter zpupster

    (@zpupster)

    thank you,

    working long hours, just did not see it.
    -should of known better.

    thanks again

    craig

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘child style.css not showing anything’ is closed to new replies.