How to keep HTML form field that is conditional hidden with javasript hidden after page reload?

Try this code: // Conditionally show price (function ($) { window.onload = function() { if ($(“#select_price_option”).val() == “I need more information”) { $(‘#price_input_div’).hide(); } $(“#select_price_option”).change(function() { if ($(this).val() == “I need more information”) { $(‘#price_input_div’).hide(); } else { $(‘#price_input_div’).show(); } }); }})(jQuery);

Handling PHP/HTML inside the output of a shortcode function

This is mostly working fine. You probably want quotes around your id in the window.superformIds array to ensure it’s a string. This is a bad way of going about this. With scripts and styles you want to avoid outputting them directly on the page wherever the shortcode is placed. Here’s a better method: add_action( ‘wp_enqueue_scripts’, … Read more

Where can I find the inline-css of my theme header?

That part of the page layout is most often inside of the header.php file in your theme root folder. But before you edit that file directly, a few advices: Do you use a child theme? If not, or you are not sure, than it is not advised to edit that file directly, because when the … Read more

How to change the settings of a video? [closed]

My coding skills are very minimal, and I can’t seem to find & edit the HTML. This is because video embeds are usually implemented using a shortcode, there is no HTML to edit, it’s generated on the fly Starting playing automatically WITHOUT the user having to click any sort of play button. yes and no… … Read more