Liquid, Javascript
Recently someone helped me changing the menu icons to text with the following code placed in base.css:
.header__icon--search::after { content: 'Search'; position: absolute; top: 50%; } .header__icon--account::after { content: 'Account'; position: absolute; } .header__icon--cart::after { content: 'cart'; position: absolute; } .header__icon--search span, .header__icon--account svg, .header__icon--cart svg{ display: none; }
but now the text is overlapping each other. How can I fix this?
Hello, This is happening to you because CSS properties like position absolute have this behavior.
What you need to do is the following:
.header__icon--search::after {
content: 'Search';
position: absolute;
top: 50%;
right: 0px; /* 1px, 2px,+++ ve moviendo los valores hasta encontrar el correcto */
}
.header__icon--account::after {
content: 'Account';
position: absolute;
right: 0px; /* 1px, 2px,+++ ve moviendo los valores hasta encontrar el correcto */
}
.header__icon--cart::after {
content: 'cart';
position: absolute;
right: 0px; /* 1px, 2px,+++ ve moviendo los valores hasta encontrar el correcto */
}
.header__icon--search span, .header__icon--account svg, .header__icon--cart svg{
display: none;
}
¡Hola! Hemos estado trabajando para mejorar tu experiencia en Shopify en español y ne...
By Shopify May 12, 2025Descubre cómo expandir tus operaciones a nivel internacional con la ruta de aprendizaje...
By Shopify Feb 7, 2025Expande tus operaciones a la venta mayorista con la ruta de aprendizaje de Shopify Acad...
By Shopify Feb 3, 2025