Widget stats titles
-
Hi. I’d like to ask if there is a way to customize the titles of the stats the Widget displays. For example, how can I use some other description instead of “Total page views”?
Thanks for this nice plugin!
-
hello,
thank you for using our plugins,
Unfortunately, editing labels is not available 🙂
We may help you if you send us the new labelsTo achieve what I wanted, I had to edit functions.php, which means that in the next upgrade my changes will be lost! I wanted to have the label in Greek, change type face to “Notos Serif” (not provided as an option by the plugin), and have a smaller font size for the label and a larger font size for the number of page views. All of these options are not available in the plugin’s settings, but they could be, easily.
hello,
thank you for letting us know,
please provide a screenshot before and after if possible. maybe your theme or one of the plugins caused the issue!What issue? I needed a different appearance for my stats in the widget, and the plugin won’t offer this customization. I want to define *any font family I like, and any font size that I like separately, for the label and for the number of visits. That’s all. The plugin doesn’t offer these options, at least not in the free version.
Are you talking about the pro version? Or you currently have the free version?
I’m in the free version, wanting to customize the label text, the label font, and the count font.
You can create a style.css file and put the new customized css classes with !important attribute to override the styles.
Or let us know the new font-size and font type and we will to help you.
Thanks
Here is the relevant code:
if (isset($instance['display_totalpageview']) && ($instance['display_totalpageview'] == 1 or $instance['display_totalpageview'] == '1')) { echo '<li><span>Total page views: ' . ahcfree_NumFormat(intval($ahc_sum_stats['total']['visits'])) . '</span></li>';
As you see there are no classes defined, therefore there is nothing we can do with css. Even if you specify classes, we wouldn’t be able to translate the label “total page views” to some other language or use a different label. You need to provide a lot more flexibility / customization to the widget, since it is used in the front end, it is seen by visitors in different countries, etc.
-
This reply was modified 3 years, 3 months ago by
wpjuliell.
hello,
thank you for the note,
we will replace the widget with a shortcode in the next release, and we will add a class to the main widget so you can customize it 🙂you will receive an update during the next 72 hours
thank you
Thanks for your help!
Done,
Kindly update and read this FAQ:
https://wordpress.org/plugins/visitors-traffic-real-time-statistics/#shortcodes%20for%20summary%20statisticsThe new shortcode is:
[ahc_stats_widget title=”” fontsize=”16″ fonttype=”” display_today_visitors=true display_today_pageviwes=true display_total_visitors=true display_total_pageviwes=true ]Just tried it. Would you please make a change?
It would be Great if we had 4 shortcodes, one for each output, e.g. a shortcode for page views, another shortcode for visitors, etc.
Each one of the 4 shortcodes would give as output just a number, only a number (the number of page views, the number of visitors, etc), letting us build anything else as we like in our theme (labels, fonts, etc.)
sure,
I will add the new shortcodes and publish a new release 🙂Thank you!!!!!!!
Done 🙂
[ahc_stats_widget title="" fontsize="14" fonttype="" display_today_visitors=true display_today_pageviwes=true display_total_visitors=true display_total_pageviwes=true ] [ahc_today_visitors] [ahc_today_visits] [ahc_total_visitors] [ahc_total_visits]
if you like our support, please leave us a review
-
This reply was modified 3 years, 3 months ago by
- The topic ‘Widget stats titles’ is closed to new replies.