WordPress.org

Ready to get started?Download WordPress

Forums

Shashin
[resolved] Rotating image in widget (25 posts)

  1. nicksyl
    Member
    Posted 10 months ago #

    Hello,
    I would like to place on the homepage a widget, which shows a different image from a Picasa album every time the page is reloaded.
    How do I do that?
    Also, I don't understand how to work the widget at all. I have an album I want to use for an image in the widget, and I put in the photo ID, but it says in the widget (on the page)"No photos found for specified shortcode".
    Please help.
    Thank you.
    Vera

    http://wordpress.org/plugins/shashin/

  2. nicksyl
    Member
    Posted 10 months ago #

    I figured it out. :)
    However, a question I don't seem to find an answer to: how do I link the widget to a page on my site?
    Thank you for your assistance.

  3. Mike Toppa
    Member
    Plugin Author

    Posted 10 months ago #

    The widget thumbnail will link to an expanded view of the image, just like the shortcode. There isn't an option to link it to a page on your site.

  4. nicksyl
    Member
    Posted 10 months ago #

    Ok, understood, thank you.
    Is there a way to link the title above the image to a page or post?

  5. Mike Toppa
    Member
    Plugin Author

    Posted 9 months ago #

    Sorry, no. Supporting that would mean adding another field, and I feel like the Shashin widget form is already too complicated (and the WordPress widget form also doesn't let you enter html, so you can't type in your own link tag.)

  6. nicksyl
    Member
    Posted 9 months ago #

    Mike,
    Thank you for the reply, I understand.
    If you ask me - the addition of another field is not going to make it any more complicated than it already is. And it is the logical choice for visitors, as well as for website owners, that widgets point to some place (page or post), so perhaps you should think on changing that.
    Perhaps you have an idea how one can make a whole widget linked to some place?
    Thank you again for assistance,
    Vera

  7. nicksyl
    Member
    Posted 9 months ago #

    Mike,
    The other day the pugin has updated, and all the images have changed their style. I don't quite know how and why. Is that normal? how do I return them to the styling they had before? I don't see any options afor styling in the pugin.
    When I say styling I mean the way the albums and photos look.
    Thanks,
    Vera

  8. Mike Toppa
    Member
    Plugin Author

    Posted 9 months ago #

    Hi Vera - There are a lot of changes to the HTML and CSS in the new version, in order to make Shashin responsive (i.e. so it looks good on any size display, including mobile). As part of the update, I gave the thumbnails a new look. With some CSS work it probably can be customized to look fairly similar to the old style. I can probably find some time to do that next week if you like.

  9. nicksyl
    Member
    Posted 9 months ago #

    Mike,
    I understand. Thank you.
    Oh, and now the album thumbnails on the gallery page load in the normal size and then immediately shrink to a very small one. No idea how to fix that.
    Yes, I realy liked the white frame around the pictures with the thin black border, and the square around, though that is not a must. I understand how it is done, I even see the CSS code for it - but not the class in the code... While I can work some CSS, changes in the code are mostly bsyond my abilities.
    Thank you,
    Vera

  10. Mike Toppa
    Member
    Plugin Author

    Posted 9 months ago #

    Can you give me a link to where your thumbnails are shrinking? I'll take a look. Also, please copy-and-paste here the shortcode you are using for them.

  11. nicksyl
    Member
    Posted 9 months ago #

    Oh, sorry, another question:
    In the PrettyPhoto all the buttons show also their names in a word, right by the button. It is unnecessary and frankly, just clutters the screen. How to turn it off? IT doesn't happen in FancyBox.

  12. Mike Toppa
    Member
    Plugin Author

    Posted 9 months ago #

    That should not be happening with prettyPhoto - please let me know what browser you are using.

  13. nicksyl
    Member
    Posted 9 months ago #

    Sure, here is the page:
    http://masorti-kfarvradim.org.il/masorti/?page_id=158
    The shortcode is:
    [shashin type="album" id="11,9,10,7,5,3,8,4" size="small" crop="n" columns="max" caption="y" order="date" position="center"]
    And it is generated by the plugin.

  14. nicksyl
    Member
    Posted 9 months ago #

    Chrome, it says version 29.0.1547.66

  15. nicksyl
    Member
    Posted 9 months ago #

    I changed the setting to PrettyPhoto, so you can see.

  16. Mike Toppa
    Member
    Plugin Author

    Posted 9 months ago #

    For the thumbnail size, the new version is trying to find a compromise between the size you want, and the number of columns you want (columns="max" means as many columns as possible). So you are getting 5 columns, and the thumbnails are being shrunk. If you change columns="max" to something like columns="3", then the thumbnails will be bigger.

    I'm not sure why the text is showing up in prettyPhoto like that. prettyPhoto uses a css technique to hide that text by giving it a really big indent, pushing it off the screen. It doesn't appear to be overridden on your site, but it's not working either. So I'm not sure why that's happening. But there is a better way to do it anyway - I will make an update later today or tomorrow that should fix it.

  17. nicksyl
    Member
    Posted 9 months ago #

    Thank you for your assistance.
    You are right about the thumbnails: they shrink because they want to fit into an area too smal for them.
    For some reason, the program doesn't recognize that this is a full-width page, and tries to shrink the gallery into the area of blog (only mirrored, my Hebrew blog is on the right side), leaning space for the nonexistent sidebar. This is strange, and previously it has not behaved this way, but filled the whole page.

  18. nicksyl
    Member
    Posted 9 months ago #

    Or rather, not even the blog space, but some space in the middle of the page, I don't know where it is defined.

  19. Mike Toppa
    Member
    Plugin Author

    Posted 9 months ago #

    On the Shashin settings page, you'll see a setting for "Content width (in pixels) for your theme" which defaults to 600. You can increase this to match the width of your theme's main content area.

    I'm writing a blog post that explains all this :-)

  20. nicksyl
    Member
    Posted 9 months ago #

    I did, it stands on 800. There is plenty of space there for 5 thumbnails of 150px (it makes 750), but still it shrinks even with 3.

  21. nicksyl
    Member
    Posted 9 months ago #

    You can see this is so on the detailed album page: the setting is on 6 thumbnails per row and 800 width, and nothing shrinks there, and the page is filled out better.

  22. Mike Toppa
    Member
    Plugin Author

    Posted 9 months ago #

    Thanks - this is a bug. The challenge for me with the album thumbnails is I don't know their size before they are loaded (for the photos, the sizes are in the Picasa feed). So I have to determine the size after they load, and there seems to be a problem with how I'm doing it (the challenge is when there's a mix of portrait and landscape album thumbnails). I'll work on fixing it.

  23. nicksyl
    Member
    Posted 9 months ago #

    Interesting.
    Well, I am not in a hurry at the moment.
    How did you work it out in the previous version? There was no problem, and they were set very nicely into squares, relative to the square. And they filled the screen - 5 of them in a row. Of course, I don't understand the coding thing, so...
    If it helps - this shrinking thing started only yesterday, after the latest update.

  24. nicksyl
    Member
    Posted 9 months ago #

    Hi Mike,
    You fixed the problem, thank you. :)

  25. Mike Toppa
    Member
    Plugin Author

    Posted 9 months ago #

    You're welcome, and thanks for the detailed feedback.

Reply

You must log in to post.

About this Plugin

About this Topic