Archived topic
Background image in my header other than featured image
5 replies · Started by Beatriz on March 14, 2022
How can I dynamically add an image to my header other than the featured image?
I am using Elements and Dynamic background image, I try to use Post meta, following an example video but it is not working for me.
Any ideas on how to do what I need ?
Thank you!
Hi there,
Do you have a Custom Field set up on the post to store the Image ? If so - is that using ACF or another plugin etc.
ohh it is with ACF! I have never used it, I will look for information, it seems that the time has come to do it, thank you.
ACF isn't necessary - but it does make create a much nicer UI then using WordPress built in Custom Fields.
If you decide to go that way then see here for the Image field documentation:
https://www.advancedcustomfields.com/resources/image/
And in the field where it says: Return Format select Image ID
Once thats done you can use the Post Meta dynamic text type for your background image in your Block Element.
thanks for your help David! it works fine!
Glad to hear that!