FROM CACHE - es_header
Esta comunidad ahora recibe asistencia de una red de pares. El equipo de atención al cliente de Shopify ya no ofrece servicio a esta comunidad. Te animamos a conectar con otros emprendedores y partners para pedir ayuda y compartir tus experiencias. Sigue avisando de asuntos que incumplan nuestro Código de Conducta o contenidos que se deberían eliminar.

Text overlaping in menu

Text overlaping in menu

RevelationMex
Curioso(a)
7 0 1

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?Screenshot 2025-01-17 185255.jpg

 

 

1 RESPUESTA 1

joseamaya
Shopify Partner
113 14 24

Hello, This is happening to you because CSS properties like position absolute have this behavior.

 

What you need to do is the following:

 

1. First, the code you added in base.css for good practices is better moved to the custom css section.
In the section I highlighted below
 

joseamayadev_0-1737365916666.png

2. Edit when you have already placed this code in custom CSS, add the following property to the code as I leave it to you below.

 

 

.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;
}

 

 

 

⚠️Yes this does not work, feel free to send me a message or write to me privately to help you solve this problem.
José A. Amaya
Shopify Developer
www.joseamaya.com