• 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

Maximum Width and Height of Images in Winning Agent Pro Theme

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 › Maximum Width and Height of Images in Winning Agent Pro Theme

This topic is: resolved

Tagged: featured listing, image size, winning agent pro

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 5 months ago by rfmeier.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 16, 2014 at 9:55 am #109992
    marinandee
    Member

    Hello,

    I need some help here. I have a real estate site built on Winning Agent Pro Theme and looks great but will be great if it can load faster.

    Actually, I already open a support ticket at WordPress about this issue but then someone advice me to post it here. By the way, you can check my real issue here: http://wordpress.org/support/topic/set-the-maximum-width-and-height-of-images

    It would be great if someone can/able to show me how to resolve the problem.

    Thanks in advance.

    Marinandee Jumiran

    http://imoveis.jp/
    June 16, 2014 at 11:23 am #109999
    rfmeier
    Member

    Hello,

    The AgentPress Listings plugin is using the genesis_get_image() function to display the image background. Which is asking for the image size 'properies'. The function uses wp_get_attachment_image() to retrieve the image from WordPress. As far as I could tell (I did a quick grep search on the plugin directory), the AgentPress Listings plugin does not register the image size with WordPress (see add_image_size).

    If WordPress cannot find the size given (as a string), it will return the original image. This should be why you are getting back the large (original) image.

    There are a few ways to fix this.

    1. Add the image size to your functions, then install and run Regenerate Thumbnails to add your existing photos to the new image size.

    2. Hook the 'genesis_pre_get_image' filter and adjust the size parameter to medium (or an already existing image size) from 'properties.'

    3. There are probably more ways to do this.

    I hope this helps.


    Ryan Meier – Twitter

    June 16, 2014 at 11:45 am #110000
    rfmeier
    Member

    I quickly created a gist for solution two. I was not able to test it fully as I do not have the theme, but the logic is there.

    https://gist.github.com/rfmeier/f867d725f717b66ee671


    Ryan Meier – Twitter

    June 17, 2014 at 4:07 am #110146
    marinandee
    Member

    Hi Ryan,

    You're my man. It's working. I can't thank you enough.

    June 17, 2014 at 7:25 am #110162
    rfmeier
    Member

    Glad I could help. Good luck.


    Ryan Meier – Twitter

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

© 2026 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