clarkbeggs Posted March 24, 2020 Share Posted March 24, 2020 Site URL: https://magnolia-shark-g9jd.squarespace.com/jobs-master?category=Ireland?category=Ireland Password: fiossftw I'm trying to change the text in the screenshot that says: "Posts in Ireland" to say "Jobs in Ireland" I used this code to make this change, but it affects all categories. So the page that should say "Jobs in United States" for example, ends up being changed to "Jobs in Ireland" as well. How can I target the categories separately? I tried putting the code as header injection and Custom CSS to no avail. .BlogList-filter { font-size: 0!important; } .BlogList-filter::before { content: "Jobs in Ireland"!important; font-size: 16px; color: hsla(202, 100%, 27%,.9); font-family: nunito-sans!important; } Link to comment
tuanphan Posted March 25, 2020 Share Posted March 25, 2020 Add to Code Injection Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> // tuan 10mi // change tuanphan to text you want jQuery(function($){ $(".BlogList-filter").html(function() { return $(this).html().replace("Posts in", "tuan phan"); }); }); </script> kirstym 1 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
neal_bryant Posted April 12, 2022 Share Posted April 12, 2022 (edited) Hey @tuanphan sorry to resurrect an old thread. Thank you for the answer that you provided previously here. I'm using this approach to try and hide "Posts in" altogether and instead want to just show the category name. That's seems to be working in the SS preview, but on the live site "Posts in" still outputs on the first page load, but does disappear if you refresh the page. Is it possible that the footer code injection is being ignored on first load? I've tried adding it to the header instead of the footer and had the same issue. Any thoughts would be really appreciated if you have time to give it a quick look. Thanks, Neal Edited May 6, 2022 by neal_bryant Link to comment
tuanphan Posted April 18, 2022 Share Posted April 18, 2022 On 4/12/2022 at 7:00 PM, neal_bryant said: Hey @tuanphan sorry to resurrect an old thread. Thank you for the answer that you provided previously here. I'm using this approach to try and hide "Posts in" altogether and instead want to just show the category name. That's seems to be working in the SS preview, but on the live site "Posts in" still outputs on the first page load, but does disappear if you refresh the page. Is it possible that the footer code injection is being ignored on first load? I've tried adding it to the header instead of the footer and had the same issue. The site is available here: https://www.rhitrition.com/food/category/Breakfast and i'm using SS v7.0. Any thoughts would be really appreciated if you have time to give it a quick look. Thanks, Neal Hi, Try Design > Site Styles > Disable Ajax Loading 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
neal_bryant Posted April 20, 2022 Share Posted April 20, 2022 Ah yes that's worked perfectly. Thanks so much @tuanphan Have a good day! tuanphan 1 Link to comment
Naoms Posted April 25 Share Posted April 25 On 3/25/2020 at 2:32 AM, tuanphan said: Add to Code Injection Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> // tuan 10mi // change tuanphan to text you want jQuery(function($){ $(".BlogList-filter").html(function() { return $(this).html().replace("Posts in", "tuan phan"); }); }); </script> Hi Tuanphan, I tried this code for the event listing by changing this - $(".EventList-filter").html(function() { However, did not work. Was worth a shot- ha ha. #1. to have "Filtering by" change to "Events in" #2. I was hoping to shift this text above the grid to not break the grid format of the events listing too. Thank you very much! Hi t Link to comment
tuanphan Posted April 27 Share Posted April 27 On 4/25/2024 at 11:11 PM, Naoms said: Hi Tuanphan, I tried this code for the event listing by changing this - $(".EventList-filter").html(function() { However, did not work. Was worth a shot- ha ha. #1. to have "Filtering by" change to "Events in" #2. I was hoping to shift this text above the grid to not break the grid format of the events listing too. Thank you very much! Hi t Can you share link to this page? I can check 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
Naoms Posted May 28 Share Posted May 28 On 4/27/2024 at 9:21 AM, tuanphan said: Can you share link to this page? I can check easier https://www.laf-uk.com/ Link to comment
tuanphan Posted May 31 Share Posted May 31 On 5/29/2024 at 6:27 AM, Naoms said: https://www.laf-uk.com/ Can you share link to exact page? I don't see problem on this link https://www.laf-uk.com/ 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