René Kuenen Posted May 29, 2014 Share Posted May 29, 2014 Hello, I am tweaking the default theme to fit for my needs. Now i discovered that when i narrow the with of my browser or look at my mobile phone the Blocktopmenu does not expand. You can look at my testsite www.renekuenen.nl/webshop and narrow the browser so it displays the + sign in the topmenu. Then try to click on the category bar. Nothing happens.. With all my tweeks i rename the original file in xxxOLD.xxx and then save the new file for rollback purposes. Since i don't know when this fault slipped in i'm trying for many hours to find what the problem causes. I rolled back all the xOLD.xxx files i could find, including the ones that are outside the theme but my topmenu never expands. It could be that i accidentally saved a modified file before renaming it, or something else goes wrong. I have no idea witch file(s) are responsible for the expansion of the top menu in a small screen. When i switch to the default theme the topmenu works fine, but when i go back to my theme it messes up my theme, but the topmenu is still not working. These files i know that i have been modified: /mytheme/ order-carrier.tpl product.tpl /mytheme/css category.css global.css product.css Who can tell me what file i should look for to solve my problem? Link to comment Share on other sites More sharing options...
taniacr Posted May 29, 2014 Share Posted May 29, 2014 Have you tried clearing your cache when applying your template? Link to comment Share on other sites More sharing options...
René Kuenen Posted May 29, 2014 Author Share Posted May 29, 2014 Thanks for your reply, I have cleared the cache, however the caching is turned off for testing purposes. In the past, caching made me many hours to solve problems they weren't there. Link to comment Share on other sites More sharing options...
dioniz Posted May 29, 2014 Share Posted May 29, 2014 All i see is blank page at your address Link to comment Share on other sites More sharing options...
taniacr Posted May 29, 2014 Share Posted May 29, 2014 I know what you mean René I see a blank page too. If you only changed those files i would bet on global.css. But i'm still a baby when it comes to bootstrap. Try replacing only those, by ftp one by one, with the original bootstrap files. Link to comment Share on other sites More sharing options...
René Kuenen Posted May 29, 2014 Author Share Posted May 29, 2014 (edited) EDIT: Site is back online! Got some major troubles now. Putting back my yesterday backup right now. Please wait about 15 minutes and try again Edited May 29, 2014 by René Kuenen (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted May 29, 2014 Share Posted May 29, 2014 This is related to blocktopmenu.js Do you have this file in this path yourtheme/js/modules/blocktopmenu/js/blocktopmenu.js I don't see it cause you have CCC on Link to comment Share on other sites More sharing options...
René Kuenen Posted May 29, 2014 Author Share Posted May 29, 2014 This file is present. I looked in the default theme and noticed that it was slightly differend, so i copyed the file from the default theme to my theme. This didn't change anything. When i delete this file the drop down is not working at all, so i'm in the right direction i think. In the theme's global.css i added the line: #block_top_menu ul li li ul {display:none!important;} to limit the subcategory dropdown. I tried to remove this but again no change. Does it help for you when i turn of CCC? This is what i do so you may try again. use the default blockmenu.js in my theme comment out the line in the global.css turn off CCC Link to comment Share on other sites More sharing options...
dioniz Posted May 29, 2014 Share Posted May 29, 2014 Hm, i don't see what could be wrong. But i see your footer accordion doesn't work either. Have you changed any other .js file that could cause this problems Link to comment Share on other sites More sharing options...
AlmeraGTI Posted May 30, 2014 Share Posted May 30, 2014 I have just posted a similar topic, http://www.prestashop.com/forums/topic/334337-sub-menu-goes-missing-when-javascript-smart-cache-option-on/I have also tested what you are saying and I am also getting your problem that I missed. However when I turn Javascript Smart Cache option OFF My problem is solved and I see sub-menu and when reduced in size I can click + and it opens the categories. Hope this helps, but still needs a fix for Javascript Smart Cache Link to comment Share on other sites More sharing options...
René Kuenen Posted May 30, 2014 Author Share Posted May 30, 2014 Thanx for your replay. i turned all caching off and my problem still is there. I'm now gonna copy folder by folder from default theme to my theme in the hope i can narrow down the possible cause. Link to comment Share on other sites More sharing options...
René Kuenen Posted May 31, 2014 Author Share Posted May 31, 2014 Update : When i rename the default theme to my-theme (rename my-theme first..) Nothing changes at the front. When i choose in the backoffice the default theme it ask me what modules to install or not to install. After that ,as mentioned before, the blocktopmenu works good. If i want to switch back to my-theme it asks the same module question and when i continue the blocktopmenu works perfect, but my theme is 80% back to the default theme. Why can't i simply switch theme's as in version 1.5.x? I also tried to select the default theme, then make a db backup. Rollback the theme switch, and import the db backup. Unfortunedly then the whole site goes blank. (500 error) I'm pretty much near a brain meltdown Link to comment Share on other sites More sharing options...
René Kuenen Posted September 27, 2014 Author Share Posted September 27, 2014 This worked for me: http://www.prestashop.com/forums/topic/344866-blocktopmenu-wont-work-on-mobile/?do=findComment&comment=1738335 Link to comment Share on other sites More sharing options...
Recommended Posts