Tagged: featured image
I had a previous theme where the only feature I liked was that it could automatically take the features image of each post and display it full-width across the top of the post like this:
Is this possible in Enfold? Does anyone know how to do it please?
Hey Gavin,
Thank you for the inquiry.
This should be possible but we have to modify the single.php file template directly. We can use the default markup of the color section element and place it in the template file. Please edit the single.php file, remove everything and replace it with the following code.
// https://pastebin.com/nFnuKsas
You can add the featured image as usual and it will display as a full width element at the very top of the page.
Best regards,
Ismael
Hi Ismael.
That’s fantastic, thanks very much!
Hi,
Glad Ismael could help! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Enjoy the rest of your day!
Best regards,
Yigit