- This topic has 7 replies, 4 voices, and was last updated 2 years, 2 months ago by Ying.
-
AuthorPosts
-
August 6, 2022 at 4:21 am #2305004Ella
Hey, not a major issue but just wondering if this indicates I need to update my theme or something?
As on here: https://wordpress-623989-2736800.cloudwaysapps.com/ The “Register Your Interest” button on the bottom banner – I selected a colour for the text and whatever I selected it as, it was still not showing and only showing in white. I then deleted it and created another one – selecting the button to be white, with black text, and now it seems to have pink text on white… So at least it’s now readable but it’s not what I wanted and I don’t know why it’s happening.
I’ve updated to the latest WordPress and that’s not made a difference.
What else should I try please?
Thanks,
EllaAugust 6, 2022 at 3:08 pm #2305390LeoStaffCustomer SupportHi there,
Can you try creating the button with GB’s Buttons block?
https://docs.generateblocks.com/article/buttons-overview/The current button is created with WP’s core button block which doesn’t offer the same options and not nearly as good:
https://wordpress.org/support/article/button-block/Let me know if this helps 🙂
August 7, 2022 at 6:49 am #2305759EllaI could try it but it would mean changing all of the other buttons on the site to match that one then, and I’ve had no issues with any of the others! They’ve all been working perfectly. Is there not anything else I can try? It’s not like a glitch or anything?
Thanks,
EllaAugust 7, 2022 at 6:34 pm #2306244Fernando Customer SupportHi Ella,
The color of that Block is being changed in Appearance > Customize > Colors. Try Content > Link or Body > Link colors.
We can try altering it with CSS instead. Add
my-color
to the CSS class list of the block in its block settings. Then, add this CSS in Customize > Additional CSS:.my-color { color: #000 !important; }
Replace the color value to your preference.
August 8, 2022 at 1:56 am #2306504EllaHi Fernando, thanks for getting back to me. The black colour code is #000000 so I kept it as that and added the above code in, but it didn’t do anything. I also tried updating it on Appearance – Customise – Colors and changed it under button text colour. It worked in the fact that it changed any other button colours from white to black, but they actually need to be white anyway, so I swapped it back. It still didn’t update the colour of the button on the homepage however, even when changing these, so I think we need to stick with the code route, but perhaps try different code?
Thanks,
EllaAugust 8, 2022 at 8:42 am #2307009YingStaffCustomer SupportHi Ella,
In order to make Fernando’s CSS work, you need to add the
my-color
class to the button block first.
https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/I noticed that all the buttons on your homepage are built with Buttons block from the GenerateBlocks plugin, only this one is built with WP core Buttons block.
So can you try using the Buttons block from GB instead?
August 8, 2022 at 10:01 am #2307093EllaThe additional CSC attached to that element is
is-style-fill
I don’t know where this is coming from or if it was making a difference?I deleted it and added my-color
then went onto customise – additional CSC and added:
.my-color {
color: #000 !important;
}… and that’s still not worked.
See: https://wordpress-623989-2736800.cloudwaysapps.com/ now.
I also tried adding the other button option but as you’ll see – I really don’t like it. You can’t curve the box. You can’t centre the box (without creating columns presumably). I really just want to get this one odd button fixed as the rest are working fine!
August 8, 2022 at 10:05 am #2307099YingStaffCustomer SupportI also tried adding the other button option but as you’ll see – I really don’t like it. You can’t curve the box. You can’t centre the box (without creating columns presumably)
The buttons block from GenerateBlocks can do all these, and all your other buttons are built with GB buttons block(they all have border-radius which means rounded corner).
The
is-style-fill
class is added by the WP buttons block.But if you prefer to use the WP buttons, go ahead 🙂
Try change the CSS to:
.my-color a { color: #000 !important; }
-
AuthorPosts
- You must be logged in to reply to this topic.