Kreykoui Posted August 18, 2022 Share Posted August 18, 2022 Hello everyone, In order to find space, I try to integrate the main menu of my site in production, with the hook "displayNavFullWidth". But as you can see, the menu remains sticking to the left margin. I tried different possibilities found on the web but none seem to work under version 1.7.8.7. Is there a solution to center the menu so that it is compatible with different screen formats? Thank you for any help you can give me. Link to comment Share on other sites More sharing options...
Ali Samie Posted August 18, 2022 Share Posted August 18, 2022 please share your website url Link to comment Share on other sites More sharing options...
Kreykoui Posted August 18, 2022 Author Share Posted August 18, 2022 Il y a 11 heures, stifler97 a dit : please share your website url Sorry, it's hosted locally. But all modules are native Prestashop. Link to comment Share on other sites More sharing options...
ps8modules Posted August 19, 2022 Share Posted August 19, 2022 1 Link to comment Share on other sites More sharing options...
Kreykoui Posted August 19, 2022 Author Share Posted August 19, 2022 Il y a 7 heures, 4you.software a dit : Thanks for the info but it doesn't work in my case, maybe because I moved my menu into the "displayNavFullWidth" hook. Link to comment Share on other sites More sharing options...
Ali Samie Posted August 19, 2022 Share Posted August 19, 2022 i think this is missing a container class. because it seems to be wider than normal 1 Link to comment Share on other sites More sharing options...
Kreykoui Posted August 20, 2022 Author Share Posted August 20, 2022 Le 2022-08-19 à 7:41 AM, stifler97 a dit : i think this is missing a container class. because it seems to be wider than normal That's also the impression I had but, not being a programmer... Your intervention gave me the courage to dive in and after careful consideration, I took the plunge! So instead of "building" a container to drop "displayNavFullWidth" hook into it, I decided to use the already existing container in: /mysite/themes/classic/templates/_partials/header.tpl, and just move {hook h='displayNavFullWidth'} in the right place. Simple clean handling that responds well on all screen formats. Magic Magic !! 1 Link to comment Share on other sites More sharing options...
Ali Samie Posted August 20, 2022 Share Posted August 20, 2022 very nice. good job. Please add [SOLVED] to the title for others to use later. Thanks. 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