WordPress.org

Ready to get started?Download WordPress

Forums

is lightbox and wp carousel compatible? (5 posts)

  1. ideconsultora
    Member
    Posted 2 years ago #

    i am using custom personalization option to add to my carousel.
    i select a image link to act as a thumbnail pic in my carousel.. and a image link in the link field so that this is the final content that is opened when clicking on the link.. but i want the link to open in a lightbox, not in the same window.

    or is there any way to add a rel="lightbox" to the link somewhere in the codes??

    my site section is:
    http://www.instituto-gamma.com.ar/estudios/

    i need this working or else im going to have to scrap and search for a different plugin because the client really wants the site to function that way.. with the lightbox..

  2. sumolari
    Member
    Posted 2 years ago #

    Just modify your WP Carousel theme and add the code needed by lightbox.

    Depending on the theme, the line to change will be different. If you upload your theme I can locate the line.

    PS: Please, manacing about using a different plugin is very annoying. Use the plugin you want. I try to solve all the questions, no matter you use WP Carousel after my response or not. If you want, use another plugin, but do not ask for support menacing with using a different plugin.

  3. ideconsultora
    Member
    Posted 2 years ago #

    ok ill give it a try. and the theme i use is the default with the kubrick color option. but i ended up editing css to not show the background. thats all.

    i think you miss understood what i ment by having to use another plugin.
    i just been searching for ever and wp carousel seemed to be the best option for me. but if i had to search again for another option just in case this isnt posible, then it would have been a lot of pain for me. just a harmless self complain. i can def. see how it can be annoying though, specially for the developers. so sorry.

    i appretiate your work. so thanks!

  4. sumolari
    Member
    Posted 2 years ago #

    I assume you are using the jCarousel version (StepCarousel is not supported since version 1.1 due to license conflict).

    Open wp-carousel/themes/default/theme-jcarousel.php. On line 150 you'll find:

    <a href="<?php echo $item['LINK_URL']; ?>" title="<?php echo $item['TITLE']; ?>">

    Just add rel="lightbox", if your lightbox is activated in that way:

    <a href="<?php echo $item['LINK_URL']; ?>" title="<?php echo $item['TITLE']; ?>" rel="lightbox">

    On line 161 you'll find the same code. Make the same modification.

    And with that modification the lightbox should word. Remember, it depends on the lightbox. There are some lightbox scripts that are activated in a different way.

  5. ideconsultora
    Member
    Posted 2 years ago #

    worked to perfection. i thank you for the very fast response.

Topic Closed

This topic has been closed to new replies.

About this Topic