This topic has 6 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #101578
     josebaberri
    Participant

    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,

    #101875
     Radu
    Moderator

    Hi,

    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 solution
    #102039
     josebaberri
    Participant
    This reply has been set as private.
    #102040
     josebaberri
    Participant

    Problem solved. I comment thumbnail line.

    Thanks

    #102161
     Radu
    Moderator

    Great,

    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 solution
    #215132
     ihrony
    Participant

    How it solved?

    #215146
     Radu
    Moderator

    Hi,

    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
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?