• Resolved cellobrutos

    (@cellobrutos)


    Hi there,

    Right now, when displaying images, easy-fancybox grabs the title of the actual image, and echos it.
    What I would like to do would be to be able to display the title of the actual image and add a link to the actual file. For example:

    image title | <a href="image_link.jpg">download in HD</a>

    Is such a thing possible, and if yes, how?

    Thanks,
    F.

Viewing 15 replies - 16 through 30 (of 36 total)
  • mctarq,

    This thread is about the plugin Easy FancyBox. You are using another plugin. Please go to https://www.ads-software.com/tags/fancy-box?forum_id=10 for support on Fancy Box, or switch to Easy FancyBox ??

    Thank you very much RavanH! I’ve just installed EasyFancyBox and I configured it (the animation and the text position)….do you know how to insert the tittles in each picture?? Thanks a lot!!!

    Give the LINK a title … or … Check the option “Title from Alt” in the Easy FancyBox settings the IMG an alt attribute.

    To give the link a title in the Visual content editor, click the thumbnail image and then click the link icon in the Rich Text Editor toolbar. Fill in the title of the image in the title field.

    Tip: try class=”fancybox iframe” on the link to your video…

    RavanH!!! you’ve saved me!!!! it’s OK! now I have titles! thanks a lot por your help!!!

    Hi,
    how can I insert arrows in thee images to pass to the next image? I’ve checked in the Setting Media toolbar the option “Show the gallery navigation arrows” but nothing happens….
    Thanks!!!

    In Settings > Media, there is a field called Section(s) which determines where the script should look for images to automatically group in one gallery. Adapt this to fit your theme by changing article, div.hentry to div.entry. Remember that if you change yout theme one day, you might need to adapt this setting again to work with the new theme.

    Hi RavanH,
    how can I introduce “line text jumps”. This is because I need to put a title in two languages and it’s the best way toy separate both.
    Thanks a lot!

    mctrarq, i have no idea what you mean…

    Hello i was reading your above comments about linking the title. i have pasted

    function(title, currentArray, currentIndex, currentOpts) { return \'<div style="some styling">\' + title + \' | <a href="\' + currentArray[currentIndex].href + \'">Download HD file</a></div>\';}

    into easybox setting php however the title isn’t linking. any ideas?

    also i was wondering if it is possible to display the post title instead of the alt and have it link to the post page??

    Hi Tara,

    I have stopped supporting customizations. It just takes way too much of my time. Sorry.

    Should note though: you can hire me to do custom work like this. ??

    Thanksss. wil have to sort out a little money for you. in the mean time have you ever posted anything on adding anchor tags to the fancybox links?

    What do you mean by “adding anchor tags to the fancybox links?”

    So you have
    so fancybox can do custom open on load ??

    I still do not follow… An anchor tag is generally known as a ‘link’ (that’s why the html tag starts with <a for anchor) so what does adding a link to a link mean?

    sorry i meant adding the post title as an image id (id=”posttitle”) to the fanacybox image link <a id=”posttitle” class=”fancybox” etc..

    As I have some js (below) which checks the url + matches it to anchor text on the page + auto opens fancybox

    jQuery(document).ready(function() {
    if(document.location.href.indexOf('<?php the_title(); ?>')>-1){ /* check for anchor text in URL */
    jQuery('<?php the_title(); ?>').fancybox().trigger('click'); /* chain click trigger on to previously written fancybox declaration */
    }});
Viewing 15 replies - 16 through 30 (of 36 total)
  • The topic ‘[Plugin: Easy FancyBox] display direct link in title’ is closed to new replies.