Forum Replies Created
-
AuthorPosts
-
Stefano
ParticipantCliff, thank you so much. You guys at TEC have been extremely helpfull so far and I love the plugins.
I’ll get to it, and let you know how it goes.
Cheers!
Stefano
Stefano
ParticipantOne more question: When I update the Tickets Plus plugin, will it overwrite this modification?
Please instruct me how to avoid this.
thanks again.
Stefano
ParticipantGreat.. worked a charm!
thanks very much
StefanoStefano
ParticipantThanks, Geoff… I’m giving it a shot now.
Stefano
ParticipantHi Geoff,
I’m not too familiar with altering files, so tell me if this is correct procedure:
Appearance > Editor > Avada Theme (not child theme) > function.php
Add the snippet at the end of the page. This is what the last lines of the code look like:
….
function avada_auto_update( $key, $raw_key ) {
if ( ‘avada’ === $key && ‘Avada’ === $raw_key ) {
return $raw_key;
}
return $key;}
// Check if doing an ajax theme update, if so make sure Avada theme name is not changed to lowercase.
if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX && isset( $_POST[‘action’] ) && ‘update-theme’ === $_POST[‘action’] ) {
add_filter( ‘sanitize_key’, ‘avada_auto_update’, 10, 2 );
}/* Omit closing PHP tag to avoid “Headers already sent” issues. */
put snippet here?
thanks for your help Geoff!
Stefano
-
AuthorPosts
