Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Child theme not overwriting CSS

  • Hi, I’m creating a new child theme of the default Buddypress theme but the CSS that I’m adding to styles.css isn’t showing on the site. I have:

    1. Created a new folder at /wp-content/themes/[Child theme]
    2. Changed to child theme in backend
    3.. Created and uploaded a new style.css file with the following content
    `/**
    * Theme Name: Shoot Up
    * Version: 1.0
    * Author: splorp
    * Template: bp-default
    * Tags: buddypress
    */

    body {background-color:#b0c4de;}

    table tr td,
    table tr th {
    padding: 8px;
    vertical-align: top;
    }`
    4. But the background and table vert aligns haven’t changed on the site. I’ve cleared the browser cache, etc.
    5. Resulting page is here: http://beta.shootuporputup.co.uk/

    Any helps or hints much appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of Hugo
    Hugo
    Moderator

    @hnla

    This won’t help:

    id=’Shoot Up-css’

    ID’s are unique thus not only can you not have the same name repeated on a page you can’t have two tokens on the same ID.

    That you have and the second being up-css suggests that you left a space in the directory name for your theme – close it up, no spaces allowed. Spaces in paths / file names are a truly evil thing and only Windows lets it happen, in Unix it aint allowed.

    @hnla – Hugo – that’s fixed it! It’s always the simplest things, eh? Thanks very much for helping – much appreciated.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Good stuff, glad it’s sorted – easiest things are often overlooked for something deeper :)

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

You must be logged in to reply to this topic.