Jump to content

Vertical sub-menu in Classic theme [PS 1.7.0.6]


Recommended Posts

Hi there!

 

Been at this for a couple of hours now, but I can't seem to find the solution.

In my custom.css file I have been trying to style the following tags to no avail:

<div class="popover sub-menu js-sub-menu collapse" id="top_sub_menu_XXXXX">
<ul class="top-menu" data-depth="1">

I'm trying to turn the horizontal sub-menu in to a vertical sub-menu.

Check out the images if you don't understand what I'm trying to achieve.

 

If anyony got a pointer, or some advice, that would be really appreciated!

 

 

Thanks!

post-1036875-0-80245300-1489807814_thumb.jpg

post-1036875-0-77643300-1489807815_thumb.jpg

  • Like 1

Share this post


Link to post
Share on other sites

  • 4 months later...
  • 2 weeks later...

Here is the solution:

 

1 - Open the file /themes/classic/assets/css/theme.css

2 - Search for: top-menu .sub-menu ul[data-depth=1]>li and remove the property float:left

3 - Search for .popover and remove the property left:0

4 - Search for .popover and remove the property width

5 - Search for .popover and remove the property min-width

 

Or you cay use the file attached.

 

Do not forget to clear your cache after the changes are made.

 

 

theme.css

Edited by andresams (see edit history)
  • Like 2

Share this post


Link to post
Share on other sites

  • 7 months later...
On 8/31/2017 at 12:55 PM, andresams said:

Here is the solution:

 

1 - Open the file /themes/classic/assets/css/theme.css

2 - Search for: top-menu .sub-menu ul[data-depth=1]>li and remove the property float:left

3 - Search for .popover and remove the property left:0

4 - Search for .popover and remove the property width

5 - Search for .popover and remove the property min-width

 

Or you cay use the file attached.

 

Do not forget to clear your cache after the changes are made.

 

 

theme.css

Hi #andresams, I don't find the file  /themes/classic/assets/css/theme.css  I use the default theme. I look also for a vertical menu.

Thanks in advance!

Share this post


Link to post
Share on other sites

Just now, Daniela said:

Hi #andresams, I don't find the file  /themes/classic/assets/css/theme.css  I use the default theme. I look also for a vertical menu.

Thanks in advance!

Now i see this solution is for 1.7 not for 1.6. If you know a solution for 1.6 please tell me. Thanks!

Share this post


Link to post
Share on other sites

  • 1 year later...

Hola a todos. Probé el material que se ha comentado aquí y no me funciona o no aparece en mi prestashop 1.7.5.

Por favor agradecería escribir la dirección completa del archivo de los que se hablen. Los que no entendemos mucho nos volvemos locos buscando los archivos.

En mi prestashop si tiene /themes/classic/assets/css/theme.css pero de lo comentado no comprendo bien la respuesta. 

Sobre la palabra ".popover" aparece 67 veces en mi archivo theme.css creo que una ayuda podría evitar errores graves de agradecer.

Ah? el archivo para descargar sobre theme.css que ya está modificado NO funciona en mi prestashop. 

Yo quiero cambiar los submenús que aparecen horizontales por verticales ya que tapan todo el menú principal que es horizontal y lo deseo así.

 

Gracias a todos. Alguna ayuda seria genial

Saludos

 

Edited by Adrianna-27
No hay nadie con conocimientos¿? (see edit history)

Share this post


Link to post
Share on other sites

  • 1 month later...
  • 9 months later...
On 8/31/2017 at 6:55 AM, andresams said:

Here is the solution:

 

1 - Open the file /themes/classic/assets/css/theme.css

2 - Search for: top-menu .sub-menu ul[data-depth=1]>li and remove the property float:left

3 - Search for .popover and remove the property left:0

4 - Search for .popover and remove the property width

5 - Search for .popover and remove the property min-width

 

Or you cay use the file attached.

 

Do not forget to clear your cache after the changes are made.

 

 

theme.css 182.96 kB · 239 downloads

Great! It worked!

I´ve been trying to change it for weeks, thank you very much!

Share this post


Link to post
Share on other sites

  • 3 months later...
On 8/31/2017 at 11:55 AM, andresams said:

Here is the solution:

 

1 - Open the file /themes/classic/assets/css/theme.css

2 - Search for: top-menu .sub-menu ul[data-depth=1]>li and remove the property float:left

3 - Search for .popover and remove the property left:0

4 - Search for .popover and remove the property width

5 - Search for .popover and remove the property min-width

 

Or you cay use the file attached.

 

Do not forget to clear your cache after the changes are made.

 

 

theme.css  182.96 kB · 262 downloads

Ok. In  full screen is correct. 

reduced screen does not work.

Share this post


Link to post
Share on other sites

  • 7 months later...
On 31/8/2017 at 6:55, andresams said:

Esta es la solucion:

 

1 - Abra el archivo  /themes/classic/assets/css/theme.css

2 - Busque: top-menu .sub-menu ul [data-depth = 1]> li y elimine la propiedad float: left

3 - Busque  .popover y elimine la propiedad  izquierda: 0

4 - Busque  .popover y elimine el ancho de la propiedad 

5 - Busque .popover y elimine la propiedad  min-width

 

O puede usar el archivo adjunto.

 

No olvide borrar su caché después de realizar los cambios.

 

 

theme.css 182,96 kB · 289 descargas

Comunidad querida, hoy me toca aportar a mi, dejo adjunto el archivo theme.css editado para mostrar el submenu vertical en el theme classic. Version 1.7.7

image.thumb.png.b90c8e9b10496ac653489222a2f4d939.png

theme.css

  • Thanks 1

Share this post


Link to post
Share on other sites

18 minutes ago, kasketm said:

Hi,

 Thanks leornardo for the share !

Triying with 1.7.7.4 but no result... i change my file theme.css with yours by filezilla without success

Hi, try clear cache in var/cache (remove files prod and dev)

Share this post


Link to post
Share on other sites

Its Working !! This morning i saw thats working ! Maybe need to wait about server update...

thank you leonardo ! A lot of dev want to sell not share some line code... 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More