- This topic has 11 replies, 2 voices, and was last updated 4 years, 2 months ago by Leo.
-
AuthorPosts
-
February 13, 2020 at 1:54 pm #1164597Mathieu
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,
February 13, 2020 at 2:38 pm #1164619LeoStaffCustomer SupportHi 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 đ
February 13, 2020 at 3:18 pm #1164635MathieuNice 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,
February 13, 2020 at 6:15 pm #1164717LeoStaffCustomer SupportCan you clear and disable W3 Total Cache first?
February 13, 2020 at 6:37 pm #1164729MathieuDone. Still the same.
February 13, 2020 at 6:45 pm #1164732LeoStaffCustomer SupportMight be something going on with
generate_before_main_content
hook and when masonry is used.Try
after_header
instead.February 14, 2020 at 8:10 am #1165460MathieuWell, 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 đ
February 14, 2020 at 8:32 am #1165490LeoStaffCustomer SupportCan you copy and paste the HTML content you are adding here?
Please highlight the code and click the
code
button above.February 14, 2020 at 8:39 am #1165504Mathieu<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>
February 14, 2020 at 4:19 pm #1165758LeoStaffCustomer SupportCan you try setting the priority to something like 5?
Let me know đ
February 15, 2020 at 5:26 am #1166068MathieuOh yeah it works. Thank you.
February 15, 2020 at 8:13 am #1166301LeoStaffCustomer SupportNo problem đ
-
AuthorPosts
- You must be logged in to reply to this topic.