• Hey and thank’s very much for this beautiful plugin!

    I would like to disable by default the link when i upload un image (so that when user click on slide image, it do not link on any page) but to keep by default the link for posts & pages ( so that if user click on slide post or page, it link to the post / page).

    I know there is a way to remove link manually but it will be horrible to check this option for each image I upload…

    Thank’s for reading me!

    Best,

    Anatole

    https://wordpress.org/plugins/smooth-slider/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello Anatole,

    As you don’t want to remove link manually. you can remove link by doing small change in core plugin file.

    Go to smooth-slider >> css >> skins >> default >> functions.php

    on line no. 126 you can find 'permalink' => $permalink in $img_args array. change it to 'permalink' => ''.

    Let me know in case of any issue.

    Thank you!
    Best Regards,
    Rahul

    Thread Starter Anatoli Stancioff

    (@manate)

    Thank’s for this quick answer Rahul,

    It’s well removing link but the problem is that it’s also removing link on posts / pages slides…

    Thank’s again, I hope you have a solution (I keep looking in function.php, maybe I’ll find the answer by myself).

    Best,

    Anatole

    Hi Anatole,

    I have created scenario on my local server. we are removing argument which passed to images. so it will not remove link to Post/Pages.

    Let me know which slider type you are using i.e custom slider, recent slider etc. and what changes you have made into functions.php.

    Regards,
    Rahul

    Thread Starter Anatoli Stancioff

    (@manate)

    Hey Rahul,

    I solved my problem!

    For anyone needing the same issue (or for you Rahul if you want to make a plugin update with the option to not link images by default):

    Do not change the line 126 but modify line 27:
    from if($sslider_nolink==’1′){

    to if($sslider_nolink==’1′ || get_post_type($post) == ‘attachment’){

    Thank’s again Rahul!

    Best,

    Anatole

    Hello Anatole,

    Glad to know that your problem is solved.

    But this will not work in case of recent or category slider. if you are using custom slider then it’s fine.

    Thanks!

    Best Regards,
    Rahul

    Thread Starter Anatoli Stancioff

    (@manate)

    Yes i am.

    Thank’s for the tips and advice!

    Best,

    Anatole

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘disable images links by default’ is closed to new replies.