• Is there a way to:

    1. Change the recent products section to something else? (either a category of products or individually selected products.)

    2. Show more products than 8 in this section?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author badjohnny

    (@badjohnny)

    Hi

    You have to make those changes by custom PHP codes with lithestore hooks.

    Put the custom codes into the functions.php (you can create a child theme to customize the theme.)

    For example:

    add_filter('lithestore_recent_products_args','my_recent_products');
    function my_recent_products($arg){
       $args = array(
    	'limit' => 8,
    	'columns' => 4,
    	'title'	=> __( 'Recent Products', 'lithestore' ), 
            'category' => 'product_category_slug',
    	 );
    }

    You can change ‘product_category_slug’ to your actual category slug. And change limit number > or < 8.

    Thanks

    Thread Starter bonkan21

    (@bonkan21)

    Thanks for the response.

    I tried to make this change in a child theme — thinking if I made a mistake I could just erase the changes that I made — and somehow once I clicked “update” the page turned white and now I can’t even log into the site at all.

    Not sure what I did. I can’t delete my changes because I can’t even access the site. Any thoughts? I don’t even know where to go to get help!

    Theme Author badjohnny

    (@badjohnny)

    Maybe because of PHP syntax error, you can only remove your codes via FTP now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Recent Products’ is closed to new replies.