• Resolved Michael

    (@megatherion)


    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 https://glorioustrauma.com you can see what I am talking about. The photo seems to be left aligned in the widget.

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

    (@opajaap)

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

    Thread Starter Michael

    (@megatherion)

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

    Hello,

    I have installed Photo of the Day widget in one of my footer areas. You can see it here at https://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!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    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.

    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

    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!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I will take that in account too.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP Photo Album Plus] Center Image in Sidebar?’ is closed to new replies.