How to disable Lightbox at fileupload fields?

This topic contains 5 replies, has 4 voices, and was last updated by  Naveen Giri 4 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #538842

    Daniel
    Lifetime Member
    Post count: 11

    Hello,

    i want to link a fileupload field to a new window target=”_blank”, actually it opens always in the lightbox.
    What is the shortcode handle? link_to= doesn´t work, lightbox=0 neither.

    Can i disable the lightbox completely in GD?

    Thanks
    Daniel

    #538851

    Alex Rollin
    Moderator
    Post count: 27815
    #538973

    Kor
    Moderator
    Post count: 16516

    Hi Daniel,

    If you need further assistance, could you share your Website WP admin access here in private reply? I’d like to check your GD setup.

    #539503

    Daniel
    Lifetime Member
    Post count: 11

    Hi Alex,
    Hi Kor,

    i don´t get it to work … i change the snippet from alex to my field, but it doen´t work.

    perhaps you can have a look into it Kor?

    #539504

    Daniel
    Lifetime Member
    Post count: 11
    This reply has been marked as private.
    #539796

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Daniel,

    Please use the following snippet to remove the popup from the file upload field.

    
    add_action( 'wp_head', function () { ?>
    <script>
    	/* write your JavaScript code here */
    jQuery(document).ready(function(){
       jQuery('.geodir-custom-field-file a').removeAttr('data-lity');
    });
    </script>
    <?php } );
    

    Regards
    Naveen

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount