-
AuthorPosts
-
September 26, 2019 at 2:17 pm #1142273
Dear All,
I use Enfold on all my websites. However (I think it depends on different theme settings), my single blog entries look different on mobile. This time my blog entries look like they’re pushed to the left and there is an empty gap on the right. Is there a CSS class I can use so the post can show fullwidth (only on mobile phone)? Also, where can I edit the size of the feature image?
Thanks in advance.
September 26, 2019 at 4:13 pm #1142340Hey darnott75,
You need to find and remove this code from your css to fix the issue:
.container .av-content-small.units { width: 80% !important; }
Best regards,
Jordan ShannonSeptember 26, 2019 at 4:51 pm #1142386Thank you very much, problem solved. Just one more question: where can I edit the size of the single blog post feature image?
September 28, 2019 at 12:43 pm #1142987Hi,
Thanks for the update. How exactly do you want to change the featured images?
Best regards,
RikardSeptember 30, 2019 at 5:29 pm #1143435Hi Rikard,
I’d like to just change the image ratio.All the best
October 1, 2019 at 11:27 am #1143660Hi,
We can’t really do that for you with CSS unfortunately, if you change the ratio of the image then there will likely be distortion to it unfortunately. Maybe you could try adjusting the image in software like Photoshop and then upload it again? If that is not what you are looking for then please try to explain a bit further or post a screenshot highlighting your intentions.
Best regards,
RikardOctober 1, 2019 at 3:52 pm #1143795Hi Rikard,
thanks again for you help. I try to be more specific. The feature images are cropped to a certain ratio by default. Is it possible to change the aspect ratio? I use PS in advance but single post feature images seem to be cropped by default. Can I for example use somehow the original dimensions?
Thank you in advance.
October 7, 2019 at 6:16 am #1145624Hi darnott75,
Can you try adding this code in your functions.php (we suggest using a child theme and use it there, so it will not be removed on theme update):
add_filter('avf_post_featured_image_link', 'custom_post_featured_image_link', 10, 3); function custom_post_featured_image_link($thumb, $current_post, $size) { if ( is_single( get_the_ID() ) ) { return get_the_post_thumbnail( get_the_ID(), 'full' ); } return $thumb; }
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.