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

  1. dicknet
    Posted 4 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:


    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.



  2. Jacob N. Breetvelt
    Plugin Author

    Posted 4 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;';


    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
    Posted 4 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

  • WP Photo Album Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic