gwdlarry
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Remove subscribe links from the html source codeThanks for your reply.
The code in my functions.php (no added plugin) worked after the cache was purged.Best,
LarryForum: Plugins
In reply to: [The Events Calendar] Remove subscribe links from the html source codeForum: Plugins
In reply to: [The Events Calendar] Remove subscribe links from the html source codeThanks for your answer.
The (wrong) spacing stems from my copy-pasting the code.
My functions.php (child theme of Avada 7.11.2) has exactly the code snippet you mention. And unfortunately, this doesn’t work.
Any hint?
Thanks again.
Best,
LarryHi there,
Your last code snippet did the trick.
Thank you.
Best,
Larry- This reply was modified 1 year, 1 month ago by gwdlarry.
So trying to dequeue per functions.php did not work either.
function gwd_hustle_fonts_entfernen() {
wp_dequeue_style( ‘hustle-fonts’ );
wp_deregister_style( ‘hustle-fonts’ );
}
add_action(‘wp_enqueue_scripts’, ‘gwd_hustle_fonts_entfernen’, PHP_INT_MAX);Please advise.
Thanks.
Best,
LArryThanks for your reply.
However, we did the steps you mention, but this doesn’t seem to solve the problem. (BTW, we have Hustle 7.8.1 on WP 6.3.1 and PHP 8.1.23)
We still see the call to fonts.bunny.net in the HTML source (after browser hard reload):
<link rel=’stylesheet’ id=’hustle-fonts-css’ href=’https://fonts.bunny.net/css?family=Lato%3Aregular%2C700&display=swap‘ type=’text/css’ media=’all’ />So I will disable the id=’hustle-fonts-css’ per functions.php. That should definitely work.
Best,
LarryThanks for your reply. As always very helpful.
- This reply was modified 1 year, 8 months ago by gwdlarry.
Hi there,
1. You are storing personal data (b.t.w. an IP address is considered personal data) in the cloud. So you are a data processor in the eyes of the GDPR (“DSGVO” in German) and there should be a Data Processing Agreement between you and the website owner (where your plugin is running) See https://gdpr.eu/what-is-data-processing-agreement/. So you should offer one (download from your site).
2. You are calling a javascript from an external site (external to the owner’s website), analog to Google Fonts (with the call to fonts.googleapis.com) [This is a no-go in Germany]. There is a wave of warnings (“Abmahnungen”) regarding Google Fonts in Germany.
See this link: https://complianz.io/google-fonts-and-gdpr-does-it-work/
You should ensure the javascript in question can be installed locally on the owner’s website to avoid any external call (thus avoiding transmission of the user’s IP address).Best,
LarrySorry for the inconvenience.
It seems the problem lies with a Cache Plugin we use (WP Rocket).
Thank you for your nice plugin.
Best, Larry.Thank you!
Thank you!
Thanks for your reply.
Best, LarryThank you for your reply.
As I was in a hurry, I eventually hardcoded what I needed directly in the style.css of the “hardwork” theme.
So I don’t have this issue anymore.
Thanks.
Best,
LarryThank you very much again for your prompt reply.
Best,
LarryHi there,
to remove the version numbers, you can try something like, which has helped me in many cases (in functions.php of child theme):// remove version from head remove_action('wp_head', 'wp_generator'); // remove version from rss add_filter('the_generator', '__return_empty_string'); // remove version from scripts and styles function remove_version_scripts_styles($src) { if (strpos($src, 'ver=')) { $src = remove_query_arg('ver', $src); } return $src; } add_filter('style_loader_src', 'remove_version_scripts_styles', 9999); add_filter('script_loader_src', 'remove_version_scripts_styles', 9999);