[TIP] Changing Star Color

This topic contains 2 replies, has 2 voices, and was last updated by  Paolo 10 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #13784

    identity
    Lifetime Member
    Post count: 445

    Thought I’d share some CSS for changing the color of the star. The method for the star image is pretty good. The star is actually transparent in the middle and a background color is applied behind the stars at a calculated width to represent the “average” overall rating.

    Hopefully you are using an “override style sheet” which this can be added to:

    
    
    div.geodir_RatingAverage, li.gd-multirating-star.active {
    	background-color: #FF0000 !important;
    }

    For example, the above color changes from the default orange to red.

    There are two directives here…the first for the completed ratings, the second for the interactive rating as a user is hovering over the ratings prior to selection.

    The one drawback I’ve seen so far is that the star uses a white surrounding background, which contrasts against the light gray background used for the completed rating/review comment. Still playing with a way to get change that to white, but so far only able to force it with !important…still need to find an overriding specificity.

    cheers

    #13791

    identity
    Lifetime Member
    Post count: 445

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #13806

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount