WordPress.org

Ready to get started?Download WordPress

Forums

.byuser class for authorcomments??? problem? (4 posts)

  1. sepp88
    Member
    Posted 4 years ago #

    hi there,
    i simply want to make all .byuser comments on my blog in a different color. since wp 2.7 the style.css has a
    ol.commentlist li.byuser {} class to style the author and byuser comments.

    however, i'm using the modicus-remix theme and unfortunately the comments aren't built with a list-element.

    in this theme the comments are a loop of a div-element with the class "bubble".

    div.bubble {
        margin-bottom:24px;
        width:auto;
    }
    /* i tried to add the div.byuser class -> doesn't work -> all divs with the bubble class get colorized!!! ??? */
    div.bubble, div.byuser{
        background-color:#CCCCFF;
    }
    div.bubble blockquote {
        border:1px solid #C9C2C1;
        margin:0px;
        padding:10px;
        background:#fff;
    }
    div.bubble blockquote p {
        line-height:1.3em;
        margin:0px;
        padding:0px;
    }
    div.bubble cite {
        background:transparent url(images/tip.gif) no-repeat scroll 20px 0pt;
        display:block;
        font-size:1em;
        font-style:normal;
        margin:-7px;
        padding:7px 0px 10px 15px;
        position:relative;
        top:5px;
    }

    is there a chance to style this div.bubble element if it comes from an author? or does this .byuser class only work with list-elements.

    as you can see in my sample css i tried to add this few lines, however it doesn't work:

    /* i tried to add the div.byuser class -> doesn't work -> all divs with the bubble class get colorized!!! ??? */
    div.bubble, div.byuser{
        background-color:#CCCCFF;
    }

    ??? any ideas ???

  2. Peter Boosten
    Member
    Posted 4 years ago #

    What's the url to your site?

    Peter

  3. sepp88
    Member
    Posted 4 years ago #

    unfortunately i've no url to provide, due to the fact that i'm developing locally.

    i would be so cool, if i could get to work. thank you very much!

  4. michael
    Member
    Posted 3 years ago #

    I have a similar problem: http://fearlessflyer.com/2009/06/free-wp-theme-blue-rooster/#comment-618

    I'm not sure why wp is assigning both classes (byauthor and byuser) to the list item of my comment.

    Now all comment replies for that parent comment inherits the same styling.

    does anyone get my question?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.