Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #11021

    Fabian D
    Participant

    How do I insert lightbox image(s) with the Visual composer instead of creating it with shortcodes.
    Just a simple click and selecting the images and/or create galleries.

    It’s not complicated to add a lightbox to an image but it would be easier to insert it by just clicking and creating a gallery just like the standard WordPress gallery option.

    #11059

    Rubin
    Keymaster

    Hey Fabian,

    we have a great article about lightbox here: http://theme.co/x/member/kb/shortcode-walkthrough-lightbox/ – in addition to that we will be releasing videos covering all our shortcodes very soon which will help people. We will look into the Visual Composer interface and try to make it easier thank you for the feedback!

    #15351

    David S
    Participant

    Yeah kind of tedious way to do it. Definitely needs to be and easier way to insert a gallery. The visual composer comes with one standard. Was that removed from this theme for some reason?

    #15391

    Rubin
    Keymaster

    Hey,

    we removed all of the Visual Composer shortcodes since our shortcodes are optimized for our theme so we did not feel it makes sense to have 3rd party shortcodes inside our theme. Hope you understand.

    #53737

    AdOpera
    Participant

    Hello. In my site I have, for example, 1000 galleries! I am forced to enter the string “[lightbox selector =”. Gallery-icon> a “]” in each gallery? Tanks :))

    #53899

    Christian
    Moderator

    Hey Gianluca,

    You can place that shortcode in the post template so it’ll take effect in all your posts. Please give us the URL of your website so we could see what template you’re using and we can give you advice.

    Thanks.

    #54018

    AdOpera
    Participant

    Thanks. I’m working offline now. I have one page named “portfolio” with template “layout – portfolio”. All galleries have been created like normal procedure with wp and like your tutorial (http://theme.co/x/member/kb/shortcode-walkthrough-lightbox/) “[gallery] Shortcode Lightbox”. I dont understand where i must place that shortcode. In the page “portfolio” dont work. I think beacause the gallery is realy in other page, as you can see from the local url:

    http://localhost:8888/gianlucagovoni/portfolio/
    http://localhost:8888/gianlucagovoni/portfolio-item/rocksy/

    The first line refers to the “portfolio” page;
    the second line refers to the gallery from previous page.

    I hope you understand my bad english and my problem.

    Thanks again :))

    #54031

    Christian
    Moderator

    Hey Gian,

    Please try modifying template-layout-portfolio.php located in framework\views\(YOUR STACK). Add the code

    <?php echo do_shortcode('[lightbox selector=".gallery-icon > a "]'); ?>

    below

    <?php x_get_view( 'global', '_portfolio' ); ?>

    If that doesn’t work, we’ll need for you to upload your site online so we could see your current setup.

    Thanks.

    #54043

    AdOpera
    Participant

    Hello Supp, I added the code in child template-layout-portfolio.php (I tried also in father theme)… don’t work again! :((

    I will upload my site soon, and soon i will write you again.

    thanksssss ;))

    #54115

    Aman
    Member

    Yes please keep us updated.

    Thanks!

    #56509

    AdOpera
    Participant

    Hello Supp! :))

    My site is online in demo area:
    http://gianlucagovoni.it/

    If you look at the http://gianlucagovoni.it/portfolio-commerciale/ the first gallery named “advertising” don’t work with lightbox. The others work only wiht shortcode “[lightbox selector =”.gallery-icon> a “]” in each gallery. Is very complex so. Can you help me please? I must upload a big number of galleryes.

    Thanks so much

    #56930

    Alexander
    Keymaster

    Hi there,

    It looks like you just might need to add the shortcode to that portfolio item. I’m seeing the javascript added to other pages, but not the first one. You’ll need to add it to every page that you’d like to use the lightbox

    #166600

    Ohia.Wins
    Participant

    ok. i’ve been looking for hours and watched the video but cant seem to get the lightbox to work for a gallery. i simply want to create a page using visual composer and insert a gallery that works in your lightbox. Ive tried lots of things. even copy pasted the shortcode from your Galleries kb article and replaced the ids with my own images. it continues to go to another page when opening up the image. It looks like the guy who started this thread had the same issue but then it went off onto another subject.

    What am I doing wrong? It’s driving me nuts

    [gallery link="file" ids="17560,17559,17558,17226,3318,3317,3121,3120,3119"]
    [lightbox selector=”.gallery-icon > a”]

    #166913

    Paul R
    Moderator

    Hi,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    At the mean time you can try this

    
    
    [lightbox selector=".gallery-icon > a"]
    

    The code looks the same but the quotes are different.

    Hope that helps.

    Thanks

    #167161

    Ohia.Wins
    Participant
    This reply has been marked as private.