Support » Plugin: WP Shortcodes Plugin — Shortcodes Ultimate » Text titles in carousel lightbox

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m having this same problem. It looks like you never figured it out?

    lpesc

    (@lapescaline)

    The same also….
    Multiples posts are open for it without any answer. Is somebody from Ultimate can give us informations please ?
    I wanted to add in personnal CSS something with .su-lightbox-content but I am not enought trained to know what to put inside.
    Many thanks

    lpesc

    (@lapescaline)

    And to give more infos….

    It seems from screenshots given by the author that the title could be displayed on miniatures AND on the openned lightbox.

    The video “how to create image gallery” given on the ultimate shortcode main page is not helpfull for this point…
    https://www.youtube.com/watch?v=kCWyO2F7jTw

    1/ I never found the first managing page “quickpress” in my admin side.

    2/ I have effectivelly the button “insert shortcode” when I create an article. I can select “gallerie” to open the same window “All shortcodes > Gallery” as the video.
    BUT, I do not have any link to manage galleries on the source selection area !!!

    3/ From admin page , if I go into <> Shortcodes in left menu, I have only 3 sheets “about”, “settings” “custom CSS” but no “Galleries” or “Cheatsheet” as the video shows

    Can you please say me if another plugin is missing, or if this functionnality was removed since (video posted in 2013) ?
    Thx

    We managed to get this working from a gallery which launches a lightbox, via a hack to assets/js/galleries-shortcodes.js.

    The solution drew on the documentation for the underlying lightbox tool, Magnificpopup:
    http://dimsemenov.com/plugins/magnific-popup/documentation.html

    The hack consists of 2 changes:
    Line 8 get the the title and add it to the array of slides which is being initialised:

    slides.push({
              src: $(this).children('a').attr('href'),
              src_text:  $(this).children('a').text()
    });

    Line 80 as the lightbox is being enabled, add image attributes which include the title from the slides array:

    type: 'image',
    image: {
        titleSrc: function (item) { return item.data.src_text; }
    },

    Example
    http://www.thamesvalleyldwa.org.uk/midweek-marlow-meander/

    Some browsers e.g. Chrome may cache their javascript and have to do a refresh to get this to show up.

    If there is a more elegant way to override the plugin function here rather than hack this file, it would be helpful to know.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Text titles in carousel lightbox’ is closed to new replies.