WordPress.org

Ready to get started?Download WordPress

Forums

zAlive
[resolved] Problem with Child Theme CSS (6 posts)

  1. nathanagin
    Member
    Posted 6 months ago #

    I've created a style.css file for the Child Theme and the theme *works* (in that, I can activate it), but the styles have been stripped.

    Site: http://nathanagin.info/busters/

    Here's the code of the style.css file in the zalive-child folder:

    '/*
    Theme Name: zAlive - Child
    Template: zalive
    */

    @import url(‘../zalive/style.css’);
    @import url('../zalive/css/bootstrap.min.css');
    @import url('../zalive/css/bootstrap-responsive.min.css');
    @import url('../zalive/css/theme-options.css');
    @import url('../zalive/css/zAlive_wp_pagenavi.css');

    /* =Theme customization starts here
    -------------------------------------------------------------- */'

    Thanks!

  2. batharoy
    Member
    Posted 6 months ago #

    Take out all the imports except the top one, see if that works.

  3. nathanagin
    Member
    Posted 6 months ago #

    I had started with that (to no avail), and when I saw this theme used the Bootstrap theme and other CSS files, I included those, as that process worked with another WP theme.

    So, still not working even with just the top line.

  4. Andrew
    Forum Moderator
    Posted 6 months ago #

    Clear your caching plugin's cache and deactivate it when you want to see immediate changes.

  5. nathanagin
    Member
    Posted 6 months ago #

    I'm not using a caching plugin.

  6. nathanagin
    Member
    Posted 6 months ago #

    SOLVED IT.

    The first line had someone gotten curly quotes instead of straight quotes: import lines can *only* use '.

    And it only needs the first import line to work.

Reply

You must log in to post.

About this Theme

About this Topic