[Resolved] Same content showing on all pages – Hook is solution?

Home Forums Support [Resolved] Same content showing on all pages – Hook is solution?

Home Forums Support Same content showing on all pages – Hook is solution?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #933535
    fabiosilva

    I have a content section (with content and full-width background image) that needs to appear throughout the site.

    Instead of creating page by page (copy and paste), it’s possible create any wook element to make this appear on all website?

    Thank you

    #933545
    David
    Staff
    Customer Support

    Hi there,

    a Hook is the best method for adding content throughout the site.
    How is this ‘content’ created ? As it will need to be added using HTML to the Hook. Let me know

    #933569
    fabiosilva

    Hi, David,

    For example, I’ve some HTML content. Basically, I’ need to put this HTML code inside a full width container (and limited interior container) with background color.

    Maybe there is some specific code to do this.

    Thank you.

    #933580
    David
    Staff
    Customer Support

    Yes, this code give you the basics:

    <div class="custom-container">
        <div class="grid-container">
        <!-- your HTML in here -->
        </div>
    </div>

    The outer DIV custom-container can be full width. You can give it whatever class you want for stlying.
    The inner div grid-container class is what GP uses to set the container width set in the customizer.

    You can see the various hooks here, and which ones are full width.

    https://docs.generatepress.com/article/hooks-visual-guide/

    #933601
    fabiosilva

    GOD! It’s so simple!

    Thank you!

    #933618
    David
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.