Forums

Always show a thumbnail while posting an image (6 posts)

  1. MrChase
    Member
    Posted 3 months ago #

    Is there a simple way (without plugins) to always show a (clickable) thumbnail when an author adds an image (or attachment) to the post or the page? (In every situation: thumbnail, medium, large, full.)

    Example current situation (wrong):
    Author adds full 3000x2000px image to his post. Theme shows a 2000px height image and - theme width - px width.

    Example how it should be:
    Author adds full 3000x2000px image to hist post. Theme is showing a thumbnail. On click thumbnail > show original size.

    Thanks in advance!

  2. MrChase
    Member
    Posted 3 months ago #

    Or a simple code to set a maximum width and height for the medium, large and full images?

    Any help is appreciated!

  3. ysr5
    Member
    Posted 3 months ago #

    what about creating a shortcode to output a thumbnail linked to the original image?
    more information about shortcodes in wordpress

  4. MrChase
    Member
    Posted 3 months ago #

    Thanks for your reply ysr5. That's a logic solution.
    I'll go and try that and if I found the right code, I'll mark this topic as resolved.

    If anyone having a copy paste solution it would be awesome!
    Theme must be ready within a short period of time :(

  5. ysr5
    Member
    Posted 3 months ago #

    if you want achieve something you allways need to invest energy. you got an idea how you could solve that problem so start working instead of waiting :-)

  6. MrChase
    Member
    Posted 3 months ago #

    I know ysr5. After a couple of hours trying to solve this problem I thought I need some help. That's why I mentioned the "copy paste solution".

Reply

You must log in to post.

About this Topic