Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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,
    H

    #305247

    Hi 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,
    Ismael

    #309916

    Hi 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,
    H

    #310235

    Hi!

    That’s because you are not linking to an actual image but to a website, you can do this however:
    http://screencast.com/t/IPzHTryYGs3v

    Cheers!
    Josue

    #310907

    @Ismael @Josue

    Hi 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 :)

    #310938

    Just 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.

    #311328

    Hi!

    That link is still linking to a website, not a direct image. The solution would be to do this, as Ismael suggested.

    Best regards,
    Josue

    #311630

    @Josue

    That 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.

    #311632

    Hey!

    Hmm, in that case it would be more convenient to use a shortener like http://bit.ly.

    Regards,
    Josue

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.