Header – Fixed/Absolute Position

Home Forums Technical Theme Support STAX Theme Header – Fixed/Absolute Position

Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #462874
    Lewis Hackfath
    Participant

    Hello,

    I am using the stax theme and have created a custom header template part as the client wants to display a number of different things in the header of their site (buttons, images etc). However to do this I was unable to use the “Header block”. Is there a way to set the custom header template part to use absolute positioning using an inbuilt CSS Class?

    thanks,

    Lewis

    #462943
    David Morgan
    Keymaster

    Hi Lewis,

    Thanks for reaching out! Yes, this is possible. The STAX theme has a .position-absolute class within the theme stylesheet. So, applying the “position-absolute” class to the new header within the Advanced block options should anchor the header to the top of the page.

    Let us know if this works.

    Thanks!

    #462947
    Lewis Hackfath
    Participant

    Hi David,

    Thanks for getting back to me.
    I’ve added that to the “additional classes” field on the “header” element and saved the changes.
    However when I scroll down on any page the header is not following.

    See attached Screenshot

    Attachments:
    You must be logged in to view attached files.
    #463102
    David Morgan
    Keymaster

    Hi Lewis,

    No problem. Can you provide a link to your website so I can inspect the code?

    Thanks!

    #463104
    Lewis Hackfath
    Participant
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.