- This topic has 15 replies, 4 voices, and was last updated 1 year, 7 months ago by
David.
-
AuthorPosts
-
November 1, 2020 at 5:49 am #1513298
Sanu Kumar
How to show a discount link same like GP is using for HALLOWEEN.
I tried but it is not looking good.
November 1, 2020 at 8:02 am #1513502David
StaffCustomer SupportHi there
try using the GenerateBlocks plugin:
https://wordpress.org/plugins/generateblocks/
Then create your top bar with the Block Element:
https://docs.generatepress.com/article/block-element-overview/
You can set the Block Element to Hook and choose the
generate_before_header
hookDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 1, 2020 at 10:02 am #1513607Sanu Kumar
I did what you said but there is a gap between top bar and header, how to remove that gap
November 1, 2020 at 10:50 am #1513654Leo
StaffCustomer SupportCan you clear and disable the caching plugin so we can take a closer look at the code?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 1, 2020 at 7:44 pm #1513951Sanu Kumar
disabled
November 1, 2020 at 9:04 pm #1513981Elvin
StaffCustomer SupportHi,
I did what you said but there is a gap between top bar and header, how to remove that gap
The gap added was a default margin-bottom added to the GB element. To remove that, you can check the block element you’ve added on the top bar and remove its default 20px margin-bottom on the Spacing settings of the headline block.
Or, you can add this CSS code:
.gb-headline-wrapper.gb-headline-wrapper-942baf85 { margin-bottom: 0; }
A wise man once said:
"Have you cleared your cache?"November 1, 2020 at 11:39 pm #1514056Sanu Kumar
It is not working
November 2, 2020 at 12:25 am #1514073Elvin
StaffCustomer SupportIt is not working
Can you add the url to the page in question again? So we could re-check which element is adding it. Thank you.
A wise man once said:
"Have you cleared your cache?"November 2, 2020 at 12:44 am #1514083November 2, 2020 at 1:39 am #1514123Elvin
StaffCustomer SupportThanks,
This should work:
.gb-headline-wrapper-ef21d474{ margin-bottom: 0; }
If it doesn’t, can you add a unique ID or CSS class to your GenerateBlocks inserted as the top bar?
So we could use it as the css selector to remove the
margin-bottom:2em
that’s causing the gap as shown here: https://share.getcloudapp.com/Blu1vNy0Once you’ve added a unique ID or class on it, we can do something like this example CSS code to remove the gap.
#your-unique-id{ margin-bottom: 0; }
or.your-unique-class{ margin-bottom: 0; }
A wise man once said:
"Have you cleared your cache?"November 17, 2020 at 7:25 am #1534846Sanu Kumar
Again, there is a gap between header and top bar.
I am already using this CSS
.gb-headline-wrapper-ef21d474{ margin-bottom: 0; }
November 17, 2020 at 11:53 am #1535182Leo
StaffCustomer SupportCan you clear and disable the caching plugin so we can take a closer look at the code?
You shouldn’t need CSS when using GB.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 18, 2020 at 4:11 am #1535860Sanu Kumar
WP Rocket disabled
November 18, 2020 at 6:03 am #1535975David
StaffCustomer SupportHi there,
remove the CSS – as that should not be required.
Edit your Headline block, in the Settings > Spacing select the Bottom Margin and enter0
into that value. This will override the themes H2 bottom margin.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 18, 2020 at 6:25 am #1536003Sanu Kumar
Okay and do I know how to give a dotted line just below the top bar?
-
AuthorPosts
- You must be logged in to reply to this topic.