[Resolved] Hook Above Both Left & Right Sidebar

Home Forums Support [Resolved] Hook Above Both Left & Right Sidebar

Home Forums Support Hook Above Both Left & Right Sidebar

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #921740
    Clayton

    Hey guys,

    I’m wondering if there is a hook I can access to insert some content above both the left and right sidebars. If so I can just use the Elements feature to insert what I need before both sidebars. In my case the sidebars with both be on the right side.

    Thanks

    #921746
    David
    Staff
    Customer Support

    Hi there,

    this Visual Guide shows you where all the main content hooks are, and yes one for each sidebar:

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

    #921748
    Clayton

    I’m trying to put content above both sidebars. In other words the width of the left and right sidebar together.

    Screenshot: https://imgur.com/a/1fprmpK

    #921753
    David
    Staff
    Customer Support

    You would probably have to use the inside_container hook wrap your content in a DIV and then throw some CSS at it to float it right and set its width.

    #921755
    Clayton

    I’ll give that a shot. Thanks David.

    #921759
    David
    Staff
    Customer Support

    You’re welcome – let us know how you get on.

    #921780
    Clayton

    For others who might bump into the same thing. I just wrapped my content in a div and applied the following style.

    text-align: center;
     margin-top: 20px;
     width: 35%;
     float: right;

    You’ll need to tweak on mobile and based on your needs but it works pretty well overall.

    #921803
    David
    Staff
    Customer Support

    Thanks for the feedback and sharing your solution.

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