Skip to:
Content
Pages
Categories
Search
Top
Bottom

Button bar hidden for topic message window

  • @fearless359

    Participant

    There is a css setting, if-no-js, that is setting display none before the button bar. This stops the button bar to no display. How do I cause the “no js” test to be false to allow the button bar to display?

Viewing 11 replies - 1 through 11 (of 11 total)
  • @robin-w

    Moderator

    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

    @fearless359

    Participant

    This did not help.

    @robin-w

    Moderator

    so in which file are you seeing this setting?

    @fearless359

    Participant

    I put the code in the child theme functions.php file.

    @robin-w

    Moderator

    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’

    @fearless359

    Participant

    Here is the link to the page: if-no-js issue page

    @robin-w

    Moderator

    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

    @fearless359

    Participant

    The only lines in the child theme functions.php file is the code you gave me. No lines before, nor after it.

    @robin-w

    Moderator

    ok, so put this before it

    <?php

    @fearless359

    Participant

    OK. Kind of basic thing to overlook. That took care of the problem. Thank you for the help.

    @robin-w

    Moderator

    no problem, we’ve all been there 🙂 🙂

    glad you are fixed !

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Skip to toolbar