• Buenas tardes,

    Estoy creando mi header con oceanwp y elementor, el caso es que al poner el [oceanwp_woo_cart] Shortcode, solo me sale la opción de poner el estilo “bolsa de compra” y yo querria cambiar el icono al de “carrito/basket”. ¿Existe alguna manera de elegir entre los dos iconos?

    Puede que este topic esté solucionado pero yo no lo he encontrado al buscar en el foro,

    Gracias de antemano,

    English below:

    Good afternoon,
    
    I am creating my header with oceanwp and elementor, the thing is that when I put the [oceanwp_woo_cart] Shortcode, I only get the option to put the style "shopping bag" and I would like to change the icon to "cart/basket". Is there any way to choose between the two icons? 
    
    Maybe this topic is solved but I have not found it when searching in the forum,
    
    Thanks in advance,
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello @marurbgil,

    I’m afraid that’s not possible. But you can customize it.
    What icon do you want to use instead?

    ____________

    You can use “Inspect Element” tools on the browser. Please follow the steps explained in this link: https://www.greengeeks.com/tutorials/article/use-the-inspect-element-tool-in-chrome/.

    CSS Tutorial: https://www.w3schools.com/css/
    CSS Units: https://www.w3schools.com/cssref/css_units.asp
    Responsive Sizes: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/

    Put your CSS on custom screen size:

    @media only screen and (max-width: 480px) {
        /* put you CSS here*/
    }

    Or use between sizes:

    @media (max-width: 960px) and (min-width: 481px){
        /* put you CSS here */
    }

    Best Regards

    Thread Starter marurbgil

    (@marurbgil)

    Hello @marurbgil,

    Please put the CSS below in Customizing > Custom CSS/JS > CSS Code:

    #wrap .wcmenucart-cart-icon .wcmenucart-count {
        border: 0;
        text-align: center;
        width: 25px;
        height: 25px;
        border-radius: 25px;
        margin-bottom: 5px;
    }
    
    #wrap .bag-style:hover .wcmenucart-cart-icon .wcmenucart-count {
        background: #f1f1f1;
        color: #000;
    }
    
    #wrap .wcmenucart-cart-icon .wcmenucart-count:after {
        background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAA/gAAAP4BT8Ki/g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position: center center;
        border: 0;
        width: 32px;
        height: 32px;
        border-radius: 0;
        left: -22px;
        top: 50%;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
    }
    
    #wrap .bag-style:hover .wcmenucart-cart-icon .wcmenucart-count:after, .show-cart .wcmenucart-cart-icon .wcmenucart-count:after {
        height: 32px;
    }

    Best Regards

    Thread Starter marurbgil

    (@marurbgil)

    Thank you very much!!!

    So, if the icon i want to show is” https://madicontrol.com/tienda/wp-content/uploads/2021/04/shopping-cart.svg ” which part of the css code you give me i should change?

    thanks in advance,

    Hello @marurbgil,

    You should put your URL instead of the property for background:

    #wrap .wcmenucart-cart-icon .wcmenucart-count {
        border: 0;
        text-align: center;
        width: 25px;
        height: 25px;
        border-radius: 25px;
        margin-bottom: 5px;
    }
    
    #wrap .bag-style:hover .wcmenucart-cart-icon .wcmenucart-count {
        background: #f1f1f1;
        color: #000;
    }
    
    #wrap .wcmenucart-cart-icon .wcmenucart-count:after {
        background: url('https://madicontrol.com/tienda/wp-content/uploads/2021/04/shopping-cart.svg');
        background-size: cover;
        background-position: center center;
        border: 0;
        width: 32px;
        height: 32px;
        border-radius: 0;
        left: -22px;
        top: 50%;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
    }
    
    #wrap .bag-style:hover .wcmenucart-cart-icon .wcmenucart-count:after, .show-cart .wcmenucart-cart-icon .wcmenucart-count:after {
        height: 32px;
    }

    Result: https://i.postimg.cc/9fWmGVjh/image.png

    Best Regards

    Thread Starter marurbgil

    (@marurbgil)

    Thank you very much, it worked ver y nice!!!@Shahin

    Another thing I would like to get to finish the cart is that the counting bubble is higher than the basket.

    https://www.madicontrol.com/wp-content/uploads/2021/09/cestasubirburbuja.png
    Is anyway to high that up??

    This is my code for the basket:

    #wrap .wcmenucart-cart-icon .wcmenucart-count {
        border: 0;
        text-align: center;
        width: 25px;
        height: 25px;
        border-radius: 25px;
        margin-bottom: 10px;
    	  background: #EEB601;
        color: #000;
    }
    
    #wrap .bag-style:hover .wcmenucart-cart-icon .wcmenucart-count {
        background: #F1F1F1;
        color: #000;
    }
    
    #wrap .wcmenucart-cart-icon .wcmenucart-count:after {
        background: url('https://madicontrol.com/tienda/wp-content/uploads/2021/09/shopping-cart-5.svg');
        background-size: cover;
        background-position: center center;
        border: 0;
        width: 47px;
        height: 47px;
        border-radius: 0;
        left: -35px;
        top: 50%;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
    }
    
    #wrap .bag-style:hover .wcmenucart-cart-icon .wcmenucart-count:after, .show-cart .wcmenucart-cart-icon .wcmenucart-count:after {
        height: 47px;
    }

    Thanks in advance!!

    Thread Starter marurbgil

    (@marurbgil)

    Thread Starter marurbgil

    (@marurbgil)

    Good Evening,

    I would like to know if there is any update about this,

    Thanks in advance

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cambiar estilo cesta por carrito en el header’ is closed to new replies.