WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] Center Image in Sidebar? (8 posts)

  1. Michael
    Member
    Posted 2 years ago #

    Hello!

    I really like how easy this plugin is to use. One thing I would like to be able to do is have the sidebar widget center the photo. If you look here http://glorioustrauma.com you can see what I am talking about. The photo seems to be left aligned in the widget.

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 2 years ago #

    This will be fixed in the next version that i will release in a few days. It is working already on my test site: http://wppa.opajaap.nl

  3. Michael
    Member
    Posted 2 years ago #

    Excellent! Got the update today. Thank you for a great plugin!!

  4. jlac839
    Member
    Posted 2 years ago #

    Hello,

    I have installed Photo of the Day widget in one of my footer areas. You can see it here at http://www.callender.net (temporary location for the site while I develop it for my scuba diving club).

    I updated to Version 3.0.6 and and I can't figure out why the photo appears to be right justified compared to the Title "Today's photo".

    I tried moving it to the sidebar but still see the same problem.
    Could you help me figure out what I'm doing wrong?

    Thanks in advance!

  5. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 2 years ago #

    It is centered in the widget area that is 220 pixels wide

    Line 34 of wppa_widget.php reads:

    $widget_content .= "\n".'<div class="wppa-widget" style="text-align:center; padding-top:2px; ">';

    if you change center to left its fixed.

    I will make this configurable in the next rev.

  6. jlac839
    Member
    Posted 2 years ago #

    Ah, I see. Thank you for the prompt response. I'll patch the PHP for now and see what it looks like. I didn't realize that the footer areas were "fixed". I'm still new to WordPress and the themes.

    Regards

  7. jlac839
    Member
    Posted 2 years ago #

    Hello again,

    I also took the liberty of adding the style adjustment for the name or description fields used for the subtitle under the photo:

    switch (get_option('wppa_widget_subtitle', 'none'))
    {
    case 'none':
    break;
    case 'name':
    if ($image && $image['name'] != '') {
    $widget_content .= "\n".'<div class="wppa-widget-text" style="text-align:left">' . wppa_qtrans(wppa_html(stripslashes($image['name']))) . '</div>';
    }
    break;
    case 'desc':
    if ($image && $image['description'] != '') {
    $widget_content .= "\n".'<div class="wppa-widget-text" style="text-align:left">' . wppa_qtrans(wppa_html(stripslashes($image['description']))) . '</div>';
    }
    break;
    }

    Thanks!

  8. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 2 years ago #

    I will take that in account too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic