Okay
  Public Ticket #2914659
Aggiungere una classe
Closed

Comments

  • spunghi started the conversation

    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:

    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.php
    and 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] replied

    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):

    aurum/inc/laborator_functions.php:661

    2. 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.