-
cmerrick
Is there a way to set the visited link color? If I create a button that links somewhere (using an ‘a’ tag), the button’s a:visited color gets overridden by the stylesheet (so it’s the same as a visited text link). Which means I cannot have a dark button background color at all. It did not used to work this way. I’ve made hundreds of GB buttons before and it’s only since the new version that I cannot do this.
-
Hi there,
To set style for
:visited
state, select the button, open the Styels panel, click the More button on the top of the right sidebar, add a new selector:visited
, toggle the compound option.Here’s a screen record for your reference:
https://app.screencast.com/t30JFcGotoe7y -
cmerrick
Hi, there is no option to add a new selector. I says I can in the text above the selectors, but the “New” button is missing.
Screenshot: https://www.foolsmission.org/wp-content/uploads/2025/05/no-add-selector.png
As you can see from this screenshot I just took from the site’s plugin page, I have both GB free and Pro activated:
https://www.foolsmission.org/wp-content/uploads/2025/05/GB-activated.png
-
What versions of GB and GB Pro plugin are you using?
-
cmerrick
Ah, it’s GB Pro 1.7 and I guess I need to update to 2. I’ll try that now.
I had uploaded an older version hoping the interface would remain the old way because I hate the version 2 interface with the fire of a thousand suns. Like, my heart is broken by what has been done to my favorite plugin. But it doesn’t seem to work that way.
Okay I updated to v2 and now I see the Add+ button. Thank you for the pointer.
If you could direct me to the PHP filter that restores the v1 interface, I would be extremely grateful. The blog post about the update mentioned such a thing, but then didn’t actually provide the filter.
Thank you again.
-
You are welcome 🙂
Try this PHP snippet to switch back to v1:
add_filter( 'option_gb_use_v1_blocks', '__return_true' );
-
cmerrick
Thank you very much for the snippet; unfortunately, adding that line to the end of my functions.php file seems to have had no effect, even after clearing the cache, for either new or existing blocks. I confirmed in the Theme File Editor that the change to the functions.php file did upload correctly, it just isn’t doing anything.
Now that I know the filter name, I was able to find the documentation on updating from v1 to v2, but no such guide seems to exist for people who want to switch a new installation back to the v1 interface. Is there more information available about that?
-
Alvind
Hi there,
unfortunately, adding that line to the end of my functions.php file seems to have had no effect, even after clearing the cache
If you go to GenerateBlocks > Settings in the admin dashboard, do you see a ‘Use version 1 blocks’ toggle? If so, that means the snippet is working.
…but no such guide seems to exist for people who want to switch a new installation back to the v1 interface. Is there more information available about that?
In this case, you can use the same filter—it works the same.
-
cmerrick
No, I do not see a toggle with that label anywhere in the Generateblocks settings page. Just a place for the license key, Receive updates toggle, Global max-width, CSS print method, and the Regenerate CSS button.
This is a screenshot from the Theme File Editor showing that I pasted the code exactly as presented into the functions.php file: https://www.foolsmission.org/wp-content/uploads/2025/05/snippet-in-functions.png
-
Alvind
Try replacing the filter with this snippet:
function activate_generateblocks_v1() { if (get_option('gb_use_v1_blocks', null) === null) { add_option('gb_use_v1_blocks', true); } else if (! generateblocks_use_v1_blocks()) { update_option('gb_use_v1_blocks', true); } } add_action('init', 'activate_generateblocks_v1');
-
cmerrick
That did it! Thank you SO much. It looks like it only applies to new blocks, but I can work with that. This may save my ability (or at least desire) to use this plugin.
Below I’m pasting some feedback I wrote about using the v2 interface. This is for passing along to whoever takes feedback on this sort of thing, and isn’t a commentary on this support ticket. Can you please send this to the right team, or let me know who I should send it to?
Thank you again for the help, you have saved the day.
Feedback on the change to Generateblocks version 2
I have to say, I’m pretty heartbroken by what I see in version 2. Accessibility upgrades are great. The interface itself is such a huge step backward. Everything is harder to find, looks busier, and most importantly takes longer. Just a couple of examples:
It used to be colors were all right there: text, link, hover — super fast. Now I have to go to typography and pick a color, then scroll back up and use a whole separate menu to get to links, scroll back down to typography, set the color, and then do it all over again for the hover state. And that’s without getting into the process for adding a :visited state (as I now have to do for buttons), which I never had to do at all under the old version. I have timed myself and I can set all the button colors I need in v1 in under 10 seconds; in v2 it took almost 50 seconds. That may improve with use but it’s never going to be better than 3 or 4 times slower than v1.
I used to be able to add a custom background size (I often need a percentage, vw or vh) by just typing in a box. It was awesomely fast and efficient. Now I have to click a tiny menu icon, then toggle on “use custom”, then add the size, and then if I want to adjust that later, I can’t even update the existing custom size, I have to do that little dance *again*. What was wrong with the plain text box? Maybe you’re trying to idiot-proof that form field, but I take full responsibility for the results if I type “banana” into the background size box, I do not need it on lockdown. If the input is sanitized then I don’t understand the problem with letting people just write in the value they need.
Things I do a hundred times a day or more now take *significantly* longer than before. It may not seem like much when you’re doing it once, but it really adds up when you’re doing design work.
Honestly this update has utterly ruined the experience of using this plugin, which had been the best WP plugin in the whole ecosystem. I am so relieved that v1 is still supported, but my fear is that could go away at any point. I really hope you will maintain v1 support as long as possible, and I strongly urge you to reconsider some of these changes with an eye not just to adding in more functions but with much greater consideration for the speed and efficiently of the interface from the web designer’s and page maintainer’s perspective. Thank you for reading my feedback.
-
David
Hi there,
thanks for taking the time to provide detailed feedback , it is much appreciated and we will consider these points in our continuous reviews.
I would like to share some docs that provide some handy workflow tools which may help with some of the issues you’re experiencing:
Search and Filter styles, to quickly show just the properties you need:
https://learn.generatepress.com/blocks/block-guide/getting-started-generateblocks/the-blocks-styles/#styles-search-and-filterGlobal Styles, if you find yourself updating many receptive items such as link colors, then create a global style:
https://learn.generatepress.com/blocks/block-guide/getting-started-generateblocks/generateblocks-pro/global-styles/Copy and Paste styles if Global Styles are not required:
https://learn.generatepress.com/blocks/toolbar-buttons/copy-paste-clear-styles/ -
cmerrick
Hi again… I added the code snippet to a new development site, then decided to give v2 another try under the hopes it would offer more control over breakpoints. I commented out the snippet using /* …. */, started a new post and added a container… and I’m still getting v1. I tried a hard refresh, then I tried waiting overnight in case it was a persistent caching issue. I can look at the functions.php file in the theme file editor and confirm that the v1 code is commented out, but now it seems to be stuck on only using v1. Any idea what’s going on?
(Thank you for the suggestions re Global styles etc. My problem is that as a designer, I spend a lot of time making different styles for my clients to choose among. So having a repeatable style is great when I get to the build process — I use a lot of block patterns — but it takes a lot longer to set up a new, different style in v2.)
-
Alvind
If you go to GenerateBlocks > Settings, do you see the Use version 1 blocks option enabled? If it is, you’ll need to disable it and save the settings.
-
cmerrick
Ah, that did it. So I am sure I understand correctly — adding the functions.php snippet toggled that on, but to turn it off I need to remove the snippet and toggle it back off again — have I got that right?
Many thanks.
-
Alvind
Yes, that’s correct!
- You must be logged in to reply to this topic.