Support » Plugin: Media Library Assistant » Very nice to change Alt attribute to file name

  • Nice plugin congrats!
    I actually modify the code to bulk modify the alt tag of all the pics to the file name, but removing the ‘-‘. I think you may do that with some codes in the template: [+name_only+], but I din0t get it.
    I change the line 260 of the file class-mla-data-source.php
    $results['name_only'] = wptexturize( str_replace( '-', ' ', wptexturize( $pathinfo['filename'] )) );

    This work for normal wordpress site. But I have a multi-site and it is not working, it says “Error while saving the changes.”
    Any suggestions??
    Thanks in advance!! 🙂

Viewing 1 replies (of 1 total)
  • Plugin Author David Lingren



    Thanks for your positive review! Regarding your ALT Text/File Name question, please open up a topic in the MLA support forum so I can investigate further and respond there. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Very nice to change Alt attribute to file name’ is closed to new replies.