I refer to the article https://docs.generatepress.com/article/hooks-visual-guide/, may I know how I can add a banner beside the site logo? (see the screenshot from Private information), it looks not like the generate_before_logo_hook or generate_after_logo_hook, please advise how I can do that.
you can use a Hook Element ( for HTML ) or a Block Element ( using Block editor ) both found in Appearance > Elements, and select the after_logo hook to add your content in that place. Make sure to set the Elements > Display Rules.
The hooks in the Visual guide just display the code order not necessarily where it is displayed, it may require a little CSS to position your banner. If you can add it to your site and share a link to it i can advise.
How can I ensure that the Elements be shown on the 404 page the same as the normal page?
I have an element hook after_logo ( see Elements setting ) including the 404 page, but don’t know how I can showed the advertisement banner on the 404 page.