Forums

[resolved] WP Photo-Album-Plus lightshow for slider images (9 posts)

  1. davidallen23
    Member
    Posted 7 months ago #

    Hi
    I have a page containing 2 images that open Lightbox when clicked on.
    Below that I have a slide-show that I want to be able to click on individual images as they're displayed and bring up Lightbox. That doesn't work.
    Just a slideshow on a page does allow Lightbox to work.
    Is the problem due to having more than one instance of Photo-Album-Plus on one page?
    This is how the problem page looks currently:

    %%wppa%% %%photo=2300%% %%size=300%% %%align=left%%
    Some text
    %%wppa%% %%photo=1811%% %%size=300%% %%align=left%%
    Some text
    %%wppa%%
    %%slide=2%%
    %%size=640%%

    http://www.gamlingayphotos.co.uk/?page_id=11

    I have other pages where a clickable lightbox option on a slide show works so why doesn't this?

  2. opajaap
    Member
    Posted 7 months ago #

    The comments section of your page 'overlays' the slideshow.

    In your themes css it reads on line 807:

    #comments {
    border=top:...
    margin:...
    padding:...
    position:...
    }

    Add there: clear:both and your problem is fixed.

    To prevent this kind of trouble it is also a good practise to end a post with <hr /> and make sure the css for a hr contains `clear:both'.

  3. opajaap
    Member
    Posted 7 months ago #

    Try %%align=center%% in the third instance. The align is 'remembered' from the previous instance. This may be the easiest way to fix it.

  4. davidallen23
    Member
    Posted 7 months ago #

    Apologies, I'm new at this. I can't find line 807 on the css - they're not numberered - I tracked through it, no luck.
    I tried Try '%%align=center%% in the third instance' but it doesn't change anything.
    I've tried numerous options and so far it works fine in Firefox but not in Safari and Chrome. In IE9 it opens the image on a blank page - no Lightbox. Bah!

  5. davidallen23
    Member
    Posted 7 months ago #

    Maybe I'll just scrap that particular album and start it again. The slideshow to lightbox works OK on my other pages in all browsers (except of course IE9 which has always has been a pain).

  6. opajaap
    Member
    Posted 7 months ago #

    You may add:

    #comments {
    clear:both;
    }

    to ../wp-content/plugins/wp-photo-album-plus/theme/style.css

    that will also work.

    Lightbox in IE9 does not work because the scriptaculos and prototype that come with wp do not work in ie9.
    This should be fixed in the next wp update.

    If you cant wait: you can copy the files:

    ../wp-content/plugins/wp-photo-album-plus/lightbox/js/{ builder.js, effects.js, prototype.js, scriptaculous.js }

    to their respective locations (overwriting) in ../wp-includes/js/.. and in ../wp-includes/js/scriptaculous/..

    The files that come with wppa+ work in ie9

    It should not be a problem to have multiple instances (occurrancies as i call them) of wppa+ in one page or post (or even widget).

  7. davidallen23
    Member
    Posted 7 months ago #

    Well, I've deleted the particular album and the page and then recreated them. It still doesn't work. On another page I've added a couple of static pictures with some text followed by a slide show. That has the same problems as the initial one.
    This leads me to the conclusion that that having multiple instances on one page where one of them includes a slide show just doesn't work in the way expected. I guess I'll just have work around it.
    Thanks for your help.

  8. opajaap
    Member
    Posted 7 months ago #

    Did you try #comments { clear:both; } in wppa+ css (or in any other css) ?

  9. davidallen23
    Member
    Posted 7 months ago #

    No because, unfamiliar as I am with this stuff, I couldn't determine the appropriate css file & with the one I did suspect as being correct I didn't know where to place the extra line.
    But there's obviously something a little screwy with WP Photo-Album-Plus since I tried numerous combinations of static images on the same page as a slideshow and not one of them worked.
    So, I've worked round the problem now and keep static images and slideshows off the same page, if I want lightbox functionality & I also prefer the alternate layout.
    So, thanks for your help. The topic isn't resolved but the problem is.

Reply

You must log in to post.

About this Topic