Support

Account

Home Forums Feature Requests Customize the "add to gallery" button label

Solved

Customize the "add to gallery" button label

  • When a gallery field shows up in the edit post screen, there is the button “add to gallery” to let a user select images from the wordpress media frame.
    Would be very useful to have the ability to change the “add to gallery” button label.

    Often a user need to have a gallery field but not necessary because he is creating a gallery in frontend. Sometimes you can create a slider, for example with only 4 images, or you can do something else.

    In these case a wrong button label could confuse a user (usually the client): for example, the field show the title “Build your slider (select up to 4 images)” but the button that open the wp media frame has the label “Add to Gallery”, and not “Add to slider”.

    Please could you take this in consideration.
    It would be an important feature.
    Thank you very much in advance.

    • James

    • August 10, 2015 at 11:13 pm

    Hi @virgodesign

    Thanks for the feature request and the awesome description.

    The info has been passed on to Elliot and this feature should see its way into the plugin sometime soon.

  • Hi James,
    hope to see this feature in the next acf version.
    Are there any chances?

    • Elliot

    • October 13, 2015 at 10:08 am

    Hi @virgodesign

    Thanks for the feature request.
    I’ll add this to my list, but not sure when it would be added in.

    For now, please use some jQuery to modify the text like so:

    
    <?php 
    	
    add_action('acf/input/admin_footer', 'my_acf_admin_footer');
    
    function my_acf_admin_footer() {
    	
    	?>
    	<script type="text/javascript">
    	(function($) {
    		
    		$('.acf-field-54ae017167b45 a.add-attachment').text('Build your slider (select up to 4 images)');
    		
    	})(jQuery);	
    	</script>
    	<?php
    	
    }
    
    ?>
    
  • Ok, thank you very much for the suggestion!

    • wube

    • October 16, 2015 at 5:12 pm

    +1

    • B0yan

    • August 7, 2017 at 10:39 pm

    Another +1.

    More than 2 years have passed since the original request. I would love to have this option in the next version of ACF. Thanks!

    • andreu

    • February 8, 2019 at 12:43 am

    @elliot Please consider adding this as it is now more important than ever with the ability to create blocks. “Add to Gallery” is just too confusing for some clients when a given custom block is called something else (eg. Slider).

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.