Remove Counter from User’s Dashboard
This post is about a short modification that will hide the counter from user’s dashboard.
The easiest way is to remove or comment out two lines of code from two files:
Step 1
Open file content-dashboard-ad_listing.php.
Locate this piece of code:
<!--?php if ( current_theme_supports( 'app-stats' ) ) { ?--> |
You can remove it or comment it out:
<!--?php //if ( current_theme_supports( 'app-stats' ) ) { ?--> <!-- <td class="text-center"><?php //echo appthemes_get_stats_by( $post->ID, 'total' ); ?></td> --> <!--?php //} ?--> |
Step 2
Open file dashboard-ads.php or tpl-dashboard.php for older versions – Thanks Dan.
Locate this piece of code:
<!--?php if ( current_theme_supports( 'app-stats' ) ) { ?--> |
You can remove it or comment it out:
<!--?php //if ( current_theme_supports( 'app-stats' ) ) { ?--> <!-- <th class="listing-views" data-hide="phone"><?php //_e( 'Views', APP_TD ); ?></th> --> <!--?php //} ?--> |
That’s it.
If you find any issues with this tutorial, please be so kind and write a comment. I’ll try to help as much as I can.
Hi Blaz,
Thank you very much for your help.
Can you give me PayPal email, I ask you to drink coffee. 🙂
Hi Lin,
I would love a coffee in the morning. It’s 6am here.
Thank you very much.
(I have put a donate box on the right side for that matter.;-))
better website then classipress orginal forum love u man.
Thank you for your kind words.
I’m glad my work is not just for me. 🙂
Thank you for shearing this fix! Im using the latest Classipress 3.5.4 so the file in Step 2 is different for my version. For those using the latest CP version, here is the correct file.
Step 2
Open file >> dashboard-ads.php <<
and comment out or delete the code given in step 2 above:
It worked perfect on my latest CP 3.5.4.