Support » Plugin: Gutenberg » Is it possible add url to columns block or group block?

  • Hi,

    Is it possible add url to columns block or group block?

    Let’s say I have a columns block with two columns, one column is populated
    with a foto, the other with heading and paragraph. Since all elements
    will have the same url attached to them I would like to add hyperlink
    to whole column block – whole div would be clickable, there also
    would be much less code in html source.

    Linking whole div is pretty common solution in todays web, I don’t see a straightforward way to do this in Guetnberg. Am I just missing
    something, or is there any hack to do it?

    Thanks for help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’d love a way to do this as well. For right now, I think I’m going to have to do it with a ACF Pro block. But it sure would be nice if the block editor would provide fields for these “grouping” elements to support a link.

    MartinLeclercq

    (@martinleclercq)

    yes, that would be very useful. A workaround is also very appreciated!

    Hello,

    I just made it like that (in a visual WordPress editor):

    [other blocks]
    [group] (visual editor)
      [html] (HTML editor) <a href="example.com">
      [paragraph]  (visual editor) 'some text'
      [image] (visual editor) 'example.com/image.jpg'
      [html] (HTML editor) </a>
    <!-- End of group -->
    [other blocks]

    It works like a charm (for now;)

    Wish you a happy day,

    Igor

    @igorbeuermann That was very useful, hope they make a cleaner way to do a wrapper link

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.