Hi, I wanted to know if it was possible to inject CSS code based on choices made via radio. Example:
Radio 1 (Yes): <style>CSS code yes</style>.
Radio 2 (No): <style>CSS code no</style>
Radio 3 (null): no code style
I hope I explained myself, thank you very much in advance
$value = get_field('radio_field');
if ($value == 'yes') {
?><style>/*CSS code yes*/</style><?php
}
if ($value == 'no') {
?><style>/*CSS code no*/</style><?php
}
hello @hube2 ,
forgive me for the delay, thank you very much!!