JN2024 Posted May 2 Share Posted May 2 Hi there. I'd like to add a subtitle to my blog posts, much in the same way that Substack has an automatic subtitle field below each article title. This would be different from the Excerpt. If anyone has a way to do this CSS, please let me know. Link to comment
Web_Solutions Posted May 5 Share Posted May 5 On 5/3/2024 at 2:22 AM, JN2024 said: Hi there. I'd like to add a subtitle to my blog posts, much in the same way that Substack has an automatic subtitle field below each article title. This would be different from the Excerpt. If anyone has a way to do this CSS, please let me know. Do you want like this? If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible. Link to comment
Solution tuanphan Posted May 6 Solution Share Posted May 6 You can follow this. #1. First, use this code to Code Injection > Footer (or Blog Page Header Code Injection) <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $(".blog-item-title h1, h1.blog-title").each(function(){ $(this).html($(this).text()); }); }); </script> #2. Edit Blog Post Title, use em tag, something like this Blog Post Title 03 <em>Trekking</em> #3. Use this code to Custom CSS box to style Subtitle h1.blog-title em, .blog-item-title em { font-style: normal; display: block; font-size: 26px; color: #f1f; } #4. Result #5. When you use <em> tag, it will appears on Browser Tab Name, so you can edit SEO Title to fix it. 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
abbiericher Posted September 9 Share Posted September 9 (edited) Hi @tuanphan, Thanks for the code! I just used it on a client's website. One question though, how can I removed the em tag on the previous/next pagination? website: https://fbq-conception.squarespace.com/ password: freelance Edited September 9 by abbiericher Adding website link Link to comment
tuanphan Posted Tuesday at 11:42 PM Share Posted Tuesday at 11:42 PM On 9/9/2024 at 11:04 PM, abbiericher said: Hi @tuanphan, Thanks for the code! I just used it on a client's website. One question though, how can I removed the em tag on the previous/next pagination? website: https://fbq-conception.squarespace.com/ password: freelance Can you share link to a blog post? We can use script code to remove it 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
abbiericher Posted Wednesday at 10:09 PM Share Posted Wednesday at 10:09 PM 22 hours ago, tuanphan said: Can you share link to a blog post? We can use script code to remove it The site is not online yet, but we could try maybe that url: https://fbq-conception.squarespace.com/projets-renovation-residentielle/dugre-charlevoix PW: freelance 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