How can I add a keyword to the H1 tag on Debut theme homepage?

Hi all,

I’d like to add an H1 tag with a keyword to the homepage of my website. I am on Debut Theme.

Currently, the H1 Tag reads:

{{ section.settings.title | escape }}

Is there a way to add a keyword into this line of code?

Thanks,

Lauren

Hi @Aysiya ,

Yes we can add the keywords in title by customizing the code.

The following change to the code you provided should do the trick (swap out the bolded text with the exact title you want to display):

{% if template.name == "index" %}**My Custom Title Goes Here**{% else %}{{ section.settings.title | escape }}{% endif %}

1 Like

@P1Commerce really helpful, thanks so much!

1 Like