• Resolved Cr00zng

    (@cr00zng)


    WP 3.9.2 with Twenty-Fourteen theme, changing the layout, font style, size, colors, and background with child theme.

    Pretty much everything is how I wanted, except the date and leave a comment hover colors. The current green color is listed in the twenty-fourteen theme as:

    color: #41a62a;

    There are 28 places in the twenty-fourteen theme CSS, where this color is stated. For example:

    .comment-author a:hover,
    .comment-list .pingback a:hover,
    .comment-list .trackback a:hover,
    .comment-metadata a:hover {
    	color: #41a62a;
    }

    Changing most of them to my color choice in the child theme CSS has no impact to how the website displays the hover colors.

    Could someone shed a light on where the hover color is changed in the CSS?
    TIA…

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter Cr00zng

    (@cr00zng)

    Sweet!!

    Thank you for restoring my faith in the effectiveness of the child theme, much appreciated.

    No problems. It’s always good to sock it to !important ??

    Thread Starter Cr00zng

    (@cr00zng)

    I am glad to help… ??

    The !important tag can be helpful because it is always best to err on the side of caution. ??

    No, that’s just advocating sloppy coding. It’s bad practice to arbitrarily throw in !important declarations all over the place to quickly solve a problem.

    I wasn’t arbitrarily throwing in !important declarations because if a styling is already defined in the stylesheet of the parent theme, it is best to err on the side of caution by overriding it with a !important declaration. Of course if you create a rule for an element in a child theme’s stylesheet that is not in the stylesheet of the parent theme, the !important declaration is not needed.

    if a styling is already defined in the stylesheet of the parent theme, it is best to err on the side of caution by overriding it with a !important declaration

    Seriously, it isn’t.

    Thread Starter Cr00zng

    (@cr00zng)

    From a novice perspective…

    Using the !important declaration in the child theme defeats the purpose of the child theme. It certainly confused me and contradicted my understanding of the relation between the base and child themes.

    The bottom line is that with or without declaration the child theme works as intended to. My personal preference is without the declaration, even if there’s a little chance that someone else will work on my child theme.

    And again… I appreciate both of your help on this subject, thanks…

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Date and leave a comment hover color…’ is closed to new replies.