Slider link/url opening to new window?

  • zaqwsxcderfv2

    #6200

    Hello all,

    Does anybody know how I can manage to have the links of the slider images open in a new window? I am using child theme and use Graphene page specific options to show images in the slider and to link to external sites.

    I did try to find a solution on this forum, but had no luck.

    Thanks!

    Zack

    Prasanna SP

    #33657

    Hacking theme core is not a good practice. But, here is the quick solution,

    Open theme-slider.php file (it’s in graphene/includes directory) and scroll to 158th line. And replace,

    <a href="<?php echo $slider_link_url; ?>"><?php echo $image; ?></a>

    with

    <a href="<?php echo $slider_link_url; ?>" target="_blank"><?php echo $image; ?></a>

    You’ll need to edit this whenever you update the theme. However let me check if it is a good idea to add option to open links in a new window.

    zaqwsxcderfv2

    #33658

    Thank you, Prasanna!

    This will do for now, as it resolves my “problem” for now until the next update.

    Best,

    Zack

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.