dret42
Forum Replies Created
-
[PARTIALLY SOLVED]
After a series of test, we identifyd the problem: is related to APCu service.
After disabling it, Elementor turn back to works well again.
Does someone knows a good “drop-in” to make APCu service works with Elementor without isseus?Thanks again in advance!
Ok, brutally removed from database.
Thanks in advance for supporting! π
To better understand I mean this part of code (see below a fragment) placed inside BODY tag of all pages and (if this could be usefull) I insert the plugin shortcode using the Elementor dedicated widget.
<script>
const mastodonFeedCreateElement=function(type,className=null){let element=document.createElement(type);if(null!==className){element.className=className;}
return element;}
const mastodonFeedCreateElementAccountLink=function(account){let accountLinkElem=mastodonFeedCreateElement(‘a’);accountLinkElem.href=account.url;accountLinkElem.setAttribute(‘aria-label’,’Link to Mastodon account of ‘+account.display_name);let accountImageElem=mastodonFeedCreateElement(‘img’,’avatar’);accountImageElem.src=account.avatar_static;accountImageElem.loading=’lazy’;accountImageElem.alt=’Mastodon avatar image of ‘+account.display_name;accountLinkElem.addEventListener(‘mouseover’,(event)=>{accountLinkElem.querySelector(‘.avatar’).src=account.avatar;});accountLinkElem.addEventListener(‘mouseout’,(event)=>{accountLinkElem.querySelector(‘.avatar’).src=account.avatar_static;});accountLinkElem.appendChild(accountImageElem);let displayName=account.display_name;if(account.emojis.length>0){account.emojis.forEach(function(emoji){displayName=mastodonFeedInjectEmoji(displayName,emoji);});}
…..Thnks again!
As I wrote, the last Matomo update resolved completely the problem.
All in working fine now!
Thanks![SOLVED] Another plugin was blocking Duplicator.
A last update resolve the issue. The plugin involved was Matomo Analytics.Forum: Plugins
In reply to: [Max Mega Menu] Can’t see the “X” close button on off-canvas mobile menuOk, I’ll wait for the fix!
Thanks a lot for supporting!I try with another script in “Integrations > Script Center” menu, as above .
This way seems to works better but the code needs probably to be validatedd and optimized (sorry, I’m not a developer!).
Maybe you can help me to improve it!window._paq=window._paq||[];window._paq.push(['rememberCookieConsentGiven']);
function withdrawConsent() {
window._paq.push(['forgetCookieConsentGiven']);
document.cookie = '_pk_id.2=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/';
document.cookie = '_pk_ses.2=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/';
}
document.addEventListener('DOMContentLoaded', function() {
var denyButton = document.querySelector('.cmplz-deny');
if (denyButton) {
denyButton.addEventListener('click', function() {
withdrawConsent();
});
}
});
document.addEventListener('click', function() {
var denyButton = document.querySelector('.cmplz-deny');
if (denyButton) {
denyButton.addEventListener('click', function() {
withdrawConsent();
});
}
});- This reply was modified 1 year, 4 months ago by dret42.
I momentary found a partial solution:
1) Under ComplianZ: I set ComplianZ plugin to manage the Matomo Tag Manager Container with standard procedure,
2) Under Matomo Tag Manager: I set my general tracking variable with “Ask for cookie consent” option,
3) Under ComplianZ: go to Integration > Script center > Add Third Part Script > insert here this code:window._paq=window._paq||[];window._paq.push(['rememberCookieConsentGiven']);Now the the situation is this:
1) user enter the site and Matomo cookie is not loaded (but Matomo is still tracking statistic in cookieless mode),
2) if user give the consent then Matomo cookie is correclty loaded,
BUT a problem still persist!
If a user decide later to “Deny” the consent previously given, the cookie is not deleted. π
Any idea to solve this last piece of the puzzle??
Thanks!
Bye.- This reply was modified 1 year, 5 months ago by dret42.
Hi, thanks for support!
Considering your replay I have to change my question (and maybe is not related to your plugin!):When “error” and “spam” events are fired in Contact form 7?
Because I never saw them appearing in my Matomo Logs, even when they should!
For other events (“Sumbit” and “Sent”) Matomo correctly report them on logs.
I’am available in case you need more info!
Thanks, bye!To better understand I expose better the tests executed:
1) FIRST TEST
I tested the performance whith the new plugin.
Than I made a rollback to previous version and I repeated the test again.Results: the old plugin version is bette of 20 score point more than new one.
(in both cases pages are cached)
2) SECOND TEST
Using the new plugin, I made a test with plugin activated and than with plugin de-activated.
Result: with plugin de-activated the score is better of 20 point more than with plugin activated.
(in both cases pages are cached)
Note: all results are made by multiple testing operations (not a single measuring).
Thanks for suggestions and supporting!
Thanks,
I have temporarily resolved the issue in the following way:
I created a function to override the “search button” widget (where the problem occurred) with this code in the “functions.php”:
function custom_hfe_search_button_output( $output, $widget ) {// Check for Search Button if ( 'hfe-search-button' === $widget->get_name() ) {// Replace CSS class $output = str_replace( 'fas fa-search', 'my-search', $output ); $output = str_replace( 'fas fa-times', 'my-times', $output ); } return $output; } add_filter( 'elementor/widget/render_content', 'custom_hfe_search_button_output', 10, 2 );In this way, the “fas fa-xxx” classes are replaced with my custom classes , and Font-Awesome is no longer loaded on my page.
In this way I can make my own style for search button, without use of external unusel resources!Forum: Plugins
In reply to: [Cache Enabler] no client caching response headers were detectedSame problem for me.
Before adopting Cache Enabler, I used WP Super Cache and this message never appeared.
I’using using Cache Enabler with Elementor page builder and Autoptimize plugin.
Thanks.- This reply was modified 2 years, 3 months ago by dret42.
Forum: Plugins
In reply to: [WP Super Cache] Homepage not cached anymore by pre-loadI also noticed another strange behavior of the pre-load function :
Setting “0” at pre-load intervals, I expect the preload to never expire. But this does not happen and the cache is always cleared every 24 hours.