JoaoFreire Posted October 9 Posted October 9 Good morning, I'm trying to edit the titles of my portfolio block, by injecting some code. (image below) Once I publish the changes I've done, all the coding that was added shows on the published page, but the commands don't work. (image below) Can anyone please give me some help? Thank you, João Freire
Spark-Plugin Posted October 9 Posted October 9 Hi @JoaoFreire, can you please share your website, the code you are trying to add and where you’re actually adding the code? Thanks! - Answered by Iuno from sparkplugin.com
JoaoFreire Posted October 9 Author Posted October 9 Hello @Spark-Plugin, this is the website: https://www.comporta.art/ , you'll find the portfolio at the end of the homepage. At this moment I had to delete the codes because the site is already online. This is the code I'm adding: "Untitled <br> <strong> José Predro Croft </strong> <br> 2021" If it's better to have the codes published let me know and I'll do it. Thank you,
Spark-Plugin Posted October 10 Posted October 10 @JoaoFreire, thanks! What exactly are you trying to achieve, bold the title? 🙂 - Answered by Iuno from sparkplugin.com
JoaoFreire Posted October 10 Author Posted October 10 (edited) As shown in this image, the goal is for the title to stay like this (first image in the portfolio block): Right now it is: "Untitled - José Pedro Croft, 2021" And I need it to stay like this: "Untitled José Pedro Croft 2021" Thank you, Edited October 10 by JoaoFreire
Solution Spark-Plugin Posted October 10 Solution Posted October 10 Hi @JoaoFreire! Thanks for your clarification. You will need to add this code: Navigate to Pages > Website Tools > Code Injection. Paste the code into the FOOTER editor. Hit Save and you’re done <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $(".list-item-content__title").each(function(){ $(this).html($(this).text()); }); }); </script> This should work right away, please check the screenshot to see the final result. And let me know if it helps! - Answered by Iuno from sparkplugin.com
JoaoFreire Posted October 10 Author Posted October 10 Thank you very much! The problem is solved and working on perfection. Just needed to add the HTML code to finish the setup. Thank you once again. Spark-Plugin 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment