rel=”nofollow” on button blocks has a flaw
-
I have a test button where I’ve added the rel=”nofollow” option on the link on this page: https://lzz.d0c.myftpupload.com/biography/
If you inspect the code, there is a space between the ” and nofollow ugc (i.e. rel=” nofollow”. I’m wondering if the core files can be edited to remove this space? Please note that when the nofollow ugc is applied to a basic text link – it renders correctly (the icon appears as expected – see the test link on this same page). But for some reason, this nofollow ugc code isn’t correct when applied to a button…
But, if you use the inspector tool in a browser to remove the space, the icon appears correctly as expected…
The blog I need help with is: (visible only to logged in users)
-
Hi there,
I believe this is a bug in a button block component. Unfortunately, as end users, we can’t edit the button core file directly. But, as a workaround, we can edit the particular button instance via the code editor view and make the necessary edits to the html code there.
You can access the view by clicking the vertical ellipsis icon at the top right corner of the Site editor and selecting Code editor.

I hope this helps.
-
I’ve opened an issue here and mentioned your post there. https://github.com/WordPress/gutenberg/issues/66300
- The topic ‘rel=”nofollow” on button blocks has a flaw’ is closed to new replies.