Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #409655

    Can this field in Media Upload dialog come from Enfold?

    <input type=”text” class=”text” id=”attachments-2025-av-custom-link” name=”attachments[2025][av-custom-link]” value=””>

    If yes, could you please tell me how to remove – not hide – this field?

    Thank you.

    #410010

    Hey unavailable!

    Try adding this to the bottom of your functions.php file.

    add_action( 'init', 'enfold_customization_remove_custom_link' );
    function enfold_customization_remove_custom_link() {
    	remove_filter( 'attachment_fields_to_edit', 'admin_attachment_field_media_author_credit', 10, 2 );
    }

    Cheers!
    Elliott

    • This reply was modified 9 years, 8 months ago by Elliott.
    #410018

    Thank you. I commented everything in /enfold/config-templatebuilder/avia-template-builder/php/media.class.php from line 78 down.
    Nothing broke. Phew.
    But your solution is better, of course.

    • This reply was modified 9 years, 8 months ago by unavailable.
    #410305

    Hey!

    Glad you got it fixed. Please let us know if you have any other questions.

    Regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.