Jump to content

why javascript is not working?


Recommended Posts

Hello! i midified the global.css and the specific superflish-modified.css to change the menu position and with. After that, i realized that the links were not working and the hover efect also was broken. My question is why? i didnt changed any clases or even changed any .tpl file or .php. I been reading the blocktopmenu.php file and everything sems fine. I can't understant why the javascript is not doing it's job. 

 

Thats how the prestashop looks like:

 

Captura%20de%20pantalla%202015-04-09%202

 

I will be very happy if anyone helps me! thank you!

Link to comment
Share on other sites

After reversing all chenges i did to se what was the change that produced the submenus and hover stop working, i realized its just when delating the clear:both; from .sf-contener.

 

I did that to display the logo and the menu inline. why is it wrong? 

 

Thank you!

Link to comment
Share on other sites

Hi Enrrique. Thank you for answering me. I'm sorry for not following the forum rules. I will read them carefully before my next post.
About the environment, I'm working with a local server. I'm using UniserverZ. The modified theme is the default-bootstrap.
 
As I said, I went back to se what part of the css was breaking the menu effect, and I found it was a delated "clear:both" in the file superfish-modified.css located in "C:\UniServer\www\prestashop\themes\default-bootstrap\css\modules\blocktopmenu\css".
 
Then, my question was more about understanding how files are linked and how it exactly works in prestashop. As I could see in the code, the hover and menus effects are achieved by javascript and not by css. How is it possible that a change in the css affects the javascript?
 
Otherwise, I have just seen that now on chrome inspector tool it appears that the rendered files are the .scss ones, located in "C:\UniServer\www\prestashop\themes\default-bootstrap\sass\modules\blocktopmenu\css", instead of the .css one mentioned before. Why this change?
 
Definitely I got problems understanding how prestashop works. Any help will be very apreciated.
 
I upload the screenshoot again: 

 

Captura_de_pantalla_2015_04_09_20_30_15.

Edited by nsuriac (see edit history)
Link to comment
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
×
×
  • Create New...