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*

spectrum_7

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: featured image size issue #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' ) );
    	}
    in reply to: featured image size issue #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.

    in reply to: Can I use a custom post type featured image in the slider? #19421
    spectrum_7
    Participant

    Okay I figured it out…

    I had the wrong name for my custom post type. =(. I put in the right name into the array and copied the whole function over to my functions.php file and it works great.

    in reply to: How to add an additional div in the header? #19034
    spectrum_7
    Participant

    Yes it is.

    Cheers

    in reply to: How to add an additional div in the header? #19022
    spectrum_7
    Participant

    Okay, thanks.

    I had the priority wrong on my unhook function….

    And… I was hoping there was a simpler way than adding and hooking the 800+ lines of code from interface_headercontent_details() into my functions.php.

    Here’s the unhook:

    `//Remove the original headercontenct_details

    function remove_interface_header_details() {
    remove_action( ‘interface_header’, ‘interface_headercontent_details’, 10 );
    }
    add_action(‘interface_header’,’remove_interface_header_details’ , 9 );

    //here’s the custom hook
    add_action( ‘interface_header’, ‘my_interface_headercontent_details’, 10 );
    function my_interface_headercontent_details() { THE FUNCTION GOES HERE }’

Viewing 5 posts - 1 through 5 (of 5 total)