ajrichardson Posted January 25 Share Posted January 25 I couldn't find an answer to this by searching, so just wondering if there's a way to reuse a newsletter sign-up block that I've previously created. I want to put one at the end of blog posts, and don't want to have to create it every time. I see that I can name them, but it doesn't appear I can reuse those named one to plug them in with one-click. Link to comment
tuanphan Posted January 28 Share Posted January 28 You can achieve this but requires a custom plugin First, install Section Loader Supreme Plugin (affiliate link) or this link (non-affiliate link) Next, create a page in Not Linked Name: Reuse Newsletter URL Slug: /reuse-newsletter Next, edit page and add a Newsletter Block Final, edit blog post where you want to place Newsletter > Add a Block > Choose Code > Paste this code <div data-wm-plugin="load" data-target="/reuse-newsletter"></div> Bonus In case you want to add a newsletter to all blog posts, above Pagination, you can use this code to Post Blog Item Code Injection <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script> $(document).ready(function(){ setTimeout( function() { $('div.wm-load-container').insertBefore('body[class*="type-blog"].view-item section#itemPagination'); }, 3000); }); </script> 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!) Link to comment
ajrichardson Posted February 8 Author Share Posted February 8 Thanks for the link and for the detailed instructions, will give that a go! (Sorry for the delayed response - just got an email today that you'd replied almost 2 weeks ago...) tuanphan 1 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