Rendy Posted January 11, 2022 Share Posted January 11, 2022 Site URL: https://www.rendyreviews.com/movie-reviews Hi I at the beginning of my posts I keep getting this glitch with my reviews whenever i post them. This is the code I'm working with: <script> document.addEventListener('DOMContentLoaded', function() { var element = document.querySelector('.BlogItem-title'); if (!element) { return; } var newElement = document.createElement('h3'); newElement.style.order = 1; newElement.className = "BlogItem-excerpt"; newElement.innerHTML = document.querySelector('[property="og:description"]').getAttribute("content"); var elementParent = element.parentNode; elementParent.insertBefore(newElement, element.nextSibling); }); </script> It works at times, it doubles up most of the time. Can somebody help fix this for me? Thank you so much. Link to comment
tuanphan Posted January 12, 2022 Share Posted January 12, 2022 Just checked some posts & fine here. Can you share link to post in screenshot? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Rendy Posted January 13, 2022 Author Share Posted January 13, 2022 https://www.rendyreviews.com/movie-reviews/hotel-transylvania-transformania-review I disabled the code for a bit but here its all over again. Link to comment
tuanphan Posted January 15, 2022 Share Posted January 15, 2022 On 1/14/2022 at 2:13 AM, Rendy said: https://www.rendyreviews.com/movie-reviews/hotel-transylvania-transformania-review I disabled the code for a bit but here its all over again. It looks fine to me Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Rendy Posted January 17, 2022 Author Share Posted January 17, 2022 I don't think your cookies are on because there's a sidebar and everything that appears on the site. 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