Tagged: Blog, child theme, featured image
-
AuthorPosts
-
August 8, 2017 at 5:27 pm #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!
August 9, 2017 at 2:46 pm #836431Hey 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,
VictoriaAugust 9, 2017 at 3:43 pm #836454Hi 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!
August 10, 2017 at 1:11 pm #836948Hi 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,
VictoriaAugust 10, 2017 at 4:45 pm #837055Hi,
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.
August 11, 2017 at 12:52 pm #837423Hi 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,
VictoriaAugust 11, 2017 at 7:07 pm #837605I regenerated the thumbnails again and now everything is looking like I want. Thanks for your help!
August 11, 2017 at 8:06 pm #837643Hi! 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!
SarahAugust 22, 2017 at 4:41 pm #842644This post can be closed. Thanks!
August 24, 2017 at 6:09 pm #843635Hi,
Sure. Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Blog Featured Image Size on Child Theme’ is closed to new replies.