Title: mla_link_attributes
Last modified: August 24, 2016

---

# mla_link_attributes

 *  Resolved [luizeduardomga](https://wordpress.org/support/users/luizeduardomga/)
 * (@luizeduardomga)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/mla_link_attributes/)
 * Hi there, I need to set mla_link_attributes but when I put it on shortcode it
   takes no effect to my source code, the same happens with mla_target.
 * `[mla_gallery post_mime_type=all attachment_category="selecao" post_parent=all
   size=icon link=file mla_target="_blank" columns="1" mla_link_attributes='rel="
   nobox"' mla_caption="{+file_name+}" orderby=mime_type mla_float=left mla_image_attributes
   ='width="22" height="22"']`
 * I use rel=”nobox” just to disable Lightbox, cause when I click on link, Lightbox
   tries to show up the file (it is a PDF), but an error appears “Image cannot be
   loaded. Make sure the path is correct and image exist.”.
    If I could disable 
   Lightbox, PDF would be opened into another tab on browser’s built-in PDF reader.
 * Can you help me?
 * Sorry my poor English.
 * [https://wordpress.org/plugins/media-library-assistant/](https://wordpress.org/plugins/media-library-assistant/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/mla_link_attributes/#post-5969645)
 * Thanks for your question, and for taking the time to include the full source 
   text of your `[mla_gallery]` shortcode. Your English is fine.
 * I entered your shortcode in my test system, changing the `attachment_catrgory`
   to a value that works for me. All of the other parameters are exactly as you 
   have them.
 * Here is the HTML source for an item in the gallery:
 *     ```
       <dt class="gallery-icon ">
           <a href="http://mladev/wp-content/uploads/2013/08/Parse-times.pdf" target="_blank" rel="nobox"><img width="22" height="22" class="attachment-64x64" alt="Parse-times.pdf" src="http://mladev/wp-content/plugins/media-library-assistant/images/crystal/pdf.png"></a>
       </dt>
       ```
   
 * As you can see, the `target="_blank"`, `rel="nobox"` `width="22"` and ‘height
   =”22″` attributes are all present in the right places. As far as I can tell, 
   MLA is working as it should.
 * You do not say which Lightbox plugin you are using, so I cannot tell you if there
   is some other reason this shortcode is not working on your system. I have used“
   [Easy Fancybox](https://wordpress.org/plugins/easy-fancybox/)” and “[WP jQuery Lightbox](https://wordpress.org/plugins/wp-jquery-lightbox/)“,
   among others with good results.
 * If you can tell me which plugin you are using I might be able to try it and see
   what happens. If your site is accessible on the internet, could you post a link
   to the gallery so I can see the HTML source code?
 * I will leave this topic unresolved for now. Please note that I am traveling from
   April 2 until April 13 and may not be able to respond until my return. Thanks
   for your patience and your interest in the plugin.
 *  Thread Starter [luizeduardomga](https://wordpress.org/support/users/luizeduardomga/)
 * (@luizeduardomga)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/mla_link_attributes/#post-5969715)
 * Thank you for your answer.
 * I use Lightbox that comes with Avada theme.
 * Certainly there is an incompatibility between MLA and Avada. 🙁
 * Item gallery’s HTML code:
 *     ```
       <dt class='gallery-icon '>
       		<a rel="prettyPhoto[postimages]" href='http://www.fourti.com.br/develop/uempgb/wp-content/uploads/2015/03/UNIFAMMA.pdf'><img width="22" height="22" width="64" height="64" src="http://www.fourti.com.br/develop/uempgb/wp-content/plugins/media-library-assistant/images/crystal/pdf.png" class="attachment-64x64" alt="Edital homologação Correio" /></a>
       	</dt>
       ```
   
 * Thanks!
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/mla_link_attributes/#post-5969741)
 * Thank you for your update. I agree, it looks like Avadais somehow modifying the
   links in the gallery.
 * Avada is a premium theme, and I cannot afford to purchase premium themes and 
   plugins to provide MLA support. I suggest you take this issue up with the vendor.
   If they provide me with a copy of the theme for testing purposes I can investigate
   further.
 * For now, I am marking this topic resolved because MLA is working properly. Please
   update the topic if you have more information, questions or another way I can
   help resolve the conflict. Thanks for your interest in the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)

 The topic ‘mla_link_attributes’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)
 * [mla](https://wordpress.org/support/topic-tag/mla/)

 * 3 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/mla_link_attributes/#post-5969741)
 * Status: resolved