WordPress.org

Ready to get started?Download WordPress

Forums

StrapVert
[resolved] edits to child theme not working (7 posts)

  1. jayrp
    Member
    Posted 9 months ago #

    I've added a child theme to StrapVert. I believe it's installed correctly and is active, however any changes I try to make on the child style.css page don't seem to do anything.

    For example, I'd like to edit the footer. I've tried copying this into the stylesheet:
    #site-generator{display: none;}

    and I have also copied the footer.php from the parent theme into style.css and edited/deleted text.
    Neither of these had any effect; it still shows the complete/original footer.

    I've also cleared my cache, the only plugins I have are headspace and calendar, which I don't think would effect cache.

    Am I missing something?
    lsstringschool.com
    Thanks

  2. Josiah
    Member
    Posted 9 months ago #

    have you used this one?

    .strapvert-powered-by {
    display: none;
    }

    It appeared things were in the right order, have you tried something insane in child's style.css file that will confirm whether or not it is working?

    Try this:

    body.custom-background {
    background-color: #000;
    }

    you will know pretty quick then.

  3. Zulfikar Nore
    Member
    Theme Author

    Posted 9 months ago #

    @josia.boyd thanks for the answer - you are spot on :)

    @jayrp - StrapVert does not use the selector #site-generator - to hide just the credit link use the first code give above.

    Take a look at the files you want to work on and the selectors will give you an indication of what to target in your custom css :)

    Zulf

  4. Josiah
    Member
    Posted 9 months ago #

    Thanks and great theme!

  5. jayrp
    Member
    Posted 9 months ago #

    Thanks for your comments.
    @Josiah, the code for the footer worked as you said, but the insane background color code made no change...?

    Just to appease my own curiosity, why were my first attempts at changing the footer unsuccessful, when I pasted and edited the footer.php in my stylesheet? Are php and css not compatible?
    And will all css selectors work with the theme?

    Thanks!

  6. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

    I pasted and edited the footer.php in my stylesheet? Are php and css not compatible?

    No, you cannot put php code in a CSS file - they are totally different - it won't work at all and will invalidate any CSS after the php code.

    And will all css selectors work with the theme?

    CSS is theme (and to some extent site) specific, so no, you cannot use CSS you find someplace else and expect it to work.

  7. Zulfikar Nore
    Member
    Theme Author

    Posted 9 months ago #

    I think this issue has now been addressed and therefore marking the thread as resolved.

Reply

You must log in to post.

About this Theme

About this Topic