• Resolved TokoDaring.Com

    (@wpjakarta)


    Hello

    just want to seek some advice….

    since i’m not using the default homepage of storefront. i intended to removing some of the hook on storefront homepage.

    Would it be have negative affect to my website ?

    this is what will i remove

    ( 'homepage', 'storefront_product_categories', 20 );
    ( 'homepage', 'storefront_recent_products', 30 );
    ( 'homepage', 'storefront_featured_products', 40 );
    ( 'homepage', 'storefront_popular_products', 50 );
    ( 'homepage', 'storefront_on_sale_products', 60 );
    ( 'homepage', 'storefront_best_selling_products', 70 );
    ( 'homepage', 'storefront_woocommerce_brands_homepage_section', 80 );

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @wpjakarta

    What is your goal exactly? In other words, what are you trying to accomplish by using those hooks?

    Thread Starter TokoDaring.Com

    (@wpjakarta)

    hello @senff

    My goal is to increase the speed of my website, especially on homepage. Even though it may only gives a slight affect only.

    actually i am blind about this (ad that’s why i’m looking for advice here),
    but when my homepage doesn’t use the default storefront design, and i think maybe i am safe to remove those mentioned hooks. so no element or also no CSS code will be transferred to the visitor

    Hi @wpjakarta

    The code you listed above will only apply to the homepage if your page is using the Homepage template. If you do not use that, the code will not do any harm.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing storefront homepage hook’ is closed to new replies.