-
Author
-
February 1, 2016 at 17:48 #101578josebaberriParticipant
Featured image duplicate in the post .
When I write the post, inserted the image as object and also assigned a featured image.
I need to have the picture as object and featured image to display it on the last post widget.
I edit content-image.php file and y comment the following line:
< ? php
if ( get_post_thumbnail_id ()) { / * ? >
< div class = “twelve columns” >
< div class = “article -media clearfix “>
< ? php the_post_thumbnail (); ? >
< / div > <! – end -media article ->
< / div > <! – end twelve ->
< ? php} * / ? >I could not suppress the feauted image in the post.
How I can supress the featured image in the post ?
Thanks,
February 3, 2016 at 17:08 #101875RaduModeratorHi,
Content-image.php will be used as template only if you select that template from that post, by default the post template is content.php
Can you please provide page url where the featured is displayed twice ?
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 4, 2016 at 12:30 #102040josebaberriParticipantProblem solved. I comment thumbnail line.
Thanks
February 4, 2016 at 17:25 #102161RaduModeratorGreat,
Have a nice week
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 12, 2018 at 18:22 #215146RaduModeratorHi,
You can do the file change with your desired behaviour and copy it to child theme in the same location.
wp-content/themes/sweetdate-child/content-image.php
Make sure to have child theme activated, this will make the file change update proof.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.