Unset Secondary Menu and All Dept Menu - by JXN

This topic has 8 replies, 2 voices, and was last updated 4 years, 6 months ago ago by JXN

  • Avatar: jaxn020
    JXN
    Participant
    June 21, 2021 at 03:26

    I am not using both Secondary and Dept Menu. How can I disable that through code?
    It is adding extra css and increasing load time.
    And is it OK if I use Theme CSS instead of Frontend?
    Global CSS includes Dokan css, which I absolutely don’t use. If the theme gets updated, whether the extra code erases off?
    http://prnt.sc/1652qce

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: jaxn020
    JXN
    Participant
    June 22, 2021 at 13:00

    Any Updates?

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    June 22, 2021 at 17:24

    Hello,

    Take our apologies for the delay in answering. If you don’t use the secondary menu element on your site you should not have those classes. Could you, please, provide us with temporary WP Dashboard access to your site to check the issue in more detail and help you?

    Regards

    Avatar: jaxn020
    JXN
    Participant
    June 22, 2021 at 18:07

    Login Details Sent.
    Caching is deactivated in WP and Cloudflare

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    June 23, 2021 at 14:56

    Hello,

    Can’t log in to your site https://gyazo.com/56854c1a47d27824a1da7fcf2ec1e1c8
    And could you, please, provide us with FTP access? We could try to help you with the child theme style.css disabling if you want.

    Regards

    Avatar: jaxn020
    JXN
    Participant
    June 23, 2021 at 15:14

    Thanks for reply. I noticed you were already logged in and made some changes in front end 5 hours ago, I then tested site again. I could see that secondary-menu css was loading. I don’t want to make any custom mods to my site. I will live with it. Thank you for your help. If it was a bug where secondary menu css is loading if no such menu’s are created,/used, hopefully please fix in future updates. You can also do manual testing of your theme without any secondary/dept menu’s used. I would appreciate that. My concern is, it adds 2KB’s more to the size.
    Thanks again.

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    June 23, 2021 at 20:11

    Hello,

    If you don’t want to load secondary menu CSS and all the other unused CSS then go to XStore > File generator > check the elements you use on your site and generate styles. You won’t have secondary CSS after that.

    Regards

    Avatar: jaxn020
    JXN
    Participant
    June 24, 2021 at 10:59

    Perfect

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

The issue related to '‘Unset Secondary Menu and All Dept Menu’' has been successfully resolved, and the topic is now closed for further responses

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