One more addition:
I would also like to change the font size of the Analytics data displayed.
Thank you!
Hi @generosus,
Sorry for the late reply. Consider it as a human error though the concern is notified about the plugin.
We will get back to you shortly on this.
Hi @generosus
All of the styling can be changed of the Analytify Widget with your own custom CSS.
Yes, the plugin styling is stored within the plugin files but to override it you can simply follow the solution provided in the thread you mentioned.
All you need to do is create a CSS file in your theme and write the CSS for Analytics widget there. Once its done you can add the following code in you theme’s functions.php file:
function wp_analytify_my_custom_styles() {
wp_enqueue_style( 'wp_analytify_my_custom_styles', get_stylesheet_directory_uri() . '/{YOUR CSS FILE PATH}', array(), false );
}
add_action( 'admin_enqueue_scripts' , 'wp_analytify_my_custom_styles' );
Replace {YOUR CSS FILE PATH} with the path of your CSS file made for Analytiy widget e.g. “/assets/css/analytify-custom-style.css”
P.S You can also replace font size or style as you want by writing your own styling in CSS file.
Hi @artisticasad,
Thanks for your reply. Much appreciated. Questions:
(1) Using your code snippet, and every time your plugin’s CSS file changes (see below), don’t I have to update my custom CSS file as well?
(2) Instead of using your code snippet and to avoid downstream issues, can you introduce a Custom CSS section inside your plugin’s settings like many other plugins provide?
Examples of plugins that provide this feature are: Admin Custom Login, WPFront Notification Bar, and wpDiscuz. I use all of them and the Custom CSS feature they provide works great.
Here’s a screenshot of the Custom CSS feature provided by WPFront Notification Bar (settings section): https://ibb.co/ZV5MKKw
Have a fun, safe day!
——————–
Analytify CSS File: /wp-content/plugins/wp-analytify/assets/default/css/styles.css
Hi @generosus,
Your suggestion is notified to the development team and discussed in the internal meeting. We will be working on it to release in the next releases. ✌
Update:
Found a solution that works great. It allows us to change the styling of all plugin widgets and dashboards in the backend (not just yours). No need for a code snippet or filter for each individual plugin.
Here it is: How to Customize WordPress Admin CSS
Result: Google Analytics Dashboard Widget by Analytify (Modified CSS)
Looks great. Please share!
Hello,
We actual are going to implement this feature within Analytify. Look out for it in an upcoming release.
Thank you for your suggestion.