Comments spunghi started the conversationNovember 11, 2021 at 10:12pmBuonasera, vorrei aggiungere una classe all'icona del carrello che si visualizza sulla versione mobile. Sulla versione desktop ce l'ho fatta... Ho individuato credo il file php su cui operare: header-mobile.php e la riga numero 40: if ( $header_cart_info_show_in_header ) { aurum_show_header_cart_icon( array( 35, 35, ) ); } Come posso aggiungere la classe "xoo-wsc-cart-trigger" ?Grazie per la risposta....Cordiali saluti[English — Google Translated]Good evening, I would like to add a class to the cart icon that is displayed on the mobile version. On the desktop version I did it ... I think I have identified the php file to operate on: header-mobile.phpand line number 40: if ( $header_cart_info_show_in_header ) { aurum_show_header_cart_icon( array( 35, 35, ) ); }How can I add the "xoo-wsc-cart-trigger" class? Thanks for the reply...Yours sincerely[deleted] repliedNovember 16, 2021 at 8:54amHi spunghi,The class you want to add can be added in two ways, by modifying this line of code:1. By modifying theme file (after them update, you need to repeat this step): aurum/inc/laborator_functions.php:6612. Or by adding this JavaScript code in Theme Options > Footer > Tracking Code (used for custom JavaScript): <script> jQuery( document ).ready( function() { jQuery( '.site-header a.cart-counter' ).addClass( 'xoo-wsc-cart-trigger' ); } ); </script>This is added one time only and you don't need to worry if you update the theme. However, you must make sure it works with the plugin you are intending to use it. So I suggest you to go with solution 2 if it works for you. Sign in to reply ...
Buonasera, vorrei aggiungere una classe all'icona del carrello che si visualizza sulla versione mobile. Sulla versione desktop ce l'ho fatta...
Ho individuato credo il file php su cui operare: header-mobile.php
e la riga numero 40:
Come posso aggiungere la classe "xoo-wsc-cart-trigger" ?
Grazie per la risposta....
Cordiali saluti
[English — Google Translated]
Good evening, I would like to add a class to the cart icon that is displayed on the mobile version. On the desktop version I did it ...
I think I have identified the php file to operate on: header-mobile.php
and line number 40:
How can I add the "xoo-wsc-cart-trigger" class?
Thanks for the reply...
Yours sincerely
Hi spunghi,
The class you want to add can be added in two ways, by modifying this line of code:
1. By modifying theme file (after them update, you need to repeat this step):
2. Or by adding this JavaScript code in Theme Options > Footer > Tracking Code (used for custom JavaScript):
This is added one time only and you don't need to worry if you update the theme. However, you must make sure it works with the plugin you are intending to use it. So I suggest you to go with solution 2 if it works for you.