Site logo

Archived topic

Sale bar above navigation

3 replies · Started by Ben on January 4, 2021

Viewing posts 1–4 of 4

Hi,
I love the yellow Sale bar on the GeneratePress site at the moment and want to implement something similar on my site. Can you please tell me how to do it? I'm guessing it's an Element but as much extra info you can give me the better :)
This is the bar I mean:
https://snipboard.io/anWNl1.jpg

Thanks and Happy New Year,
Ben

Hi there,

simplest way is:

1. Install the GenerateBlocks plugin:
https://wordpress.org/plugins/generateblocks/

This will give you in editor style controls to create a Container Block and the headline and button elements within it.

2. Create a New Block Element:

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

2.1 Build your 'sale bar' with GenerateBlocks.
2.2 Set the Hook to generate_before_header
2.3 Set the Display Rules to Entire Site.

Thank you, that's great :)

You're welcome

This archived topic is closed to new replies.