Start drop down menu collapsed

Home Forums SKT Full Width Forum Start drop down menu collapsed

This topic contains 3 replies, has 2 voices, and was last updated by  Edmund Havran 3 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1439

    Edmund Havran
    Member
    • Topics: 2
    • Replies: 1
    • Total: 3
    Member since: July 27, 2014

    Hello

    By default the drop down menu on the homepage is fully unfolded. But I would like to have it collapsed by default, so it will unfold on click. Please could  you point me to the right solution?

    By the way, what is the ‘Skip to content’ link good for? It seems to have no function at all. Is there a way to modify it?

    #1442

    SKT Themes
    Keymaster
    • Topics: 2
    • Replies: 5642
    • Total: 5644
    Member since: June 12, 2013

    Hi,

    Will try to find a solution and give you answer by Monday morning. Today is Saturday night my end.

    Will check how to have it closed.

    Regards,
    Shri

    #1456

    SKT Themes
    Keymaster
    • Topics: 2
    • Replies: 5642
    • Total: 5644
    Member since: June 12, 2013

    Hi,

    Here is the answer: Kindly check custom-functions.php within inc folder of theme: skt_full_width_pro

    Check the line: add_action(‘wp_head’,’hook_custom_javascript’);

    Under function hook_custom_javascript(){?>

    <script>

    jQuery(document).ready(function() {

    Add this line:  jQuery( “.show_hide_header” ).hide();

     

    And save the file

     

    So the final lines with look like this:

     

    add_action(‘wp_head’,’hook_custom_javascript’);

    function hook_custom_javascript(){?>

    <script>

    jQuery(document).ready(function() {

    jQuery( “.show_hide_header” ).hide();

     

    That’s it.

     

    It will remain closed and will only open on click.

     

    Regards,

    Shri

    #1461

    Edmund Havran
    Member
    • Topics: 2
    • Replies: 1
    • Total: 3
    Member since: July 27, 2014

    Hello

    It works very well. Thank you very much!

    Best Regards

    Edmund

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.