• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Photo Enlarge in Posts

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Photo Enlarge in Posts

This topic is: not resolved

Tagged: enlarge, image, post

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 11 months ago by BennettGlobal.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 31, 2013 at 1:30 pm #32311
    BennettGlobal
    Member

    Hello,

    I am having a problem trying to figure out how to enlarge a photo within a post.  I have a photo of Robert Di Niro stored in my media library that's "1960 x 1278".  It's a great photo and high res.  When I add the photo into the post its reducing the size to "230 x 150".  I would like the photo to cover width of the post and remain in proportion.  My width would be 600.  The photo functions as the lead-in to the content below.  But, when I try to adjust the photo to a larger size by clicking on the image editor it becomes distorted.   When I go into the Text and change the code to reflect a larger size its still distorted.  I've played around with linking.  I've looked in my media library settings for options.  I'm stumped?  It seems to be automatically inserting as a thumbnail.

    How do I fix the problem.  Here is a link to the page in question.  I've intentionally left it distorted.

    http://www.entertainmentravel.com/2013/03/19/celebrity-restaurant-owners-bring-more-than-a-name/

    Michael

     

     

    March 31, 2013 at 2:03 pm #32316
    Anita
    Keymaster

    I had a similar problem and it had to do with captions. Not sure if it's the same for you. But try this. Look for this in your Style.css

    img {
        height: auto;
        max-width: 100%;
    }

    Put a forward slash (/) at the beginning of the height like so:

    /   height: auto;

    Then try to insert a picture.


    Love coffee, chocolate and my Bella!

    March 31, 2013 at 3:23 pm #32340
    BennettGlobal
    Member

    Hi Anitac,

    Here is the code I found in my CSS.  I added the slash in front of height and tried to post an image and it did not work.

    /* Images
    ------------------------------------------------------------ */

    img {
    /height: auto;
    max-width: 100%;
    }

    .avatar,
    .entry-content img,
    .featuredpage img,
    .featuredpost img,
    .post-image {
    background-color: #fff;
    border: 4px solid #eee;
    padding: 1px;
    }

    .home-middle .featuredpost img {
    margin: 0 0 10px;
    }

    .author-box .avatar {
    background-color: #fff;
    float: left;
    height: 72px;
    margin: 0 10px 0 0;
    width: 72px;
    }

    .post-image {
    margin: 0 10px 10px 0;
    }

    .comment-list li .avatar {
    background-color: #fff;
    float: left;
    height: 30px;
    margin: 0 5px 0 0;
    width: 30px;
    }

    img.centered,
    .aligncenter {
    display: block;
    margin: 0 auto 10px;
    }

    img.alignnone {
    display: inline;
    margin: 0 0 15px;
    }

    img.alignleft {
    display: inline;
    margin: 0 15px 10px 0;
    }

    img.alignright {
    display: inline;
    margin: 0 0 10px 15px;
    }

    .alignleft {
    float: left;
    margin: 0 15px 0 0;
    }

    .alignright {
    float: right;
    margin: 0 0 0 15px;
    }

    .wp-caption {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: center;
    }

    p.wp-caption-text {
    font-size: 12px;
    line-height: 16px;
    padding: 5px 0;
    }

    .wp-smiley,
    .wp-wink {
    border: none;
    float: none;
    }

    .gallery-caption {
    }

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble