Tycook7 Posted June 30, 2022 Share Posted June 30, 2022 Site URL: https://www.reviveandawaken.org/articles Often I find myself wanting to add a subtitle to accompany the main title on my blog posts (check out this blog page as an example https://www.desiringgod.org/articles/is-discipleship-more-challenging-today). I would like the sub title to be smaller and in paragraph format underneath the main title of my blog post. Is this possible? Link to comment
tuanphan Posted July 1, 2022 Share Posted July 1, 2022 First, edit your title to this format Re-Examining How the Church Defines # Discipleships Next, add this to Code Injection > Footer <!-- Code from sf.digital, tweaked a bit with class name --> <script> window.Squarespace.onInitialize(Y, () => { var title = document.querySelectorAll('h1 a'); for (var sf = 0; sf < title.length; ++sf) { var item = title[sf]; item.innerHTML = item.innerText.replace(/#/g, '<br>'); } }); </script> 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment