• Resolved breecrowder

    (@breecrowder)


    I’m looking to change the colour of the text for the submit, comment, and subscribe buttons. My website is here.

    This is the CSS I am currently using to change the background colour of my buttons:

    /* Change Colour of Submit Button */
    button, .button, input[type="reset"], input[type="button"], input[type="submit"]{
        background: #BBE7DA;
        border-color: #BBE7DA;
        box-shadow: 0 0 4px 0 #BBE7DA;
    }
    button, input[type="button"], input[type="reset"], input[type="submit"]:hover{
        background-color: #BBE7DA;
        border-color: #BBE7DA;
        box-shadow: 0 0 4px 0 #BBE7DA;
    }

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • color is the property for text colour, so add a line with your desired colour to each of the above CSS statements. For example:

    color: #bb00bb;

    I noticed that you’re targeting all your post titles individually, which makes for a huge block of CSS.

    .single-post #post-2135 .entry-title, .single-post #post-913 .entry-title, .single-post #post-915 .entry-title [etc] {
         display: none;
    }

    Instead of all that code, if your intention is to hide the post title on every post, there’s a much simpler way to do it:

    .single-post .entry-title {
         display: none;
    }

    … will hide all post titles, with no need to specify the post ID.

    Thread Starter breecrowder

    (@breecrowder)

    Amazing! Thank you, Kathryn!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Colour of Text for Buttons’ is closed to new replies.