Thread Starter
luigsm
(@luigsm)
I could do link=none to remove the hyperlink, if there isn’t a way to remove the class. I figure there is though and I do not know how. thanks again
Thanks for your question, and for taking the time to add the source text of your page and the link to an example. I am a little confused, but I can give you some general comments.
Your [mla_gallery] shortcode has a few minor issues; the mla_style=none mla_caption="" mla_style="default" mla_markup="default" parameters should be removed. I think they are harmless, but they can be removed without altering the gallery output. Your mla_link_href= parameter is hard-coded to a specific page; is that the link you changed? Can you post the actual value for that parameter?
I clicked on the “Any help is very appreciated” link in your post and got an “Error 404 – The page you are looking for cannot be found.” result. The http://curedesigngroup.com/wordpress/midcenturymodern-interior-design-gallery.html link appears to be broken.
I followed the live link in your source text example to the “99 HOPS HOUSE // Commercial / Restaurant Design” page. I don’t see any [mla_gallery] output there, but I do see galleries for the Before, Design Presentation and After images. These appear to be generated by the WordPress [gallery] shortcode, not by [mla_gallery].
I can see the class="cboxElement" attribute you are writing about. This attribute, and the rel="gallery-4234" attribute look like they come from a lightbox plugin or theme function. There are lots of lightbox plugins/functions that intercept the output of the [gallery] shortcode and add attributes like these to control their operation. Neither of these attributes will be present in the HTML generated by [mla_gallery].
If you can post the full source code for an [mla_gallery] on one of your pages and a working link to the corresponding output I can have a closer look. Any additional information you can provide will be helpful.
Thread Starter
luigsm
(@luigsm)
Hi David,
Thank you again for your help. I have removed what you told me.
example page now live
http://curedesigngroup.com/wordpress/interior-design-portfolio.html
example code
[mla_gallery mla_image_attributes=’width=”270px” height=”146px”‘ mla_caption=”{+template:({+empty+})+}” attachment_category=”Mid Century Modern” orderby=rand link=”file” numberposts=1 mla_link_href=”http://curedesigngroup.com/wordpress/midcenturymodern-interior-design-gallery.html”%5D</div>
<section> Gallery </section>
I am using a mla random gallery of 1 picture and trying to link to a specific page from you picture. I have the html page link in a button right below it. unfortunately it is not getting to the page. I only have the midcentury modern setup this way. currently all the other categories are going to a blown up image.
any help is definitely appreciated
Thanks for your update and for the links to the working example page. Without a complete copy of your site’s theme and plugins I cannot be sure, but I have a better idea of what might be happening.
MLA uses a WordPress function, wp_get_attachment_link(), to generate the hyperlink around each gallery thumbnail. That function includes hooks that plugins and theme functions can use to modify the hyperlink, and I think your theme or one of your plugins is using those hooks to add the “cboxElement” class.
The “cboxElement” class name is used by a “jQuery lightbox and modal window plugin” called “Colorbox”. This library is used by a number of WordPress plugins, and may be used by themes as well. Many of these plugins have a way to disable the lightbox function on a case-by-case basis, but unless I know which plugin you are using I cannot be more specific. If you are using a “colorbox”/lightbox plugin, can you tell me which one and post a link to it?
You could also look through your theme and plugins to see if you can find a way to disable the lightbox for a particular gallery.
Thank you for your patience and for any additional information you can give me.
It has been three months since my last post in this topic and I have seen nothing further. I assume you have found a solution that works for your application.
I am marking this topic resolved, but please update it if you still need help with your [mla_gallery] logic. Thanks for your interest in the plugin.