CharlotteV Posted August 27, 2014 Share Posted August 27, 2014 (edited) Hiya, I've tried a code to disable right button of the mouse in my web (I know is useless) using HTMLBox. The thing is that now the code appears in my homepage (2 in the screenshot) and I'm not able to delete it. Anyone can help? Also I would like to change a little the appearance of the newsletter block (1 in the screenshot) so if someone can tell me in which file(s) are the attributes for this block I would be thankful. Regards Edited August 29, 2014 by CharlotteV (see edit history) Link to comment Share on other sites More sharing options...
PSfever.com Posted August 27, 2014 Share Posted August 27, 2014 Disabling right click is just a way to alienate your customers..let's say that they just want to save the image of one of your products and without any knowledge of developer tabs they can't... Anyway, what is the problem again? How about deleting the content of HTMLbox all together? IMHO it's better to insert javascript into .tpl files (header or footer)... 1 Link to comment Share on other sites More sharing options...
CharlotteV Posted August 27, 2014 Author Share Posted August 27, 2014 Disabling right click is just a way to alienate your customers..let's say that they just want to save the image of one of your products and without any knowledge of developer tabs they can't... Anyway, what is the problem again? How about deleting the content of HTMLbox all together? IMHO it's better to insert javascript into .tpl files (header or footer)... I know that disabling right click is silly so I don't want to do it anymore. The problem is that I know how to insert things with HTMLBox but I don't know how to delete them. Do you think that uninstalling HTMLBox would do the trick? Link to comment Share on other sites More sharing options...
PSfever.com Posted August 27, 2014 Share Posted August 27, 2014 If it's Vekia's HTML box, then you should be able to delete its content in configuration of the module. However yes, uninstalling would do the trick as well. 1 Link to comment Share on other sites More sharing options...
CharlotteV Posted August 27, 2014 Author Share Posted August 27, 2014 Thanks a lot!! This worked like a charm and now the code is gone! =D Link to comment Share on other sites More sharing options...
vekia Posted August 28, 2014 Share Posted August 28, 2014 you can simply remove code from module textbox area on module configuration page if you want to use scripts, you have to use </> feature available in tinymce editor to paste it if you will just paste code right to editor - tinymce and prestashop will treat it as a simple text. 1 Link to comment Share on other sites More sharing options...
CharlotteV Posted August 28, 2014 Author Share Posted August 28, 2014 Thanks Vekia, is fixed now. 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