WordPress.org

Support

Support » Plugins and Hacks » WP Photo Album Plus » [Plugin: WP Photo Album Plus] Displaying images side by side in posts

[Plugin: WP Photo Album Plus] Displaying images side by side in posts

  • Hey Opa,

    Is there a way to use the image display code to get images to sit side by side. Example:

    %%wppa%% %%photo=12%% %%size=210%%%%align=center%%%%wppa%% %%photo=13%% %%size=210%%%%align=center%%

    The above code will put images on top of each other. What I’d like to do is show the images side by side on the same line. Is that possible?

    Thank you!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jacob N. Breetvelt

    @opajaap

    Did you try this:

    %%wppa%% %%photo=12%% %%size=210%% %%align=left%%
    %%wppa%% %%photo=13%% %%size=210%% %%align=right%%

    ?

    I did – all it seemed to do was keep them separated on their own lines and push the alignment left or right. No matter how I put it they would not go on the same line. Also, it I wanted four small thumbnails across would I be able to do that?

    When I set no alignment it seems to default to center alignment.

    The expected functionality I am talking about is if I set no alignment then it left aligns and putting image code next to each other with no line breaks puts them both on the same line. That doesn’t seem to be happening.

    Thanks for any help or ideas! Maybe I’m missing something!

    Plugin Author Jacob N. Breetvelt

    @opajaap

    The cause of this problem is the fact that there are a few places with clear:both in the css. I am aware of the side effects of this, and am trying to ge a way to get rid of them without destroying existing layouts.

    You may try to remove the clear:both’s in the source (wppa-functions.php).
    Line 2023 reads:

    if (!$wppa['in_widget']) $result .= 'clear: both; ';

    You may comment it away by placing // in front.

    Make sure that the %%wppa%% script is all on one line to prevent wpautop to add <br> or <p></p in between.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Photo Album Plus] Displaying images side by side in posts’ is closed to new replies.
Skip to toolbar