m4tt300 Posted June 9, 2014 Share Posted June 9, 2014 Dear if you look at my website www.buonissimo.kz/en on the top bar you can click either on 1) products 2) gift set blue 3) detox with water When you click on products there are all the subcategories and all products from 2) and 3). http://www.buonissimo.kz/en/52-products I don't like the style of this page so I want to disable 1) making not clickable / accessible. Is it possible? Thank you in advance for your help. M4 Link to comment Share on other sites More sharing options...
PSfever.com Posted June 9, 2014 Share Posted June 9, 2014 If I understood that corectly, you want to disable just the links in those subcategories? If so, could you copy here the content of category.tpl file? Link to comment Share on other sites More sharing options...
m4tt300 Posted June 9, 2014 Author Share Posted June 9, 2014 Hi, thanks for your answer. No, I think you didn't understand what I would like to do. if you look at my website www.buonissimo.kz/en on the top bar you can click either on 1) products 2) gift set blue 3) detox with water I don't want to allow users to click on 1) but only on 2) and 3). However on the back office you must create 1) in order to have 2) and 3) (subcategories). Do you understand? Link to comment Share on other sites More sharing options...
PSfever.com Posted June 10, 2014 Share Posted June 10, 2014 Oh, I get it! You want the drop-down menu to be active, but you don't want the Products button to be clickable. This might be solved by either 1) editing the core modules file 2) looking at this http://www.w3schools.com/jsref/met_element_removeattribute.asp and removing the link using Js/jquery http://stackoverflow.com/questions/970388/jquery-disable-a-link and you can fiddle with it as you wish. Not clean, but simpler than editing the module.. 1 Link to comment Share on other sites More sharing options...
m4tt300 Posted June 17, 2014 Author Share Posted June 17, 2014 Hi, Thank you for your answer. Which module I have to modify? Which file? Apologies for my lack of Knowledge.... Thank you for your time. M4 Link to comment Share on other sites More sharing options...
dioniz Posted June 17, 2014 Share Posted June 17, 2014 Why don't you just make links directly to categories in your topmenu Link to comment Share on other sites More sharing options...
m4tt300 Posted June 17, 2014 Author Share Posted June 17, 2014 I need a drop menu from a root category so I think I can't make it the way you suggest.... Link to comment Share on other sites More sharing options...
PSfever.com Posted June 18, 2014 Share Posted June 18, 2014 Hi, you have your JS/CSS cached, so I don't know what files you have there, but this line might help you. $('ul.sf-menu > li > a.sf-with-ul:nth-child(1)').contents().unwrap(); It deletes link for the first a tag in the menu. So it will only work, when this Products drop down menu will be on the LEFT of the menu. Try adding it to some .js file, preferably if the module has its custom .js. Link to comment Share on other sites More sharing options...
m4tt300 Posted June 19, 2014 Author Share Posted June 19, 2014 Thanks PS, Could you please tell me WHERE I have to set it? I Apologies I am new... Link to comment Share on other sites More sharing options...
m4tt300 Posted June 20, 2014 Author Share Posted June 20, 2014 Anyone can help? this issue is becoming urgent... Thanks! Link to comment Share on other sites More sharing options...
vekia Posted June 20, 2014 Share Posted June 20, 2014 it's not possible to disable this page, you can only do some workarounds like: 1) disable "click" feature in each instance of link to this page. note that shop has got many features to display this link (menu, block categories, some other custom modules) 2) in category. tpl file you can add code like: {if !$smarty.get.id_cat=="5"} CODE OF TPL HERE {if} page will appear only if category page is different than 5 instead of 5 use id of category you want to disable / hide Link to comment Share on other sites More sharing options...
m4tt300 Posted June 21, 2014 Author Share Posted June 21, 2014 Hi Vekia, Thanks for your answer. Could you explain me better how to disable click ? Best regards, Matteo Link to comment Share on other sites More sharing options...
m4tt300 Posted June 24, 2014 Author Share Posted June 24, 2014 Hi Vekia, Could you help? Thanks! Regards, Matteo Link to comment Share on other sites More sharing options...
vekia Posted June 25, 2014 Share Posted June 25, 2014 hello im back to this so you want to disable "click" on GIFT SETS ? Link to comment Share on other sites More sharing options...
m4tt300 Posted June 25, 2014 Author Share Posted June 25, 2014 Welcome back ! Yes, exactly. How? Thanks Link to comment Share on other sites More sharing options...
m4tt300 Posted June 26, 2014 Author Share Posted June 26, 2014 Hope to hear from you or some1 soon ! Link to comment Share on other sites More sharing options...
PSfever.com Posted June 26, 2014 Share Posted June 26, 2014 Hope to hear from you or some1 soon ! Hi, as I said before, I don't see what JS files you have there, so I can not rly tell you where to put it. If you disable CSS/JS caching in your backoffice, then I might tell you which file to open. Link to comment Share on other sites More sharing options...
m4tt300 Posted June 26, 2014 Author Share Posted June 26, 2014 Can you look at it now? if yes, i will disable css/js... Link to comment Share on other sites More sharing options...
m4tt300 Posted June 26, 2014 Author Share Posted June 26, 2014 Disabled now..... Link to comment Share on other sites More sharing options...
PSfever.com Posted June 26, 2014 Share Posted June 26, 2014 http://www.buonissimo.kz/modules/blocktopmenu/js/superfish-modified.js change this })(jQuery); jQuery(function(){ jQuery('ul.sf-menu').superfish(); }); to this: })(jQuery); jQuery(function(){ jQuery('ul.sf-menu').superfish(); $('ul.sf-menu > li > a.sf-with-ul:nth-child(1)').contents().unwrap(); }); Link to comment Share on other sites More sharing options...
m4tt300 Posted June 26, 2014 Author Share Posted June 26, 2014 Hi PS, Thanks, it worked but now the button "gift set" looks different (not good.....). Do you know how to fix it ? Thanks a lot M4 Link to comment Share on other sites More sharing options...
m4tt300 Posted June 27, 2014 Author Share Posted June 27, 2014 PS, Looking forward to your answer. The button on the top bar looks strange now, however it worked and is not clickable. M4 Link to comment Share on other sites More sharing options...
PSfever.com Posted June 27, 2014 Share Posted June 27, 2014 In superfish-modified.css (http://www.buonissimo.kz/modules/blocktopmenu/css/superfish-modified.css) change this .sf-menu a { display:block; margin-right:2px; padding: 0 22px 0 20px; line-height:34px; /*Ingrandisci barra menu*/ border: 0px; text-decoration:none; } to this: .sf-menu a,.sf-menu > li { display:block; margin-right:2px; padding: 0 22px 0 20px; line-height:34px; /*Ingrandisci barra menu*/ border: 0px; text-decoration:none; color: #fff; cursor: pointer; } This should do the trick. 1 Link to comment Share on other sites More sharing options...
m4tt300 Posted June 27, 2014 Author Share Posted June 27, 2014 Thank you PS, worked ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now