Site logo

Archived topic

how to edit wordpress html source

12 replies · Started by david on May 7, 2019

Viewing posts 1–13 of 13

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

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?

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

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

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

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.

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 :)

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

Customization > Layout > Footer > Back to top button

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.

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

That's not possible, unfortunately :(

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

This archived topic is closed to new replies.