• The 2 new image sizes that come with Geneis Blocks are great (GB Grid Square and GB Grid Landscape). However, they don’t appear to be available choices outside of the Post and Page Grid block. I’d like to use them in other contexts. What can be done?

    I added them to a function in my mu-plugins folder (one that adds a filter for the image_size_names_choose hook), but that doesn’t fix it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not sure what context you’re looking to use them in, but if you want to use the get_the_post_thumbnail() function, you can use the following image sizes:

    • gb-block-post-grid-landscape
    • gb-block-post-grid-square

    ie. get_the_post_thumbnail( $post->ID, 'gb-block-post-grid-square' );

    • This reply was modified 3 years, 1 month ago by Derek Rippe.
    Thread Starter Jeff Cohan

    (@jdcohan)

    Thanks, @dwrippe.

    The context I’m thinking about is adding media to a page or post.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘GB Grid image sizes not available outside of Post and Page Grid block’ is closed to new replies.