Archived topic
Flash sale top container
3 replies · Started by Michael on January 5, 2021
Hi guys
I see an orange top banner on generatepress.com right now (Happy New Year...) and I wonder:
How it that done within GP?
I see there is a CSS class "flash-sale" showing and I wonder if this is a feature within GeneratePress, Gutenberg or WooCommerce and how to achieve something like this?
Thanks in advance
Michael
Hi Michael,
It can be built with a hook element, choose generate_before_header, then add some CSS to style it.
https://docs.generatepress.com/article/hooks-element-overview/
If you are not very familiar with html, then Block element (Block type: hook, Hook: generate_before_header) will be another and better option, it's like the visual version of hook element. It works even smoother with our Generateblocks plugin as block editor.
https://generateblocks.com/
https://docs.generatepress.com/article/block-element-overview/
Let me know if you need further assistance while building it.
Hi Ying
Amazing - that was exactly what I was looking for.
Thanks a lot for your support and the links you posted.
I could achieve exactly what I wanted. You may close this thread please.
Thanks and have a great day!
Michael
You are welcome!
Very glad to hear that from you :)