• Hello
    I need to add a couple of words on my home page above the recent post div (text above div.ast-row)
    And text should display only on the homepage.

    I am using the Astra child theme. Can you tell me where I should modify the code?

    • This topic was modified 3 years, 11 months ago by vikral.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @vikral,

    You can do that using Astra’s Hooks which you can see in this doc. Or you can also use a plugin like Show Hooks to find the proper Hook.

    I hope it will help.

    Kind regards,
    Herman ??

    Thread Starter vikral

    (@vikral)

    Hi, I found a hook astra_content_top but that hook is being displayed on every page.

    but I want the text to be displayed only on the homepage, above the latest posts div.

    • This reply was modified 3 years, 10 months ago by vikral.

    Hi @vikral,

    Since the feature to render a snippet on a specific condition is not available on the Astra free, then you need to modify the code so it will appear only on the homepage. Using is_home I believe.

    I hope it helps.

    Kind regards,
    Herman ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add a text in the home page’ is closed to new replies.