• Resolved thunder86

    (@thunder86)


    Hey! If users open their Listing Dashboard, the menu (My Listings, Logout etc.) is expended by default.

    Is there any possibility to set folded as default?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Mahfuzul Alam

    (@mahfuz87)

    Hello @thunder86

    Thank you for reaching out. Please try the following php code at the end of the “functions.php” file.

    add_action( 'wp_footer', function(){
    if( is_page( 'dashboard' ) ):
    ?>
    <script type="text/javascript">
    jQuery( document ).ready( function( $ ){
    $( '.directorist-user-dashboard__toggle a' ).trigger( 'click' );
    } )
    </script>
    <?php
    endif;
    } );

    If it does not work for you please contact to our support channel here – https://prnt.sc/cKSW-z2RTXrs

    Regards

    Thread Starter thunder86

    (@thunder86)

    Just to verify, which function.php do you mean?

    Plugin Support Mahfuzul Alam

    (@mahfuz87)

    Hi

    Thank you for asking. You will find this “functions.php” file in the theme folder – https://prnt.sc/_MB6p1x-BuWi
    Every theme contains a “functions.php” file. You need to insert the code in the currently activated theme file.

    Alternatively, You can also use the?Code Snippet?plugin to implement this code.

    Regards

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