Regarding to make correct/incorrect answers radio button

  • Author
    Posts
  • #159960

    ssccglapex
    Original poster

    Dear sir
    I want to make a radio button for the question when we select the correct answer then radio button should be green and for incorrect answer the radio button should be red color. That means in four options one option should be correct that will be green and other will be red. Please provide some html and css code for future.
    I appreciate, you are a genius and great engineer.

    The blog I need help with is: ssccglapex.com

    #159970

    tarasdashkevych
    Theme Author

    Hello,

    Could you please post a link in this thread to the page where these radio buttons are located, so I can inspect the page to see if it’s possible to make such change regarding the color?

    Kind regards,
    Taras

    #159983

    ssccglapex
    Original poster

    https://ssccglapex.com/a-car-owner-buys-petrol-at-rs-7-50-rs-8-and-rs-8-50-per-litre-for-three-successive-years-what-approximately-is-the-average-cost-per-litre-of-petrol-if-he-spends-rs-4000-each-year/

    Dear sir
    I want to make a radio button for the above question link when we select the correct answer then radio button should be green and for incorrect answer the radio button should be red color. That means in four options one option should be correct that will be green and other will be red. Please provide some html and css code for future.
    I appreciate, you are a genius and great engineer.
    Thanks again, you have solved the answer background color.
    Please solved the above question also.
    Thank you!

    #159992

    tarasdashkevych
    Theme Author

    Thank you for providing the link.

    Currently, your page displays answers using regular paragraphs.

    In order to achieve your goal (select the correct answer using radio button and display a specific color based on a selection), you need to have a custom solution developed using HTML, CSS and JavaScript.

    Unfortunately, it’s not something that is provided by the WordPress core or the theme by default. You need to use a special plugin for that kind of functionality.

    I would recommend you to check WordPress plugin repository (https://wordpress.org/plugins/) for such functionality for WordPress sites.

    While our themes should work fine with most plugins, there is no way for us to test and guarantee that all of these plugins will be compatible with our themes. If the plugin has been coded to WordPress’ standards then it should play nicely with our themes.

    Hope this helps. Please let me know if you have any additional questions.

    Kind regards,
    Taras

The topic ‘Regarding to make correct/incorrect answers radio button’ is closed to new replies.