Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #714754

    Hi,
    I’m using the masonry gallery with customed links. In the gallery print screens are showed from articles. The links lead to the original page of the article. How can I link to a new page so visitors don’t navigate away from the website?

    #715812

    Hey Kim,

    Please try adding this at the very end of your themes / child themes functions.php file:

    http://pastebin.com/sZ2J4T8K

    After copying the code please update your domain name in line

      jQuery("a[href^='http:']").not("[href*='YOUR-DOMAIN-NAME-HERE.com']").attr('target','_blank');

    Best regards,
    Vinay

    #717676

    Hi Vinay,

    Thanks for your response. I followed your instructions but I get another result. The pages of my main menu open in a different screen, which shouldn’t happen and the links of my masonry gallery still open on the same page.

    #717739

    Hi,

    Please replace YOUR-DOMAIN-NAME-HERE.com in Vinay’s code to your website’s link/url.

    Best regards,
    Nikko

    #717754

    Hi Nikko,

    I did this, but it doesn’t work.

    #718159

    Hi!

    Can you give us a temporary admin access and ftp access? so we can have a closer look why it’s not functioning as it should. Please place the details in the “private content” section when you reply so only moderators can see.

    Regards,
    Nikko

    #718223

    of course. thanks

    #720134

    Hi,

    We modified the code a bit. Please remove browser cache before checking the page.

    Best regards,
    Ismael

    #725290

    Hi,

    Sorry for the late response, but this one is solved. Thanks a lot!

    #725299

    Hey!

    Glad we could help :)

    Best regards,
    Nikko

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘masonry gallery with customed links’ is closed to new replies.