• M

    (@angelxchild)


    Stop forcing people to select colors for the global styling. If no colors are selected, it should default to be transparent or just not add the inline style, not force your default colors. Did it ever occur to you that people could be using custom review templates or want the styles to come from their own stylesheet?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Suraj Vibhute

    (@suraj78)

    Hello Jenny,

    Sorry for my ignorance but can you please tell me if setting the color in the Global general settings does not help in such cases?

    Once set in the general settings, one does not need to set that every time for new posts.

    Rather than adding custom colors in the custom template or stylesheet, you can add the same colors in the Global settings.

    Looking forward to helping you. Thank you.

    • This reply was modified 6 years, 5 months ago by Suraj Vibhute.
    Thread Starter M

    (@angelxchild)

    It’s fine to have it for people who wish to set the global colors, but for those who don’t, you’re adding default colors regardless, with no way of removing those colors. If no color values are set, the default should be transparent, or just not add those inline styles at all.

    Plugin Support Suraj Vibhute

    (@suraj78)

    Hello Jenny

    Sorry to disappoint but the plugin is coded in this way only.

    Most of the users set global values to the options, otherwise, plugin’s styling gets break.

    What I’m adding internally is a request to introduce a new filter to disable inline stylesheet.

    Hope that helps. If there’s anything else, please let me know. I’m here to help. Thank you.

    Plugin Support Suraj Vibhute

    (@suraj78)

    Hello Jenny,
    I have discussed this issue with our developers, they told me about the existing filter present in the plugin which will remove the inline CSS.

    Please add below code in the functions.php file present in your theme file and it will remove the inline CSS.

    add_filter( 'wp_review_color_output', '__return_empty_string' );

    Hope this helps.
    Thank you.

    Thread Starter M

    (@angelxchild)

    Tried adding that to my functions.php, didn’t do anything.

    Plugin Support Suraj Vibhute

    (@suraj78)

    Hello @angelxchild,

    It is working fine for me. Are you using any cache plugin or Cloudflare cache? If yes please try clearing the cache or disable the cache plugin for some time.

    Looking forward to helping you.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘disable inline styles’ is closed to new replies.