tuanphan Posted March 21 Posted March 21 Note: This requires a custom plugin #1. First, you add a Blank Page in Not Linked with Name/URL: Name: Event Top Section URL: /event-top-section Next, design the page layout to what you want, here is an example. You can use a Saved Section to add it here. #2. Install Section Loader Plugin (referral link) or this link (non-referral link) The plugin will give you some code to add to the Code Injection Header and footer, like this. #3. Add this code to the Event Page Header Code Injection <div data-wm-plugin="load" data-target="/event-top-section"></div> #4. Add this code to the Website > Website Tools > Custom CSS box div.wm-load-container { display: none; } body[class*="type-event"].view-item div.wm-load-container { display: flex !important; } #5. Add this code to Website > Website Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> document.addEventListener('wmSectionLoader:loaded', ({detail}) => { if (detail.target !== '/event-top-section') return; $('div.wm-load-container').insertBefore('body[class*="type-event"].view-item article>section:first-child'); }) </script> <style> .wm-load-container+section { padding-top: 0px !important; } </style> #6. Result 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment