Add Views Counter in NewsCard WordPress Theme Website

.
How To Add Views Counter in NewsCard WordPress Theme Website Like & Share this video : https://youtu.be/H5aPm9Eqvrg

✪ Steps To Add Views Counter in NewsCard WordPress Theme Website

– Go to Your NewsCard WordPress Dashboad
– Install & Activate Wp-PostViews Plugin : https://bit.ly/33TswZ4
– Now Go to Settings Tab and then click on PostViews,
– In PostViews Settings Page, Count Views From: Everyone ,
– Allowed Variables: %VIEW_COUNT% views /
– Save the changes
– Now Go to Appearance tab and then click on Theme editor
– Select NewsCard Theme
– Go to Inc
– Click on Functions.php
– Go to Line no 122
– Paste this code :
if(function_exists(‘the_views’)) { the_views(); }
-Update file
– Now We Need to add Custom CSS for View count size .color & optcity
– so go to appearance and then click on customize and then click on additional css.
– No paste 2 css code which we provide in our post
– Publish it & done.

 

✪ Visitor Counter Code :
if(function_exists(‘the_views’)) { the_views(); }

 

✪ Custom CSS Code :

.entry-meta a {
opacity: 1;
}

.entry-meta, .entry-meta a {
color: #555555;
font-size: 14px;
}

Leave a Comment

Your email address will not be published. Required fields are marked *