Site logo

Archived topic

Targeting single posts Generate Block Buttons

3 replies · Started by Erika on April 18, 2021

Viewing posts 1–4 of 4

Hi there,

On the single blog pages I have changed the css for links "a" within .inside-article. Unfortunately it affects also the buttons and I can´t figure out how to target these buttons to give the button text the original color.
The goal was to set all links to green with an underline if hovered within the content area without changing the buttons.

Also the css changes the link-color in the footer which it should actually not. Any idea why and how to solve?

Thanks, Erika

Hi Erika,

Are you referring to the blog page or the single post page?

If you are talking about the read more button, try this selector: a:not(.read-more)

You could google ":not css" to learn more about it.

Let me know :)

Hi Ying,

it was the single post page and I meant really the buttons. Your idea was good, but I could not exclude the buttons with this selector. Instead I added a few line and targeted the gb-button-wrapper class, which solved the case. Can it be that the button in Generate Blocks behave slightly different than simple buttons?

Anyhow, this issue is solved. Thanks for looking!

Erika

Glad to hear that you figured it out :)

You can set different colors for GB buttons in the block editor, if you leave them blank, the button will inherit the customizer settings.

This archived topic is closed to new replies.