Created
July 9, 2019 20:25
-
-
Save SteveJonesDev/161602fb22feb3bc868d32b6ba44e33e to your computer and use it in GitHub Desktop.
Change featured image size on a specific archive page in Genesis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Change featured image size on a specific archive page | |
| function sjd_custom_loop_image_size( $image_size ) { | |
| if(is_archive('testimonial')){ | |
| $image_size = 'content-slider'; | |
| return $image_size; | |
| } | |
| } | |
| add_filter( 'genesis_pre_get_option_image_size', 'sjd_custom_loop_image_size' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment