alexferren Posted March 21 Share Posted March 21 I want to stylize my site title to have one portion of the text bold and the other portion unbold. The site title is 'newthing'; this is an example of the look I am attempting to achieve. Link to comment
tuanphan Posted March 25 Share Posted March 25 Hi, If you share site url, we can help easier. We can use some CSS code or script code to do this 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
alexferren Posted March 26 Author Share Posted March 26 yeah its here: https://www.newthingkc.org/home The current solution is just a .png, I would like something that changes with the color scheme Link to comment
tuanphan Posted March 29 Share Posted March 29 On 3/27/2024 at 1:37 AM, alexferren said: yeah its here: https://www.newthingkc.org/home The current solution is just a .png, I would like something that changes with the color scheme So you want newthing is bold kansas city is normal ? 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
alexferren Posted April 2 Author Share Posted April 2 Sorta, I would like it to look like this: newthing kansas city. The "new" part of newthing would be bold. Link to comment
Solution tuanphan Posted April 5 Solution Share Posted April 5 You can use this code to Website > Website Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function() { $('a#site-title:contains("new")').text('<span class="new">new</span><span>thing | kansas city</span>'); $("a#site-title").each(function(){ $(this).html($(this).text()); }); }); </script> <style> a#site-title span:nth-child(1) { font-weight: bold; } </style> 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
alexferren Posted April 22 Author Share Posted April 22 @tuanphan, any suggetions on making this solution work on mobile as well? Link to comment
tuanphan Posted April 25 Share Posted April 25 On 4/22/2024 at 11:18 PM, alexferren said: @tuanphan, any suggetions on making this solution work on mobile as well? Can you remove this code only? I will test it again <script> $(document).ready(function() { $('a#site-title:contains("new")').text('<span class="new">new</span><span>thing.</span>'); $("a#site-title").each(function(){ $(this).html($(this).text()); }); }); </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
alexferren Posted May 16 Author Share Posted May 16 @tuanphan, removing this didn't change the mobile header. Link to comment
tuanphan Posted May 18 Share Posted May 18 I Meant you can remove it, then I can check problem easier 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