badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

featured image size issue

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #16843
    moggone
    Participant

    hello, just a question : why featured images on the pages are resized to a max width of 670px while the page itself is 708px large (indepently of the layout option (narrow, wide etc.) I choose)?
    can I change it somewhere to have my image & my page aligned to a unique width ?

    image of the 38px (37px?) difference :
    http://imgur.com/ODHxvyk

    best regards

    #16891

    Hi moggone,
    If you want to change the size of the image then you need code customization for it. We recommended not to change the code because if you change the code then while updating to our new version all your customisation code will be lost.

    Just go to the theme folder -> functions.php

    Can you see this ?

    	// Add Interface custom image sizes
    	add_image_size( 'featured', 670, 300, true );

    You change the size into any size you want. The above add_image_size cuts the image in 670 * 300 px. But every time you update to our theme you need to change the size of image.

    Thank You!

    #17262
    moggone
    Participant

    thank you very much but I’ve finally succeeded in to change the width of my page to 670px, I don’t realy know how (maybe in site options > layout optons menu). anyway, everything is ok now…

    #17283

    Ok that’s great moggone

    Thank you!

    #19434
    spectrum_7
    Participant

    Hello, I am also looking for a way to make the featured images look better on post pages, basically I just need to set the cropping more specifically.

    I tried your solution above by pasting the following modified code into my child theme functions.php:

    
    	// Add Interface custom image sizes
    	add_image_size( 'featured', 670, 300, array( 'left', 'top' ) );

    however a new featured image crop was not created. I thought it might only work on images uploaded after changing the setting, however new images are also not cropped.

    Any suggestions how to do this? Thanks.

    #19435
    spectrum_7
    Participant

    Well, no sooner than I ask, I figure it out… I forgot to wrap the add_image_size in a function and make sure it fires after the priority that is set on the function that created the original featured image size.

    	// Custom cropping on Interface featured image
    	
    	add_action( 'interface_init', 'override_featured_image', 30 );
    		
    	function override_featured_image() {
    	
    	add_image_size( 'featured', 670, 300, array( 'left', 'top' ) );
    	}
    #19437

    Ok that’s great spectrum_7

    Thank you!

    #19618
    ericsteve85
    Participant

    Em also finding solution for Feature images and try to implement on

    ducklife3.co.in
    http://www.desktoptowerdefense.com

    #19669

    Hi ericsteve85,
    I just visited to your site and this is not our theme. So please post your topic on related forum author.

    Thank you!

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