Home>Support>Showing featured image on custom page template under child theme

Showing featured image on custom page template under child theme

Hi,

I am facing an issue that I am not able to setup my custom template page to be able to show featured image set up in my child theme (which is inherited from Vantage).

This worked well with the following scenarios:

original Vantage theme + “Full Width Page, No Title” template + set up featured image
the same as above, but with child theme already

But I have stucked when I introduced my custom page template.

Could you please help me out?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 4 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Hi Bandeee

    Thanks for reaching out.

    We can’t get too deep into custom development within our free support scope but can try to make suggestions.

    Here is an example of the Vantage featured image function being called https://github.com/siteorigin/vantage/blob/develop/content-page.php#L20.

    Here is a more conventional example calling the featured image https://github.com/siteorigin/siteorigin-corp/blob/develop/template-parts/content-page.php#L17.

    https://developer.wordpress.org/reference/functions/the_post_thumbnail/

    I hope that helps.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More