Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Dan Rossiter

    (@danrossiter)

    Hi Krzysztof,

    You’re not the first one to ask for this functionality and it’s near the top of the list of things to do, but as of now it is not yet supported.

    This functionality could be achieved with a bit of custom code using the built-in DG filters like so:

    function dg_icon_template($icon, $use_descriptions, $id) {
    	return str_replace('%link%', 'NEW URL HERE', $icon);
    }
    add_filter( 'dg_icon_template', 'dg_icon_template', 10, 3 );

    Thread Starter Krzysztof Kwasniewski

    (@kkwasniewskietechnologiepl)

    Hi

    Looks great, but please let me know to which file I should add this code?
    Thank you in advanced.

    Plugin Author Dan Rossiter

    (@danrossiter)

    Hi Krzysztof,

    If you don’t generally write PHP in your site development, then the best solution is probably the Code Snippets plugin. I’ve actually never used it, but it has good reviews and will allow you to insert arbitrary PHP like the above.

    Be sure to update the “NEW URL HERE” text before posting.

    -Dan

    Thread Starter Krzysztof Kwasniewski

    (@kkwasniewskietechnologiepl)

    Hi
    I find another solutions but your plugin works great. Thank you again

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom link for gallery’ is closed to new replies.