Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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.

    #1142340

    Hey 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 Shannon

    #1142386

    Thank you very much, problem solved. Just one more question: where can I edit the size of the single blog post feature image?

    #1142987

    Hi,

    Thanks for the update. How exactly do you want to change the featured images?

    Best regards,
    Rikard

    #1143435

    Hi Rikard,
    I’d like to just change the image ratio.

    All the best

    #1143660

    Hi,

    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,
    Rikard

    #1143795

    Hi 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.

    #1145624

    Hi 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.