juju298 Posted March 12, 2022 Share Posted March 12, 2022 Hey everybody, How can I delete the header completely? I have read via css. But what is the code for it. Link to comment Share on other sites More sharing options...
Ress Posted March 12, 2022 Share Posted March 12, 2022 #header { display: none; } Link to comment Share on other sites More sharing options...
juju298 Posted March 12, 2022 Author Share Posted March 12, 2022 Hello, thank you. Do I need to put that into the child/assets/css/custom.css of the child template? Link to comment Share on other sites More sharing options...
Ress Posted March 12, 2022 Share Posted March 12, 2022 Yes, and don't forget to clear the cache. Link to comment Share on other sites More sharing options...
juju298 Posted March 12, 2022 Author Share Posted March 12, 2022 But it don’t load up the new zip file. Link to comment Share on other sites More sharing options...
Ress Posted March 12, 2022 Share Posted March 12, 2022 I thought you already had the child theme. You can put it directly in the theme's css, no problem theme/assets/css/custom.css Link to comment Share on other sites More sharing options...
juju298 Posted March 12, 2022 Author Share Posted March 12, 2022 Yes I have downloaded the theme, which is now named child theme, then I opened the file and I edited the css. But now I need to upload the new ZIP file or not ? Link to comment Share on other sites More sharing options...
Ress Posted March 12, 2022 Share Posted March 12, 2022 If you only want to add this css rule, you do not need to create a child theme. You can go directly to the active theme, in the custom css file, and add the rule there. Link to comment Share on other sites More sharing options...
juju298 Posted March 12, 2022 Author Share Posted March 12, 2022 Yes I want only delete this header. How do I get to the active theme and then to the custom css file? I can't find it. Link to comment Share on other sites More sharing options...
Ress Posted March 12, 2022 Share Posted March 12, 2022 Sorry, you have the latest version of PrestaShop, the custom.css file is no longer in the theme file. I think a simpler option would be to use this module: 1 Link to comment Share on other sites More sharing options...
juju298 Posted March 12, 2022 Author Share Posted March 12, 2022 Ok thanks, I added it here in the module. But now it moved near to the middle. I put the code just into the CSS. There is also a JS. Link to comment Share on other sites More sharing options...
Ress Posted March 12, 2022 Share Posted March 12, 2022 I think something is wrong, with that css rule, it should work without problems. Do you have the cache active? Did you clear it? Link to comment Share on other sites More sharing options...
juju298 Posted March 13, 2022 Author Share Posted March 13, 2022 Hey Ress, thank you very much! It worked. I am really glad. Maybe you also know the code to delete the footer? That's the same I think. 1 Link to comment Share on other sites More sharing options...
Ress Posted March 13, 2022 Share Posted March 13, 2022 Hi, #footer { display: none; } 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