• Resolved acefast

    (@acefast)


    I realise that you can create dynamic text links that are built using data fed from the Google sheet but how about if I want an image to go to a dynamic link?

    On the page provided I have pics of devices that I would like to go use a dynamic URL to then go to a page for that particular type of device for the area I am targeting. Currently they all go to a single page which can work but I would prefer them to bit one for their own destination that I have created.

    Any ideas?

    Pro user, loving what this can do so far.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi.

    If you want to make an image as a link, just wrap an <img> tag into <a>
    Like this:

    <a href="{{mpg_product_link}}">
        <img src="{{mpg_product_image}}">
    </a>

    If you need some custom location for the link – just create additional column in a csv (source) file, and use values from the column where you need.

    Thread Starter acefast

    (@acefast)

    Hi there,

    I tried that but I am using visual composer and despite using a pre-constructed url direct from the Google sheet it doesn’t pull in the URl. It uses the page URL and then adds somethiong on the end.

    I use the shortcode {{mpg_Macbook-Repair}} and instead I get this…

    https://www.acefastservices.co.uk/apple-mac-repair-suffolk/%7B%7Bmpg_Macbook-Repair

    I am using a different URL than the original one posted as I am not publishing it. The above link is the template page but obviously you can see the result when using WPBakery Page Builder. It seems to not like a shortcode in the URL entry, right?

    Any suggestions?

    Thread Starter acefast

    (@acefast)

    Any ideas on the above?

    As I see, your source file have three columns (city, county and country), but there is no {{mpg_Macbook-Repair}}. So, this is might be a reason, why the shordcode shown “as is” without replacements.
    Also, as you can see, there is twice %7B than equivalent of {, but in the end missing close brackets }}, so take a look again, maybe there some syntax error

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dynamic image links’ is closed to new replies.