CSS in Schema FAQ

#290623
  • Resolved Michael
    Rank Math free

    Hello, I am not sure how to add the custom CSS in your Schema FAQ. I put in the FAQ options -> advanced the code (for example background-color: #ff0000;) and it does not work. Could you please help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Azib Yaqoob
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    You can add the following CSS in the Additional CSS option of your theme to change the FAQ-style:

    
    #rank-math-faq{
        background: #F0F4F8;
        border-radius: 5px;
        padding: 15px;
        margin-bottom: 1rem;
    }
    .rank-math-list-item {
        background: #fff;
        padding: 15px 15px 20px;
        box-shadow: 0px 0px 10px #d1d8dd, 0px 0px 40px #ffffff;
        margin-bottom: 1rem;
        border-radius: 5px;
    }
    .rank-math-question {
        border-bottom: 1px solid #F0F4F8;
        padding-bottom: 0.825rem;
        margin-bottom: 0.825rem;
        position: relative;
        padding-right: 40px;
    }
    

    You can change the CSS as per your requirements. Do note that the font size/style will depend on your theme’s main CSS style.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Michael
    Rank Math free

    Thank you very much for your answer! I am not sure why but when I add your code in an additional CSS class, it does not do anything. Not sure if I missed something?

    Michael
    Rank Math free

    I also tried to put it in the style.css of my theme, but no change whatsoever.

    Michael
    Rank Math free

    IT works now, thank you.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘CSS in Schema FAQ’ is closed to new replies.