[Resolved] Add text to the homepage in a blog

Home Forums Support [Resolved] Add text to the homepage in a blog

Home Forums Support Add text to the homepage in a blog

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1164597
    Mathieu

    Hi,

    I would like to add a paragraph or two of text on the homepage of my blog. Just before the list of articles.

    Is it possible with the Element features or something else? I know I could hook myself but then I would have to go to the code to change it.

    Kindest regards,

    #1164619
    Leo
    Staff
    Customer Support

    Hi there,

    Is it possible with the Element features or something else?

    Yup – you can consider either header element or hook element depending on if you need the options in header element or not:
    https://docs.generatepress.com/article/header-element-overview/
    https://docs.generatepress.com/article/hooks-element-overview/

    Let me know if you need more info 🙂

    #1164635
    Mathieu

    Nice it is working. I had to use a custom hook “generate_before_main_content” and it is working on every page but on the homepage it does break the layout.

    Broken home : http://nouveauchef.quebecblogue.com/

    OK url : http://nouveauchef.quebecblogue.com/category/type-de-recette/

    Regards,

    #1164717
    Leo
    Staff
    Customer Support

    Can you clear and disable W3 Total Cache first?

    #1164729
    Mathieu

    Done. Still the same.

    #1164732
    Leo
    Staff
    Customer Support

    Might be something going on with generate_before_main_content hook and when masonry is used.

    Try after_header instead.

    #1165460
    Mathieu

    Well, I tried after_header and pretty much every other hook but it’s not in the blog content zone, it takes the whole page and it overlaps the sidebar.

    You’re right that it works without masonry but then it is still only on the homepage and the masonry is also on the archives page.

    There has to be a way to debug that 😉

    #1165490
    Leo
    Staff
    Customer Support

    Can you copy and paste the HTML content you are adding here?

    Please highlight the code and click the code button above.

    #1165504
    Mathieu
    <h2>
    Le livre de recettes faciles du Québec
    </h2>
    <p>
    Bienvenue sur le livre des recettes québécoises du Chef Cuisto,
    Ce site de recettes a Ă©tĂ© conçu dans le but de vous offrir des idĂ©es repas simple et rapide Ă  rĂ©aliser. Le Chef Cuisto n'a pas la prĂ©tention d'ĂȘtre un chef renommĂ© pour sa fine gastronomie, mais il est un chef amateur qui cuisine les recettes du QuĂ©bec.
    </p>
    <p>
    Mes idĂ©es recettes sont majoritairement composĂ© de recettes secrĂštes des meilleurs restaurants restaurants (St-Hubert, Tim Hortons, Pizza Hut, McDonald’s, etc..), de fast-food, de bacon (Plein de bacon), ainsi que des recettes faciles et rapides de tous les jours.
    </p>
    #1165758
    Leo
    Staff
    Customer Support

    Can you try setting the priority to something like 5?

    Let me know 🙂

    #1166068
    Mathieu

    Oh yeah it works. Thank you.

    #1166301
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.