studiovitas
Forum Replies Created
-
Ottimo, ora funziona tutto. Grazie
Purtroppo questo mi porterebbe dei conflitti con l’iscrizione alla newsletter in quanto l’altro plugin richiede che venga utilizzato l’uppercase. Aspetterò un vostro aggiornamento dunque. Grazie.
Ha funzionato. Grazie mille.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] dinamic tag based on post categoryFor those who need it, this is the solution:
adding a tag with a value equal to the category slug of the post from which the form is filled out:add_filter( 'mc4wp_integration_contact-form-7_subscriber_data', 'vitas_dinamic_tag_mc4wp_cf7',10); function vitas_dinamic_tag_mc4wp_cf7(MC4WP_MailChimp_Subscriber $subscriber){ $formPageUrl = $_SERVER[ 'HTTP_REFERER' ]; $catList= get_the_category(url_to_postid($formPageUrl)); $mainCat = $catList[0]->slug; $subscriber->tags[] = $mainCat; return $subscriber; }
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] dinamic tag based on post categoryI understand, I saw that the result is the url of the form and not of the page. this is because the action starts when the submit button of the form is pressed and not when the page is generated.
then the variable returns:https://my-site.com/wp-json/contact-form-7/v1/contact-forms/3794/feedback.
Do you know if there is a way to capture the url of the page from which the form is submitted?
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] dinamic tag based on post categoryalways through the filter? is there any documentation on how to do this?
Forum: Plugins
In reply to: [Content Visibility for Divi Builder] ACF repeater functionHi, I had the same problem with groups.
I solved it by creating a function in function.php which returns me true or false.function vitas_acf_check($groupName,$fieldName){ global $post; $group = get_field($groupName); return $group[$fieldName] ? true : false; }
and then in Divi visibility option:
vitas_acf_check("pubblicazione_6", "link_download" )
Everything works perfectly. The problem is that it gets a little faster on google insight. But it’s a good compromise
this was my htaccess:
# CACHE EXPIRATION #
ExpiresActive On
ExpiresDefault A300 <—– I eliminated this
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A3600 <—- and this
ExpiresByType text/css A3600
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A300
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A300
# CACHE EXPIRATION #@stealthbyroot there was a cache problem. I disabled the js cache in the htaccess
Forum: Plugins
In reply to: [Autoptimize] Critical css breaks WooCommerceI solved by disable the default and js expire header caching in .htaccess
Forum: Plugins
In reply to: [Autoptimize] Critical css breaks WooCommerceI don’t think it’s a suitable solution to recommend a paid service due to a bug. the problem also comes up if I write a single empty css rule