• Resolved bryanhiggs

    (@bryanhiggs)


    I have set up my site, which uses the Nutmeg theme, so that the home page shows the latest posts, ordered from latest to oldest. Each post is a recipe with a featured image of the recipe. I’m happy with how it’s set up, with one exception:

    I want to add some welcoming text above the “Newest Recipes” header. I have not found any way to do this, short of editing the PHP, which I prefer not to do.

    I thought that I might be able to do this using this plugin, so I installed it, and activated it. Then I created a snippet: Auto Insert, Insert Before Content, Condition: Show if Type of page is Homepage. It has no effect.
    I’ve managed to get it to display if I use “Site wide Body”, although that places it above the header. I’ve tried other options such as Insert Before Post, and Insert Before paragraph, but they have no effect whatsoever.
    I’ve also tried conditional logic specifying the page URL, to no effect.

    I’d appreciate help on how to do this.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @bryanhiggs,

    In this case, Insert Before Content is not going to work as that is targeted at single pages/posts which display the post content (like you would have on an “About us” page, for example).

    I also looked at the theme and there’s no way to automatically insert a snippet before the “Newest Recipes” title as there is no hook there to connect to so if you want to display something in that specific place you’ll need to use a child theme to override the template.

    I wish there was a different way to do that but when it comes to specific templates there’s no way to have hooks in all the places.

    Thread Starter bryanhiggs

    (@bryanhiggs)

    Thank you a quick response, and taking the trouble to investigate. Appreciated!

    I guess I’ll have to figure out a different way to do it…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Inserting text above posts in home page latest posts page’ is closed to new replies.