The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
change size of star...
 
Share:
Notifications
Clear all

Question [Solved] change size of star rating

4 Posts
2 Users
0 Reactions
88 Views
Posts: 2
 kh86
Topic starter
(@kh86)
New Member
Joined: 1 month ago

Hello,

I am using the star rating for my posts. However, the stars seem to be too small when visitors want to rate an article on a mobile phone. Is it possible to change the size of the stars for rating with CSS?
Thank you.

Topic Tags
3 Replies
Asti
Posts: 7464
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi,

Please leave the URL of your website, We'll check and provide a CSS solution for you.

2 Replies
 kh86
(@kh86)
Joined: 1 month ago

New Member
Posts: 2
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7464

@kh86 

Please use the CSS code below: 

@media screen and (max-width: 600px){
#wpd-post-rating .wpd-rating-wrap { width: 80%;}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-data {
    flex-grow: 1;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-right, #wpd-post-rating .wpd-rating-wrap .wpd-rating-left{
    flex-grow: 0;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-stars svg {
    width: 65px;
    height: 65px;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-value {
    height: 85px;
    width: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrv, #wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrc, #wpd-post-rating .wpd-rating-wrap .wpd-rating-value .wpdrt{
    font-size: 56px !important;
}
#wpd-post-rating .wpd-rating-wrap .wpd-rating-title{
    font-size: 20px;
}
}

Put the code in the "Custom CSS code" textarea, located in the Dashboard > wpDiscuz > Settings > Styles & Colors admin page.

Don't forget to delete the caches before checking.

Share: