How to change the name for promoted articles?
AnsweredHello,
I believe it is possible to change the name promoted articles on the homepage to Helpdesk Support for example?
I can see this on the edit code page on the home page but can someone please advise of the script you have to change it to and on what pages to make this change?
Thank you.
Kind Regards,
Anton
-
Hi Anton Van der meyden, you can change it on the home_page.hbs but if you want to change the title via JS code then just copy and paste it to your script.js file.
document.querySelector("h2.promoted-article").innerText = "WRITE YOUR TITLE HERE";
h2.promoted-article: Your class name may be different.You can directly change it on home_page.hbs file.
-
Hi Ifra,
Thank you for your help.
Kind Regards,
Anton
Please sign in to leave a comment.
2 Comments