• Resolved lepinat0r

    (@lepinat0r)


    Hi all,

    I just started working with wordpress yesterday and am enjoying a nice break of creating everything from scratch. I have ran into a snag with the css though. I am currently adding css to the bottom of my style.css file but not all of it is being loaded on my site.

    I have tripple checked for typos, ran it through a css validator, and don’t believe it is a linking issue since some of the css is showing and others aren’t. I am able to edit the elements using jQuery fine, but doing that for every element is tedious, not to mention bad practice.

    This is all the css I’ve tried to add:

    .title_sub_heading {
      font-size: 26px;
      color: #34d293;
    }
    
    .title_sub_heading > span#sub_heading_amp {
      font-size: 26px;
      color: #FFF;
    }
    
    h1.intro-text {
      color: #FFF;
    }
    
    div#main-nav {
        min-height: 50px !important;
        background: rgba(0, 0, 0, 0.28) !important;
    }
    
    .navbar-inverse .navbar-nav>li>a {
        color: #FFF;
        padding: 0;
        line-height: 10px;
    }
    
    section#aboutus .section-legend {
      color: #34d293;
    }
    
    .navbar-inverse .navbar-nav>li>a:hover, .navbar-inverse .navbar-nav>li>a:focus {
        color: #34d293;
    }
    #aboutus div.big-intro {
      color: #cb4332;
    }

    This is the only css that is loading though when I check the sources in my google chrome tools:

    .title_sub_heading {
      font-size: 26px;
      color: #34d293;
    }
    
    .title_sub_heading > span#sub_heading_amp {
      font-size: 26px;
      color: #FFF;
    }
    
    h1.intro-text {
      color: #FFF;
    }
    
    #main-nav {
        min-height: 50px !important;
        background: rgba(0, 0, 0, 0.28) !important;
    }
    
    .navbar-inverse .navbar-nav>li>a {
        color: #FFF;
        padding: 0;
        line-height: 10px;
    }
    
    .navbar-inverse .navbar-nav>li>a:hover, .navbar-inverse .navbar-nav>li>a:focus {
        color: #34d293;
    }

    Here is the link to the site if that will help:

    http://matthewlepley.me/

    Let me know if you need more information, and thanks in advance!

    Happy Coding,
    Matt

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi Matt!

    Are you using a caching plugin by chance?

    Thread Starter lepinat0r

    (@lepinat0r)

    Hey Sorry for the late reply,

    Logging on today I noticed that all the css was there without making any other changes. Is it possible that there is quite a delay between when my live server gets the updated files and when I actually updated the files?

    The only two plugins I am using are the WordPress Importer and Jetpack.

    I have just tried to make another small change, just a font color and the effect hasn’t taken place. It has been about 10 minutes. This seems a little long if there is any sort of delay.

    I have also tried doing hard refreshes of the browser and opening the site in incognito which doesn’t have cache with no luck.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    I would reach out to your host and ask if they are using some sort of cache.

    Thread Starter lepinat0r

    (@lepinat0r)

    Thanks for the fast response.

    Just to be clear before I contact them, after I alter a file and hit
    ‘update file’ that I all I need to do for the content of the site to be updated right? I don’t have to publish or do anything else right?

    Thread Starter lepinat0r

    (@lepinat0r)

    Okay, I feel dumb. My host has a cache feature that I had no idea about. Flushed that and disabled for the future and I am all set!

    Thanks for the help Jose!

    Happy Coding,
    Matt

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Awesome! Yeah, some hosts do it automatically and some you have to set up. Glad to see you got it figured out. 🙂

    Have an awesome rest of your weekend!

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

The topic ‘Not all Styles from style.css are Loading’ is closed to new replies.