pa_space Posted April 5, 2023 Share Posted April 5, 2023 Hi, Is there a way to add a section above the header on the homepage of my site. Kind of like a landing page but still on the same home page. See example below: Link to comment
tuanphan Posted September 27 Share Posted September 27 You can edit Homepage > Add a Section under Header > Then use this code to Website Tools > Code Injection > Footer to move this section above Header <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $('body.homepage #page>article>section:first-child').insertBefore('header#header'); }); </script> <style> body.homepage header#header { position: sticky !important; top: 0; position: -webkit-sticky; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment