• Resolved cpbottss

    (@cpbottss)


    Hi,

    I’ve been working hard on the CSS stuff and I think (or should I say hope) I’m getting somewhere.

    Here’s the story;

    I’m working on the Pachyderm theme (although I’ll probably change and am more concerned with concepts now) and have installed the one-click child theme pluggin. I’ve checked in my Godaddy file (under file manager) and a child theme was installed and under the child theme’s file there was a style.css file installed. When I open the child theme style.css file it has the following code in it:

    /*
    Theme Name: Pachychildtheme
    Description: Pachyderm Child Theme
    Author: havabitch
    Template: pachyderm

    (optional values you can add: Theme URI, Author URI, Version)
    */

    @import url(“../pachyderm/style.css”);

    The existing child theme site title code was;

    .site-title {
    clear: both;
    color: #49352f;
    font-family: “Berkshire Swash”, “Times New Roman”, serif;
    font-size: 48px;
    font-size: 4.8rem;
    line-height: normal;
    margin: 0;
    }

    I’ve changed the font – using the chrome web developer – to;

    .site-title {
    clear: both;
    color: #49352f;
    font-family: Arial;
    font-size: 48px;
    font-size: 4.8rem;
    line-height: normal;
    margin: 0;
    }

    My question is: Where do I paste the new code into my style.css file? Is it after;

    @import url(“../pachyderm/style.css”);

    I really hope I’m catching on to this. Any feedback is welcomes.

    Cheers,
    Craig

    PS, I can’t list my site because I’ve got it hidden and am working on dev.mysitename.com.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Yes, you can post your new styles/changed styles after the line @import url

    Thread Starter cpbottss

    (@cpbottss)

    Hi,

    I just pasted

    .site-title {
    clear: both;
    color: #49352f;
    font-family: Arial;
    font-size: 48px;
    font-size: 4.8rem;
    line-height: normal;
    margin: 0;
    }

    on the line directly after

    @import url(“../pachyderm/style.css”);

    then clicked save then refreshed the website, but the changes didn’t take.

    Any idea of what I’m doing wrong???

    Do you have caching on your site?

    Also, is the child theme activated and working on your site?

    Thread Starter cpbottss

    (@cpbottss)

    Yes I just emptied the cache and the childtheme is the active one that I’m working on at the moment.

    I’ve just gone to my godaddy file manager again and below is the code in the style.css of the pchychildtheme file.

    /*
    Theme Name: Pachychildtheme
    Description: Pachyderm Child Theme
    Author: havabitch
    Template: pachyderm

    (optional values you can add: Theme URI, Author URI, Version)
    */

    @import url(“../pachyderm/style.css”);
    .site-title {
    clear: both;
    color: #49352f;
    font-family: Arial;
    font-size: 48px;
    font-size: 4.8rem;
    line-height: normal;
    margin: 0;
    }

    Any suggestions where I’ve gone wrong?

    i had the same problem and i just fixed it there by changing the index.php to hello.php (random other name), then uploaded a different index.html document (from notepad). i checked if my site changed to the new index.html (i had already made a different index.html myself but itd prob work with an empty one). then i got rid of the index.html and changed hello.php back to index.php and then on the site pressed ctrl f5 and it was updated. bit inconvenient but it worked!

    Norm

    (@casualmagic)

    Did you remove the original .site-title style from the stylesheet?

    @cpbottss – as you know, it’s really hard to troubleshoot these kinds of things without seeing the site.

    Can you try adding this code right under the @import line – just to see if the child theme is actually working correctly:

    #page {
       border: 1px solid red !important;
    }

    If so, then try adding this CSS:

    .site-title {
        font-family: arial;
    }

    Thread Starter cpbottss

    (@cpbottss)

    Hi WPyogi,

    I actually deleted the child theme and then re-created it with the one-click child theme pluggin and it’s working. I’ve been able to make a variety of changes and am beginning to slowly catch on to CSS. I have much to learn still, but at least the little knowledge I’ve gained will help me learn much faster.

    Thanks for the help.

    YAY – on all counts – good job :)!

    Thread Starter cpbottss

    (@cpbottss)

    Yup! The one-click child theme pluggin was a huge help. I’d recommend it to anyone who has not mastered CSS! 🙂

    Thread Starter cpbottss

    (@cpbottss)

    Ooops, almost forgot; thanks again! 🙂

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

The topic ‘Changing child theme css’ is closed to new replies.