Viewing 1 replies (of 1 total)
  • Hi @joseh9,

    Actually, the same code should do it.

    Calling the_post_thumbnail_url( 'full' ); inside the loop will return to you the image url. So, if you use something like

    <h2 style="background-image:url(<?php the_post_thumbnail_url( 'full' ); ?>)"><?php the_title(); ?></h2>

    you should get what you want. Here is the function documentation.

    • This reply was modified 6 years, 6 months ago by Felipe Elia.
Viewing 1 replies (of 1 total)
  • The topic ‘Que los titulos de las entradas del blog tengan de fondo la foto destaca’ is closed to new replies.