Optimizing the Theme by Removing Unused Elements

This topic has 6 replies, 2 voices, and was last updated 11 months, 1 weeks ago ago by Luca Rossi

  • Avatar: mahdar
    MAHDAR
    Participant
    January 3, 2025 at 10:54

    Hi, I hope you’re doing well.

    I have a question regarding my theme. I don’t use about 80% of its features.

    Is it possible to identify and remove unused classes to optimize the theme?

    I’m already using WP Rocket and Cloudflare, and the website speed is good.

    But overall, is it feasible to do this?

    5 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    January 4, 2025 at 08:29

    Dear @MAHDAR,

    Thank you for reaching out to us.

    Please note that the features you can disable are located under XStore > Theme Options, such as:

    – Wishlist
    – Quick View
    – Brands
    – …

    However, certain other functions are not currently listed under the Theme Options and, therefore, cannot be disabled at this time.

    Could you kindly let us know which specific functions you would like to disable? This will help us better understand your requirements and assist you accordingly.

    Best regards,
    The 8Theme Team

    Avatar: mahdar
    MAHDAR
    Participant
    January 6, 2025 at 14:24

    Look, the thing is:

    I use the template elements in Elementor Pro for the following:

    Product archive pages
    Single product pages
    Blog archive pages
    Single blog post pages
    Additionally, the checkout and cart pages are the default WooCommerce ones (from WooCommerce itself, not the theme).

    The homepage is also designed with Elementor.

    Please take a look at the picture. I think I don’t need these elements.

    How can I deactivate or remove them so that the extra theme files aren’t loaded?

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    January 7, 2025 at 09:09

    Dear @MAHDAR,

    We hope this message finds you well.

    As mentioned in our previous response, you simply need to disable the relevant settings under XStore > Theme Options (if those settings are available). Once disabled, the associated scripts and templates for those settings will no longer be loaded.

    Should you require any further assistance, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

    Avatar: mahdar
    MAHDAR
    Participant
    January 10, 2025 at 11:45

    The question I have is, does my website really need all these scripts?

    I don’t think I need all these scripts.

    Is it possible to identify which ones are unnecessary and disable them?

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    January 10, 2025 at 17:16

    Hi @MAHDAR,

    The scripts in question are generated by WordPress, the XStore theme, and third-party plugins. At this time, it is not possible to remove them.

    We kindly encourage you to share your suggestion on our Taskboard at (https://www.8theme.com/taskboard/). If your request receives sufficient support from other customers, our development team will thoroughly evaluate its feasibility for inclusion in a future update.

    We truly appreciate your valuable input and your efforts in helping us improve.

    Best regards,
    The 8Theme Team

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

The issue related to '‘Optimizing the Theme by Removing Unused Elements’' 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.