Have a collapsed menu - by lisamarie - on WordPress WooCommerce support

This topic has 18 replies, 3 voices, and was last updated 8 years, 11 months ago ago by Jack Richardson

  • Avatar: lisamarie
    lisamarie
    Participant
    November 27, 2015 at 13:38

    Hi, I found your advice on how to achieve a collapsed menu as default (the first topic always expands)

    “You may close the first category by changing this file: blanco\js\script.js

    Comment out line 233 jQuery(’.categories-group.has-subnav:first’).addClass(‘opened’).find(‘ul’).show();”

    Where and how do I access this file and what does “comment out mean”?

    thanks so much

    17 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    November 27, 2015 at 13:50

    Hello,

    You can find this file in wp-content\themes\blanco\js\ folder via FTP.
    To comment out code you need add these /**/ characters, for example
    /*jQuery(’.categories-group.has-subnav:first’).addClass(‘opened’).find(‘ul’).show();*/

    Regards,
    Robert Hall.

    Avatar: lisamarie
    lisamarie
    Participant
    November 27, 2015 at 14:15

    Thank you so much Robert. So I have located wp-content\blanco\js folder via ftp. but that is as far as I”ve got.

    The only things is I cannot locate the part written in red or rather don’t know how to integrate. I would be grateful for your guidance.

    LM

    Avatar: lisamarie
    lisamarie
    Participant
    November 27, 2015 at 14:17

    I am using FileZilla 🙂

    Avatar: Robert Hall
    Robert Hall
    Support staff
    November 27, 2015 at 14:39

    Hello,

    Please provide us with wp-admin and FTP credentials in Private Content.

    Regards,
    Robert Hall.

    Avatar: lisamarie
    lisamarie
    Participant
    November 27, 2015 at 14:47

    Much appreciated
    please see private content

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    November 27, 2015 at 15:37

    Hello,

    We need also link to the page and wp-admin access in Private Content.

    Regards,
    Robert Hall.

    Avatar: lisamarie
    lisamarie
    Participant
    November 27, 2015 at 16:15

    sure thing – sending your way

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    November 30, 2015 at 11:29

    Hello,

    Sorry for a long delay.
    Your credentials to wp-admin aren’t correct. Please check them.

    Regards,
    Robert Hall.

    Avatar: lisamarie
    lisamarie
    Participant
    November 30, 2015 at 17:19

    Hello,yes I am so sorry, i have corrected it in the private content

    Sincerely,
    LM

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    November 30, 2015 at 17:37

    Hello,

    You’ve added the login and password for goodaddy account, but we need access to admin panel. See screenshot : http://prntscr.com/98qih0

    Regards,
    Robert Hall.

    Avatar: lisamarie
    lisamarie
    Participant
    November 30, 2015 at 18:33

    I see, the thing is that the website is a managed wordpress site. So they make me login through their portal first.If you follow the below, you’ll get there 🙂

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    November 30, 2015 at 18:52

    Hello,

    I’ve commented out this code in script.js:
    jQuery('.categories-group.has-subnav:first').addClass('opened').find('ul').show();

    Please clear all cache and check it.

    Regards,
    Robert Hall.

    Avatar: lisamarie
    lisamarie
    Participant
    November 30, 2015 at 19:04

    Thanks so much Robert. I did clear cache and check on another computer but for some reason it it still showing the expanded first item custom menu item on the left handside of the homepage/products page.
    Do you see it still expanded?

    thanks LM

    Avatar: lisamarie
    lisamarie
    Participant
    November 30, 2015 at 19:53

    Hello again Robert,
    I called godaddy about direct login to wordpress. I was given a solution and put it in private contents.

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 1, 2015 at 09:21

    Hello,

    I’ve logged in WP Dashboard via GoDaddy panel and cleared cache on a server.
    Please check your site now.

    Best regards,
    Jack Richardson.

    Avatar: lisamarie
    lisamarie
    Participant
    December 1, 2015 at 16:50

    It worked and looks terrific 🙂
    thank you very much

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 1, 2015 at 16:54

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

  • Viewing 18 results - 1 through 18 (of 18 total)

The issue related to '‘Have a collapsed menu’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.