This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Featured Image in Layout builder

  • Creator
  • #14407
    Johanna Heath

    In the layout builder you it is possible to include the Page / post title in the heading, using %page_title%.

    I am trying to create a generic layout for posts, and would like to be able to add the feature image in the same way as the page title. Is there a way of doing this?

Viewing 1 replies (of 1 total)
  • Author
  • #14410
    Jason Bobich

    This will be a customization you’d need to make from your child theme in order for this to be possible. You could possibly create your own Layout Builder element that just pulls the featured image for the current post.

    If you wanted something in a content block like %thumbnail% or something, you’d have to filter that in. There’s a filter “themeblvd_the_content” that is applied to many areas of outputted content from the Layout Builder. That might be a logical filter to attach a function that uses something like PHP’s str_replace to just do a replace of that %thumbnail% key with grabbing the featured image.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.