try this
add_action( 'wp_footer', 'bsp_supports_js' );
function bsp_supports_js() {
echo '<script>document.body.classList.remove("no-js");</script>';
}
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
so in which file are you seeing this setting?
I put the code in the child theme functions.php file.
sorry I meant in which file are you seeing this
‘There is a css setting, if-no-js, that is setting display none before the button bar’
Here is the link to the page: if-no-js issue page
ok, so can you paste the bit of your child theme’s function file that you pasted this into, including 3 lines before and after
The only lines in the child theme functions.php file is the code you gave me. No lines before, nor after it.
ok, so put this before it
<?php
OK. Kind of basic thing to overlook. That took care of the problem. Thank you for the help.
no problem, we’ve all been there 🙂 🙂
glad you are fixed !