Replies: 0
I would like to write a code, just like the one below, that would allow me to use a segond featured image.
<div class=”chama” style=”background: url(<?php the_post_thumbnail_url(‘full’); ?>); background-position: center center !important;”>
</div>
The problem is that I am trying to replace the php code inside the url container, but nothing appears, it breaks the code and all the elements that should appear after this DIV are not being rendered.
This one is the code I have tried, but it didn’t work:
<div class=”chama” style=”background: url(<?php echo kdmfi_get_featured_image_src(‘featured-image-2’); ?>); background-position: center center !important;”>
</div>
Thanks in advance