Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #835930

    Hello,

    I used this post to update the size of the featured images on my blog: https://kriesi.at/support/topic/blog-featured-image-width-and-height/

    It worked great until I switched to a child theme. I added this code to my functions.php file, but it doesn’t seem to be taking. Is there something else I need to do?

    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>479);
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>686 );

    Sample blog post: http://mjm.flywheelsites.com/healthcare-practice-making-digital-mistakes/

    Thank you!

    #836431

    Hey MattJensenMarketing,

    Here is what is limiting the size of the image http://imgur.com/a/hFklW, you can adjust this in theme options.
    Or just add this to the Quick css

    
    .responsive .container {
        max-width: 1500px;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #836454

    Hi Victoria,

    I added the code you suggested to my css and regenerated the thumbnails, but unfortunately it didn’t have any effect. The problem I’m having is not with the width of the images, but the height. I migrated content from another blog and want the featured image to be the same size so that I don’t have to change all of the artwork.

    When I was not using a child theme, I adjusted the following code and it worked great. But, when I updated to a child theme, I copied the same code into my blank functions.php file but the featured photos reverted back to default size.

    $avia_config['imgSize']['entry_with_sidebar'] 	= array('width'=>845, 'height'=>479);
    $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>686 );

    Let me know if you need more information!

    #836948

    Hi MattJensenMarketing,

    There was no need to regenerate thumbs and I don’t see the code being applied to your website. Below is what happens when I add the code to your website. Also the image aspect ratio does not allow the 686px height. When I increase the container the image gets 1340×576 px, your images have to have more height then.

    Best regards,
    Victoria

    #837055

    Hi,

    I don’t think I’m explaining myself very well. I don’t actually want to change the width of the image container. I still want it to be responsive—I just want to change the ratio so that my photos don’t get cut off at the top and bottom. I know it’s possible because I was able to change the code when I was running the regular Enfold theme, but not when I am running a child theme.

    I did some more searching on the support forums and I found this post with the same problem: https://kriesi.at/support/topic/problem-changing-size-of-featured-image-in-blog-post-via-child-theme/

    I added the plug-in suggested in this post and it worked on some posts, but not all of them.

    Working: http://mjm.flywheelsites.com/fall-love-audience/

    Not Working: http://mjm.flywheelsites.com/healthcare-practice-making-digital-mistakes/

    Thank you!

    • This reply was modified 7 years, 4 months ago by MJM.
    #837423

    Hi MattJensenMarketing,

    The image on the first link has an original size of 1000x567px, the image in the second on has original dimensions of 1000x423px and it has been cropped on upload. You need regenerate thumbs.

    Here is some theory for you:

    Best regards,
    Victoria

    #837605

    I regenerated the thumbnails again and now everything is looking like I want. Thanks for your help!

    #837643

    Hi! We’re glad that Victoria was able to help you! We’ll close this topic now. For any other questions or issues, feel free to post them here on the forum and we will do our best to assist you.

    For your information, you can also take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/

    We’d also appreciate it if you can take a moment to review our theme if you haven’t already. https://themeforest.net/downloads

    Thank you for using Enfold.
    Cheers!
    Sarah

    #842644

    This post can be closed. Thanks!

    #843635

    Hi,

    Sure. Thanks for using Enfold :)

    Best regards,
    Nikko

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Blog Featured Image Size on Child Theme’ is closed to new replies.