-
AuthorPosts
-
March 13, 2019 at 11:59 pm #1078446
How do I increase the size of the featured image? I need it taller. The width is fine.
March 14, 2019 at 12:43 am #1078461Hey Jeffrey,
Your image itself needs to be taller. The image in that link provided is 321px height full-size. In a nutshell if you want your image taller use a bigger image.
Best regards,
Jordan ShannonMarch 14, 2019 at 12:43 am #1078462Hey Jeffrey,
Your image itself needs to be taller. The image in that link provided is 321px height full-size. In a nutshell if you want your image taller use a bigger image.
Best regards,
Jordan ShannonMarch 20, 2019 at 1:59 am #1080584Wrong. The image is 1030x618px. Your featured image container is probably 321px tall. Is there anyone there that can answer my question who understands WordPress and this theme?
March 21, 2019 at 3:47 am #10811307 days since I asked this simple question. Maybe this format isn’t that efficient for answering questions.
March 21, 2019 at 9:05 am #1081258Hi JeffreySummers,
Enfold prepares other sizes for different components.
You need to change the image size
https://kriesi.at/support/topic/full-list-of-image-dimensions-for-enfold/#post-373563regenerate thumbs and then try to adjust the image via css if it does not show up as you need.
Or you can use simple image sizes plugin and specify the image dimensions there.
Best regards,
VictoriaMarch 22, 2019 at 6:13 am #1081735It seemed to be this code line:
$avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>540); // big images for blog and page entries
I successfully changed the container size and regenerated the existing image and it now works just fine.
Support Note: It would’ve been much easier to have given me this code option in the first place instead of just telling me to “change my image size” which had nothing to do with the issue.
My question now: How do I keep this code change in my child theme so that future changes to the function.php file doesn’t mess it up again? Do I have to copy the entire functions.php file to the child theme or can I use some snippet?
Appreciate the help Victoria.
- This reply was modified 5 years, 8 months ago by JeffreySummers.
March 22, 2019 at 4:51 pm #1081928Hi,
Put the updated functions file into your child-theme directory.
Best regards,
Jordan ShannonMarch 24, 2019 at 7:13 pm #1082333Quick related question…I want the entry_with_sidebar size to be taller so it has a 16:9 aspect ratio. I added this to the functions.php file in my child theme:
$avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>475);I just uploaded a new image into the media library, but the image size for that variation is still as programmed in the theme, 845×321. There doesn’t seem to be any effect to the change in functions.php.
Caching is off. There are no thumbnails to regen because this was a newly uploaded image. The image in question is called “staci-overholt-shower-16×9.jpg”
Is there anything else needed to make that image size change take effect? Any ideas on what I may be missing?
March 24, 2019 at 9:16 pm #1082374AJ…there are multiple lines of code that address all the options for the blog layout, one is for big images if you have that option selected, you don’t say. Make sure the line of code you change matches the size option you have marked in the blog layout options page.
Then you do need to regenerate but you can regenerate only that specific image in the media library.
March 24, 2019 at 9:40 pm #10823752nd question: Can this one line of code change be put into the customizer as a css change? or do I really have to put the entire functions.php file in my child theme folder…because this breaks the theme when I did it and got the white screen of death.
- This reply was modified 5 years, 8 months ago by JeffreySummers.
March 25, 2019 at 2:05 pm #1082664Thanks Jeffrey.
I only added this line to the functions.php file in my child theme:
$avia_config[‘imgSize’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>475);I looked at the Uploads folder at the images created after I added this line, and I saw that the theme still used the default size rather than the new size in the line added in functions.php
I added credentials in the private area of my reply above, so I hope Jordan or one of the other moderators will be able to take a look and let me know what’s going on.
Thanks!
March 26, 2019 at 5:09 pm #1083170AJ; You did not need to add any line, just change the value on the existing line. The fact that you added a line is what the problem is. Now you have two lines commanding the same function. Delete what you added and change the existing line value to what you need. Regenerate and that should be all you need.
March 27, 2019 at 2:02 pm #1083602Thanks! I can do that, but a question remains about life cycle and managing this customization after updating the theme. If I edit the theme’s functions.php file, that edit will be overwritten when the theme is updated, correct? I presumed adding an argument in my child theme’s functions.php would override the parent theme’s functions.php.
I don’t mind making a note to edit the parent theme’s functions.php file, but I am hoping there is a clean way to handle it in the child theme.
Thanks to all for the assistance!
March 27, 2019 at 10:52 pm #1083822Tru dat! It’s why I asked the question above: “2nd question: Can this one line of code change be put into the customizer as a css change? or do I really have to put the entire functions.php file in my child theme folder…because this breaks the theme when I did it and got the white screen of death.”
Putting the entire functions.php file can’t be the way to go since that’s a critical file that will have changes made in the future, that you will need to not overwrite. But I did, but labeled it functions.php2 in the child theme folder.
Still no answer.
March 29, 2019 at 1:52 am #1084366Hi,
You can add the “avf_modify_thumb_size” filter in the child theme’s functions.php file to adjust the size of the existing thumbnails.
Example:
add_filter( 'avf_modify_thumb_size', 'avf_modify_thumb_size_mod', 10, 1 ); function avf_modify_thumb_size_mod( $size ) { $size['entry_with_sidebar'] = array('width'=>845, 'height'=>475); return $size; }
Best regards,
IsmaelMarch 29, 2019 at 4:34 am #1084456Thanks Ismael!!
March 31, 2019 at 1:55 am #1084982That solution worked perfectly, Ismael. Thank you! And when it’s added to the child theme’s functions.php, it will survive a parent theme update. Excellent!
March 31, 2019 at 10:04 pm #1085183 -
AuthorPosts
- The topic ‘Featured Image -Posts’ is closed to new replies.