Site logo

Archived topic

Featured image as background image

5 replies · Started by anabella on April 9, 2021

Viewing posts 1–6 of 6

I created a grid for my taxonomy "Authors". In this grid, I want to display the name and image (as background image) for each author. The background image should be the featured image, but I can't find a way to do so. I checked this thread https://generatepress.com/forums/topic/featured-image-on-single-post-as-div-background/ but I couldn't make it work.
Should I be using a different code?
Thank you so much in advance.

Hi there,

quite complicated to do that.
First off WP doesn't handle Featured Images for archives.
Secondly i am not sure how you're generating the grid of author links - is that a plugin creating the grid ?

Thanks for your reply David.
Yes, I am using a plugin that helps users to turn woocommerce into a book store.

So, this plugin creates the taxonomy "Autor" (author). Then it provides the shortcode [autores] to display all of the authors. Originally this shortcode displays the authors as a simple list (ul). I just used some CSS to display that

    as a grid.

Have you spoken with the plugin author ? As its not something we can help with changing.

Thanks David! You are right, I will contact the plugin author.

No problems - hope you find a solution :)

This archived topic is closed to new replies.