Tomi14 Posted October 13, 2022 Share Posted October 13, 2022 I want to hide my long category description, when clinet starts searching using faceted search Prestashop 1.7.8.7 Link to comment Share on other sites More sharing options...
daniele dexter Posted October 13, 2022 Share Posted October 13, 2022 Hi, can you send the image with highlighted the field you want to hide? Link to comment Share on other sites More sharing options...
Tomi14 Posted October 13, 2022 Author Share Posted October 13, 2022 Sure. Even if I choose something in faceted search, still I need scroll down a one screen below my text description Link to comment Share on other sites More sharing options...
daniele dexter Posted October 13, 2022 Share Posted October 13, 2022 Ok now I understand. I had a similar problem. If you have the knowledge to do this I recommend that you edit the specific tpl file. Do you have the default prestashop theme or have you bought another one? Once you have found the file you should move the html section that contains the category description next to the footer. This way the description is always visible, but at first glance you don't see it. Daniele Link to comment Share on other sites More sharing options...
Tomi14 Posted October 13, 2022 Author Share Posted October 13, 2022 I have some free theme. I think I don't understand. Why I should move category description to footer? I want to hide it after some one strarts using left menu to personalize searchings Link to comment Share on other sites More sharing options...
daniele dexter Posted October 14, 2022 Share Posted October 14, 2022 In my opinion it is easier to manage. Otherwise you have to find someone to modify the code with the rule you want. Since to do this you must also consider how the theme is made, you will hardly find someone who does it for you for free. Link to comment Share on other sites More sharing options...
tym Posted January 17 Share Posted January 17 (edited) The code below works, but it shows up after refreshing the page. It doesn't work with Ajax help me $(document).ready(function(){ if ($(".active-filter-title").html().length > 0) { $('.card').hide(); } else { $('.card').show(); } }); Edited January 18 by tym (see edit history) 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