How to Change - "TOP SELLING PRODUCTS" , "BEST DEALS", "NEW ARRIVALS"

neeraj89

Active Member
Guys anyone knows how to change "TOP SELLING PRODUCTS" , "BEST DEALS", "NEW ARRIVALS" points., and replace them with something else. Lets say, Category -1, Category - 2 and so on....
 

Direct Webstore

Well-Known Member
You will have to edit the home.php file in "wp-content\themes\davinci (or your theme)/home.php

Open the file in notepad and look for these ...

<h3 class="text-uppercase"><?php _e( 'Top Selling Products', 'ami3' ); ?></h3>
<h3 class="text-uppercase"><?php _e( 'Best Deals', 'ami3' ); ?></h3>

etc etc ... you'll see them all there. Edit the titles in the parenthesis e.g ( 'Top Selling Products', 'ami3' ) to ( 'Totally Crap Products', 'ami3' ) or whatever. LOL

Then upload the file via FTP or Control Panel File Uploads

Every time the theme is updated, you will have to edit again ... or keep a copy of the file and upload it again.

I have made many, many edits to the home.php, content.php, header.php and footer.php. With the last three theme updates none of those files were changed ... so I just re-upload them after each theme update. Only takes a minute.

You can also edit the file in the Wordpress Backend Admin in "Appearance/Editor/home.php (Posts Page)" Then copy the whole file into a text file and store it somewhere so you can just copy/paste it back when there is a theme update..

:)
 

neeraj89

Active Member
You will have to edit the home.php file in "wp-content\themes\davinci (or your theme)/home.php

Open the file in notepad and look for these ...

<h3 class="text-uppercase"><?php _e( 'Top Selling Products', 'ami3' ); ?></h3>
<h3 class="text-uppercase"><?php _e( 'Best Deals', 'ami3' ); ?></h3>

etc etc ... you'll see them all there. Edit the titles in the parenthesis e.g ( 'Top Selling Products', 'ami3' ) to ( 'Totally Crap Products', 'ami3' ) or whatever. LOL

Then upload the file via FTP or Control Panel File Uploads

Every time the theme is updated, you will have to edit again ... or keep a copy of the file and upload it again.

I have made many, many edits to the home.php, content.php, header.php and footer.php. With the last three theme updates none of those files were changed ... so I just re-upload them after each theme update. Only takes a minute.

You can also edit the file in the Wordpress Backend Admin in "Appearance/Editor/home.php (Posts Page)" Then copy the whole file into a text file and store it somewhere so you can just copy/paste it back when there is a theme update..

:)
Hey @Direct Webstore Lol thanks. mate for help..
But i mean to say not to change the name only. I mean to say category wise heading, which include actual products in the particular category. Hope you understood now.. :)
 

Direct Webstore

Well-Known Member
Right ... that would take major editing of the home.php file. Not something I could explain easily here. And first I would have to work out how to do it, but I'm not prepared to spend all the time required. You'd be better off using the Woo Commerce plugin if you want major changes like that.
 
Last edited:

neeraj89

Active Member
Right ... that would take major editing of the home.php file. Not something I could explain easily here. You'd be better off using the Woo Commerce plugin if you want major changes like that.
Through woo pluging, i need to use some other theme i guess ;(. I am using davinchi theme..
 

Direct Webstore

Well-Known Member
With Woo you have a choice of HEAPS of themes ... but not Davinci. There's also a bit of a learning curve in using WooCommerce.
 

Direct Webstore

Well-Known Member
If you don't have much experience ... Woo may have you tearing your hair out in frustration. Looks like your only option is sticking with Davinci ... it's all set up already (almost)
 

Direct Webstore

Well-Known Member
I use Davinci too ... but I just replaced all the stuff up the top of the home page (home.php) with a slider plugin that displays all my categories.

But I'm still working on my site. Not finished yet.
 
Last edited:

neeraj89

Active Member
I use Davinci too ... but I just replaced all the stuff up the top of the home page (home.php) with a slider plugin that displays all my categories.

But I'm still working on my site. Not finished yet.
Hey bro its so cool.. which plugin did you use for this type of slider.?
 
Last edited:

Direct Webstore

Well-Known Member
Meta Slider ... https://wordpress.org/plugins/ml-slider/

After you install the plugin ...

In home.php ... you will need to replace all this (Cut the whole lot out) ...

<a href="<?php echo cz('tp_img_product_cat_url'); ?>"
title=""> <img src="<?php echo cz('tp_img_product'); ?>?100"
class="img-responsive" alt="">
<div <?php if ( !cz('shop_now_text') && !cz('id_video_youtube_home') ) echo 'style="display: none;"'; ?> class="topImg__content--big">
<div class="topImg__content__text">
<h1><?php echo cz('tp_img_product_text'); ?></h1>
</div>
<div <?php if ( !cz('shop_now_text') ) echo 'style="display: none;"'; ?> class="topImg__content__btn"><?php echo cz('shop_now_text'); ?></div>
<div <?php if ( !cz('id_video_youtube_home') ) echo 'style="display: none;"'; ?>
class="btn b-topImg__btn--play_video" data-toggle="modal" data-target="#prHome_video" onclick="return false;">
<i class="ico_play"></i><?php _e( 'View Video', 'ami3' ) ?></div>
</div>
</a>

With this ...
<?php echo do_shortcode('[metaslider id=107]');?>

Just change the id=107 to whatever your shortcode is. You can find the shortcode on the right side in the plugins settings page.

DON"T FORGET TO BACKUP THE home.php file in case you stuff it up or doesn't look right! I'm planing to put images of example products from each category into each slide ... and hyperlink them to the category. You'll see the places for all that in the back end of the plugin.

:)
 
Last edited:

Direct Webstore

Well-Known Member
... and everytime the theme updates ... you will have to do it again. But it only takes a minute.

I din't include the edits for the video and shopping label on the right ... that area will stay the same.
 

neeraj89

Active Member
... and everytime the theme updates ... you will have to do it again. But it only takes a minute.

I din't include the edits for the video and shopping label on the right ... that area will stay the same.
OMG BRO. you are the best. helped with detailed instructions. Thank you i am doing that.. ;) :)
 

Direct Webstore

Well-Known Member
I had to change the colour of the description box under each slide to white as the grey colour was right up against the video and shopping button on the right. But your's will have the 2 standard image boxes there. Maybe it will look OK. If not .. just install "Custom CSS Pro (Free) and change the grey colour. Insert ...

.metaslider .caption {
font-weight: 700;
font-size: 16px;
color: #00264c;
background: #FFFFFF; }

into the Custom CSS Box. And change the font weight, size, colour and background colour to whatever you want.

EDIT: I saw a built in Custom CSS box somewhere in the backend ... you could try using that instead. I just like the Custom CSS Pro plugin ... that's all. That's what I used to get all those blue colours everywhere.
 
Last edited:

Cookie

Member
An easy way would be to change the number of orders manually for the products you would like it to be displayed as the top selling products. Say now it is displaying Product A,B and C with each having orders of 100. But u want Product D, E and F to be displayed instead, just go to Product D, E and F and adjust the number of orders to 100, and lower the orders of Product A, B and C lower to say 50 orders instead.
 
Top