• pixelpublic

    (@pixelpublic)


    Hello!
    Nice plugin! I’m wondering if there is a way to add a “target=”_blank” for any file links. I found the fucntion in acf_vc_helper.php where I can add this manually but with a plugin update this will be overwritten. Does anybody has an idea how to add the target=”_blank” without editing the plugin’s files?

    Regards
    Nicolas

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Frederik Rosendahl-Kaa

    (@frederik-rosendahl-kaa)

    Hi @pixelpublic,

    What version of the plugin are you using?
    For in version 1.8.0 of the plugin I should have added this feature for the file field.

    And you do not have to overwrite the file as filter hooks are created for each field output.

    add_filter('acfvc_file','acfvc8292_change_file_field_output',11,3);
    function acfvc8292_change_file_field_output( $output, $field, $post_id ) {
    	return $output;
    }
    Thread Starter pixelpublic

    (@pixelpublic)

    Hello @frederik-rosendahl-kaa,

    thanks for the feedback. I updated to 1.81 but I cannot find the setting mentioned.
    Where can I find it?
    Nicolas

    Plugin Author Frederik Rosendahl-Kaa

    (@frederik-rosendahl-kaa)

    Hi @pixelpublic,

    You should be able to see the setting on the acf-vc integrator element.

    What you need to do is open settings on the element and at the top of the window there are some tabs and one is called File field and within that tab there is a dropdown field called Link target and there you can choose _blank.

    I have taken a screenshot of where you should be able to find the settings https://postimg.cc/RJc8Sqsg

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Open File links with target=”_blank”’ is closed to new replies.