• Hi there,

    Could you please help me. i m trying to add a nofollow to the button block (not the CTA block). However, i m a bit confused as i know nothing about HTML and coding, So here is how the HTML looks like:

    <div style=”text-align:center” class=”wp-block-atomic-blocks-ab-button ab-block-button”>Essayer infomaniak</div>

    Here is what i do to add no follow:

    <div style=”text-align:center” class=”wp-block-atomic-blocks-ab-button ab-block-button”>essayer infomaniak</div>

    When i do that, it says there is an issue and the button disappears… when i preview the page, the button still there on the front end but not the backend!

    Am i doing this right?

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Elkero

    (@webflouze)

    sorry it does not show the code above! i m going to try again:

    here is how it looks like:
    <div style="text-align:center" class="wp-block-atomic-blocks-ab-button ab-block-button"><a href="https://www.infomaniak.com/fr" class="ab-button ab-button-shape-rounded ab-button-size-medium" style="color:#ffffff;background-color:#10a0c0">essayer infomaniak</a></div>

    Here is what i do:

    <div style="text-align:center" class="wp-block-atomic-blocks-ab-button ab-block-button"><a rel="nofollow" href="https://www.infomaniak.com/fr" class="ab-button ab-button-shape-rounded ab-button-size-medium" style="color:#ffffff;background-color:#10a0c0">essayer infomaniak</a></div>

    Is this correct? if yes, then why does is says there is an error on the backend and i cant see the button?

    Note: i have also tried to add the rel=”nofollow” after the link, the issue still persists,

    • This reply was modified 4 years, 8 months ago by Elkero.
    • This reply was modified 4 years, 8 months ago by Elkero.
    Plugin Author atomicblocks

    (@atomicblocks)

    Hi there,

    Unfortunately, you can’t just change the HTML markup of a block like that because when you save the page, there is a content validation that takes place that compares the old content to the new content. If it doesn’t match the expected output of the block, it will break the block.

    I’ll put this in the issue backlog and get this fixed up in an upcoming version!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add nofollow to button (not CTA)’ is closed to new replies.