badjohnny
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [LitheStore] Removing header on BlogHi
I haven’t found the blog page, could you post the blog post link here?
Thanks
Hi
You can put the following custom codes into functions.php file (using child theme is a good way to customize the theme).
remove_action( 'lithestore_header', 'lithestore_primary_navigation',20); add_action( 'lithestore_header', 'custom_primary_navigation',20); function custom_primary_navigation(){ echo'<nav id="site-navigation" class="main-navigation ls-grid ls-col8" role="navigation"> <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><i class="fa fa-bars"></i></button>'.wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu','echo' => false ) ).'</nav><!-- #site-navigation -->'; }
Forum: Themes and Templates
In reply to: [LitheStore] Help! My categories do not show up in main pageHi
Please add the following custom PHP codes into functions.php
add_filter('lithestore_product_categories_args','my_product_category_pictures'); function my_product_category_pictures(){ return array( 'limit' => 6, 'columns'=> 3, 'child_categories'=> 0, 'orderby' => 'name', 'title'=> __( 'Product Categories', 'lithestore' ), ); }
‘limit’ value means the number of categories. ‘columns’ value can be 2,3,4
So you can change the value to what you want.Thanks
Forum: Themes and Templates
In reply to: [LitheStore] Blank part on the homepageNo, just add a new page with a full-width page template in WP backend, then you can use your page builder to add content.
Your site looks amazing! But I’m not sure which is the blank part, could you post a screenshot?
Forum: Themes and Templates
In reply to: [LitheStore] Top Rated ProductsYou can try to change the top related products order by the following codes
add_filter('lithestore_popular_products_args','top_rated_products'); function top_rated_products(){ $args = array( 'limit' => 4, 'columns' => 4, 'orderby' => 'ID', 'order' => 'asc', 'title' => __( 'Top Rated Products', 'lithestore' ), ); return $args; }
orderby argument value: title|date|ID|rand|menu_order
order value: asc|deschttps://woocommerce.wp-a2z.org/oik_sc_param/top_rated_products-orderby-parameter/
Forum: Themes and Templates
In reply to: [LitheStore] Top Rated ProductsSorry for the delay. I’m checking this issue now. I will let you know the reason and solution today.
Forum: Themes and Templates
In reply to: [LitheStore] Blank part on the homepageHi
The homepage template can’t be edited with page builder plugin, you can create a blank page with fullwidth page template, then customize it with page builder.
You can remove the category section by the following codes.
add_action('init','remove_section'); function remove_section(){ remove_action( 'lithestore_product_categories', 'lithestore_product_categories'); }
Forum: Themes and Templates
In reply to: [LitheStore] Removing recent productsSorry 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.
Forum: Themes and Templates
In reply to: [LitheStore] Change Recent ProductsMaybe because of PHP syntax error, you can only remove your codes via FTP now.
That’s all right ??
Forum: Themes and Templates
In reply to: [LitheStore] Change Recent ProductsHi
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
You can use 1200 x 800 picture or smaller as 600 x 400
You should put those codes into the functions.php(you’d better use child theme to add your custom codes), they are PHP codes, not CSS.
Forum: Themes and Templates
In reply to: [LitheStore] Header image is not visible on iPhonesThanks for your feedback, I will check it and fix it, and release the new version.
You can write as below for new version of WordPress, I will correct the documentation.
add_action(‘init’,’remove_section’);
function remove_section(){
remove_action( ‘lithestore_on_sale_products’, ‘lithestore_on_sale_products’);
remove_action( ‘lithestore_popular_products’, ‘lithestore_popular_products’);
}