• Plugin Support Blaz K.

    (@blazk)


    Rate my Post allows you to easily change colors, font sizes, margins and more in the settings. However, sometimes this is not enough and below are some CSS snippets that will help you apply additional styles. Furthermore, you will also find fixes for the most common problems at the bottom. If you don’t know how to add custom CSS to your website, first read this blog post: https://en.support.wordpress.com/custom-design/editing-css/. If you need help, don’t hesitate to contact me through the support forum ??

    1. Change stars color in rating widget

    
    .rating-stars ul > li.star > i.fa {
        font-size: 2.5em;
        color: #e6e6ff; /* Stars color */
        cursor: pointer;
    }
    
    .half-icon-highlight i {
        background: linear-gradient(to right, #ffe699 50%,#e6e6ff 50%); /* Insert both, stars color and stars highlight color */
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    

    2. Change stars color in results widget

    
    .rmp-results .star-result .fa {
        color: green;
    }
    
    .rmp-results .star-result .fa.star-half-highlight {
        background: linear-gradient(to right, #FF912C 50%,green 50%); /* Insert both, stars color and results color */
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    

    3. Change text area width in feedback widget

    
    .rmp-text-area {
        min-width: 100%; /* Width of text area */
    }
    

    4. Change Submit Feedback button

    
    button#feedback-button {
        height: 70px;
        padding: 10px;
        width: 250px;
        margin: 1em auto;
        background-color: #FEB1C0;
        border: none;
        border-radius: 3px;
        text-transform: uppercase;
        letter-spacing: 0.5em;
    }
    
    button#feedback-button:hover {
        cursor: pointer;
        background-color: blue;
    }
    

    5. Change social icons in social widget

    
    /* Make them square */ 
    .rmp-social-view .social-icons .rmp-social-icon {
        padding: 10px;
        font-size: 20px;
        width: 40px;
        text-align: center;
        text-decoration: none;
        margin: 5px 2px;
        border-radius: 0%;
        -webkit-transition-property: none;
        -moz-transition-property: none;
        -o-transition-property: none;
        transition-property: none;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }
    
    /* Change color of fb icon */ 
    .fa-facebook.rmp-social-icon {
        background: black;
        color: blue;
    }
    

    Common Fixes

    The plugin uses FontAwesome instead of images (stars and social icons) because FontAwesome has several advantages over images:

    • It’s easy to style
    • It’s Retina ready
    • It has a performance advantage

    FontAwesome can be overridden with CSS . Below are the common fixes if this happens.

    1. Social Icons are not appearing

    
    a.fa.rmp-social-icon {
        font-family: FontAwesome!important;
    }
    

    2. Stars in rating widget are not appearing

    
    .rating-stars ul > li.star > i.fa {
        font-family: FontAwesome!important;
    }
    

    3. Stars in results widget are not appearing

    
    .rmp-results .star-result .fa {
        font-family: FontAwesome!important;
    }
    
    • This topic was modified 5 years, 10 months ago by Blaz K..
Viewing 1 replies (of 1 total)
  • Plugin Support Blaz K.

    (@blazk)

    Part 2: What to do if stars don’t show in one line on mobile?

    On very small screens the stars might not show in one line – depending on your theme which dictates the padding. In case that you see the stars in two lines on mobile you can use the CSS snippets below to make stars smaller or put them closer together only when the width of the screen is less than certain amount of pixels.

    1. Make icons smaller when the screen is less than 334px wide:

    
    @media only screen and (max-width: 334px) {
     .rating-stars #rmp-stars .star .fa {
       font-size: 2em;
     }
    }
    

    2. Put stars closer together when the screen is less than 334px wide:

    
    @media only screen and (max-width: 334px) {
     .rating-stars #rmp-stars .star .fa {
       margin-left: -5px;
       margin-right: -5px;
     }
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘[Advice] Styling the plugin’ is closed to new replies.