Tagged: image element
-
AuthorPosts
-
August 16, 2014 at 12:18 am #305128
Hi, I am using the simple Image Element to display an image.
When I choose to link the image Manually and Open in new window the Element tries to open an image within the theme and i get the message “The image could not be loaded”
I realise the Wikimedia Commons pages are unusual but why does the theme treat them any differently. The links work OK if you paste them into a new browser window.Here is an example of one of the pages I am trying to open in a new window: http://commons.wikimedia.org/wiki/File:Whitby_Abbey_image.jpg
Hope you can help.
Thanks,
HAugust 16, 2014 at 11:07 am #305247Hi Heathcliffe!
Thank you for using the theme.
You need to disable the lightbox for these Image elements. In order to do that, add a unique selector to the element. Edit functions.php, find this code:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Below, add this code:
add_theme_support('avia_template_builder_custom_css');
Edit the image element then add a unique css selector on “Custom Css Class” field. Add the “noLightbox” css class to disable the lightbox.
Best regards,
IsmaelAugust 27, 2014 at 4:19 pm #309916Hi Ismael,
Thanks for the reply. Am I right in thinking, because I have the enfold child theme installed, that I create a new functions.php and just insert this line? Or do I copy the whole of the functions.php into the child theme and then do the above?
Thanks,
HAugust 28, 2014 at 6:07 am #310235Hi!
That’s because you are not linking to an actual image but to a website, you can do this however:
http://screencast.com/t/IPzHTryYGs3vCheers!
JosueAugust 29, 2014 at 1:22 pm #310907Hi guys, thanks for your help on this. I just added the two lines to my blank child functions.php and did as Ismael suggested with the custom CSS class and it has worked.
Josue, I needed more than just linking to the image, i needed to show details of the original authors of the images i.e. credits but thanks also for that suggestion :)
August 29, 2014 at 2:31 pm #310938Just a little update and a “Bug” ?
Most of the Wikimedia commons links work. But some have a “,” in the title e.g. http://en.wikipedia.org/wiki/Bolsover_Castle#mediaviewer/File:Bolsover_Castle,_long_gallery_exterior,_2008.jpg
These will not link from the Image Element.
Is this a bug in enfold? (I remember years ago to never use a comma (,) in a URL but they seem to work ok by just pasting them in a browser window.
August 30, 2014 at 6:26 pm #311328Hi!
That link is still linking to a website, not a direct image. The solution would be to do this, as Ismael suggested.
Best regards,
JosueSeptember 1, 2014 at 2:56 am #311630That is what I have done Josue and now most of the links work. But NOT links that have a comma in title as the one above.
September 1, 2014 at 3:07 am #311632Hey!
Hmm, in that case it would be more convenient to use a shortener like http://bit.ly.
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.