[Resolved] how to edit wordpress html source

Home Forums Support [Resolved] how to edit wordpress html source

Home Forums Support how to edit wordpress html source

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #892164
    david

    Hi,
    I need to place

    in the header area to act as a top of page anchor, how can I access the html source code to do this.
    Thanks for any help
    David
    #892187
    David
    Staff
    Customer Support

    Hi there,

    if you want to insert some code somewhere then the best way is to use the Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    If you want the element to be inserted at the very top of the page then the before_header hook is the highest.

    May i ask what the anchor is for?

    #892229
    david

    Hi David, Thanks for your reply.
    At the bottom of the page I want a sticky clickable to return me to the top of the page, any advice appreciated, for instance I want a sticky clickable area to appear only after the user’s scrolled past the first screen full – any ideas?

    Thanks
    David

    #892288
    Leo
    Staff
    Customer Support

    Have you tried this?
    https://docs.generatepress.com/article/back-to-top-button/

    Let me know πŸ™‚

    #892468
    david

    Thanks Leo, perfect.
    Don’t know these little nuggets exist, until you ask – the right person!

    #892512
    david

    Hi, was thinking, be nice to have a GeneratePress cheat sheet so you could see all these hidden nuggets at a glance.

    #892957
    Leo
    Staff
    Customer Support

    That’s what the documentation is for:
    https://docs.generatepress.com/

    Glad I could help πŸ™‚

    #893156
    david

    Hi Leo, Think there’s a difference between documentation and cheat sheet, I wouldn’t have found “Back to top button” in the documentation if I wasn’t aware of its existence.

    #893169
    Leo
    Staff
    Customer Support

    I’m not sure what the cheat sheet should include as every user is looking for and missing different features.

    We are always happy to help here in the forum on though πŸ™‚

    #893181
    david

    Maybe start with listing all the menu / sub-menu items in one document:

    Customization > Layout > Footer > Back to top button

    #893209
    Leo
    Staff
    Customer Support

    Thanks for your suggestions πŸ™‚

    We will definitely consider it if this request comes up more often.

    For now, if there are any features you are wondering about, we are happy to help here in this forum.

    #893370
    david

    Would it be possible to specify a position to scroll up to that was before the page header.
    My header includes an image then a sticky menu bar, like to scroll up so only the menu bar appears at the top and the image remains hidden.
    Thanks for your help
    David

    #893383
    Leo
    Staff
    Customer Support

    That’s not possible, unfortunately πŸ™

    All the possible adjustments are listed in the doc page above.

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