WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] Album doesn't float (3 posts)

  1. dicknet
    Member
    Posted 2 years ago #

    Hello. Great plugin. I've only found one issue: I can't get an album to float reliably.

    In my case, there is a vertical graphic on the left side of the page, with text flowing around it. I have placed the album directly below the text, but it doesn't float, and I see no option to change this behavior. Here is an example of the problem:

    http://www.drsofonioblog.com/procedures/breastlift-testhidden

    NOTE: This page shows images of bare breasts. Don't go there if this will offend you. Sorry, it's a plastic surgeon's site and this is the page where the problem occurs.

    TIA for your help.

    RJ

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 2 years ago #

    If you change line #1669 of the file wp-photo-album-plus/wppa-functions.php from:

    elseif ($wppa['align'] == 'center') $result .= 'display: block; margin-left: auto; margin-right: auto;';

    to:

    elseif ($wppa['align'] == 'center') $result .= 'display: inline-block; margin-left: auto; margin-right: auto;';

    your problem is fixed.

    (display: block becomes display: inline-block).

    It is required that you have the %%align=center%% as you have now. The <center></center> tag around the wppa+ invocation look redundant to me.
    I wil incorporate this fix in the next version, so you need not to patch it again when you update the plugin.

  3. dicknet
    Member
    Posted 2 years ago #

    opajaap, this works like a charm. Thank you so much for the patch.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic