How to change the name for promoted articles?

Beantwortet

2 Kommentare

  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member of The Year - 2021

    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.

    0
  • Anton Van der meyden

    Ifra Saqlain

    Hi Ifra,

    Thank you for your help.

    Kind Regards,

    Anton

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk