• Resolved matti87

    (@matti87)


    Hello,

    is there a chance to remove the “edit” and “remove” option for the “advanced link” in the frontend?

    best regards
    matti

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback. This settings are embed with the field and cannot be hidden using the UI. The easiest solution would be to add the following CSS code on the front-end:

    
    .acf-field-acfe-advanced-link .link-wrap .-pencil,
    .acf-field-acfe-advanced-link .link-wrap .-cancel{
        display:none;
    }
    

    The CSS solution will just hide the buttons. If you want to remove them from the page you could use the following Javascript code:

    
    (function($){
    
        if(typeof acf === 'undefined')
            return;
    
        acf.addAction('new_field/name=my_advanced_link', function(field){
    
            field.$control().find('.link-wrap .-pencil, .link-wrap .-cancel').remove();
    
        });
    
    })(jQuery);
    

    Hope it helps!

    Regards.

    Thread Starter matti87

    (@matti87)

    Ah, thank you very much.

    The CSS hook was also my idea, I hoped, there is another way to remove them. ??

    best regards! :))

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Advanced Link – link options in frontend?’ is closed to new replies.