[Resolved] Text with link on generate_after_footer_widget

Home Forums Support [Resolved] Text with link on generate_after_footer_widget

Home Forums Support Text with link on generate_after_footer_widget

  • This topic has 5 replies, 3 voices, and was last updated 4 years ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1221681
    Kévin

    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

    #1221884
    David
    Staff
    Customer Support

    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;
    }
    #1222540
    Kévin

    Hey thank you David,

    I did all what you said, but nothing happens.

    I applied the Hook to the Entire site.

    Weird.

    #1222547
    Leo
    Staff
    Customer Support

    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?

    #1222682
    Kévin

    Thank you Leo !

    I succeed to do what i wanted :).

    See you.

    #1222689
    Leo
    Staff
    Customer Support

    No problem 🙂

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