Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1415355

    dreamseller188
    Participant

    Hi,

    I’m looking to have links on the images in my Block Grid. I’ve used the shortcode and have this code for the 3-up one. Wondering how to include a link for each image in this shortcode:

    [block_grid type=”three-up”] [block_grid_item] [image src=”http://yoursite.com/image.jpg” alt=”Place Alt Text Here” type=”thumbnail”] [/block_grid_item] [block_grid_item] [image src=”http://yoursite.com/image.jpg” alt=”Place Alt Text Here” type=”thumbnail”] [/block_grid_item] [block_grid_item] [image src=”http://yoursite.com/image.jpg” alt=”Place Alt Text Here” type=”thumbnail”] [/block_grid_item] [block_grid_item] [image src=”http://yoursite.com/image.jpg” alt=”Place Alt Text Here” type=”thumbnail”] [/block_grid_item] [block_grid_item] [image src=”http://yoursite.com/image.jpg” alt=”Place Alt Text Here” type=”thumbnail”] [/block_grid_item][block_grid_item] [image src=”http://yoursite.com/image.jpg” alt=”Place Alt Text Here” type=”thumbnail”] [/block_grid_item][/block_grid]

    I should probably specify that I’m looking for the link to be an on-page link to an anchor point on the same page. How do I create the anchor point and then link it up with each image in the Block Grid?

    Thanks!

    #1415425

    Joao
    Moderator

    Hi There,

    You need to wrap your image shortcodes in a <a>

    So it would be this

    
    [block_grid_item] <a href=#my-id-1"> [image src=”http://yoursite.com/image.jpg” alt=”Place Alt Text Here” type=”thumbnail”] </a>[/block_grid_item]
    
    

    Add a different ID to each section, for example ID> my-id-1

    Hope it helps

    Joao

    #1416324

    dreamseller188
    Participant

    Thanks! That did the trick. 🙂

    #1416563

    Prasant Rai
    Moderator

    You are most welcome. 🙂