msbento Posted December 20, 2022 Share Posted December 20, 2022 Hi, So, all my blog posts have the same template title "*Name of the Movie* - SPOILER-FREE Review" I'd like to remove the "SPOILER-FREE" part of every single blog post I have. Is there a way of doing this through code-injection or something instead of going one by one? Thanks in advance. Best regards, Manuel Link to comment
tuanphan Posted December 20, 2022 Share Posted December 20, 2022 Can you share link to a blog post? We can check easier 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
msbento Posted December 21, 2022 Author Share Posted December 21, 2022 https://www.msbreviews.com/movie-reviews/avatar-the-way-of-water-spoiler-free-review Link to comment
tuanphan Posted December 22, 2022 Share Posted December 22, 2022 16 hours ago, msbento said: https://www.msbreviews.com/movie-reviews/avatar-the-way-of-water-spoiler-free-review Try adding this code to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <script> $(document).ready(function(){ $(".post .entry-title a").html(function() { return $(this).html().replace("SPOILER-FREE", " "); }); }); </script> 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
msbento Posted December 22, 2022 Author Share Posted December 22, 2022 It works for each blog post when you open it, which is already great. But how can I make it also change in the homepage? https://www.msbreviews.com/ Link to comment
Solution tuanphan Posted December 24, 2022 Solution Share Posted December 24, 2022 On 12/22/2022 at 10:15 PM, msbento said: It works for each blog post when you open it, which is already great. But how can I make it also change in the homepage? https://www.msbreviews.com/ Homepage uses Summary Block, so you need to adjust something in the code. Use this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <script> $(document).ready(function(){ $(".post .entry-title a, .summary-title-link").html(function() { return $(this).html().replace("SPOILER-FREE", " "); }); }); </script> 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
msbento Posted December 26, 2022 Author Share Posted December 26, 2022 Thanks @tuanphan! All good now! Merry Christmas and Happy New Year 🙂 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