• Hi john,

    I cannot for the life of me remove recent products and Sale items from our homepage, can you please help?

    I have tried both:

    <?php remove_action( ‘lithestore_recent_products’, ‘lithestore_recent_products’);?>

    and

    add_action(‘init’,’remove_section’);
    function remove_section(){
    remove_action( ‘lithestore_on_sale_products’, ‘lithestore_on_sale_products’);
    remove_action( ‘lithestore_recent_products’, ‘lithestore_recent_products’);
    }

    into my child theme functions.php file but nothing is working?

    Also is there anyway to insert a custom full width <div> between these categories?

    Regards

    Andrew Fisher

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello andrewfisher01,

    We can remove the recent products by custom css as well , so please pass the site url so we can help you.

    Kind regards,

    Manoj

    Thread Starter andrewfisher01

    (@andrewfisher01)

    Thanks ph-expert

    the url is:

    https://www.gents.co.nz

    Also can you please confirm if we can insert a custom full width <div> between these categories?

    Regards

    Andrew Fisher

    Thread Starter andrewfisher01

    (@andrewfisher01)

    Also is there a way to rate your own products? in other choose what products are shown as top rated on the homepage?

    Theme Author badjohnny

    (@badjohnny)

    Sorry for the delay.

    I tested the following codes in the child theme, it did work. The on sale products and recent products was removed.

    add_action('init','remove_section');
    function remove_section(){
      remove_action( 'lithestore_on_sale_products', 'lithestore_on_sale_products');
      remove_action( 'lithestore_recent_products', 'lithestore_recent_products');
    }

    For insert full width section, you can edit page-homepage.php template in your child theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing recent products’ is closed to new replies.