Site logo

Archived topic

Text with link on generate_after_footer_widget

5 replies · Started by Kévin on March 31, 2020

Viewing posts 1–6 of 6

Hello guys,

I want to put a centered text with a link (Conditions générales de vente) on the generate_after_footer_widgets hook but i don't know how to do it.

Thank's for your help.

Best regards

Kévin Didot

Hi there,

try:

1. Create a new Hook element and select the after_footer_widgets hook and set your Display Rules.
https://docs.generatepress.com/article/hooks-element-overview/

2. Add this to the Hook content:

<div class="grid-container after-footer-container">
    <a href="url">link text</a>
</div>

Then you can add some CSS to the site to style it and center the text.

.after-footer-container {
    padding: 20px;
    text-align: center;
}

Hey thank you David,

I did all what you said, but nothing happens.

I applied the Hook to the Entire site.

Weird.

I think that might be because you aren't using any footer widgets so that hook is not activated.

Can you try before_footer_content hook?

Thank you Leo !

I succeed to do what i wanted :).

See you.

No problem :)

This archived topic is closed to new replies.