New Landing How can we help? Atelier Remove featured image from the top of blog posts?

Viewing 15 posts - 1 through 15 (of 18 total)
  • Posted in: Atelier
  • #212485
    mccaul
    Member
    Post count: 28

    Is it possible to remove the featured image from all individual blog posts by default?

    I want to migrate our old blog, which has an image at the top of each post.. which is now getting duplicated because the default behaviour is the show the featured image at the top of the blog post.

    I know I can go into each and every post and customise this, but obviously that’s going to take an age.

    I’m happy to copy/tweak a theme template file if needs be, just to stop this behaviour.

    I’ve dug around a bit, but can’t find the logic that decides to show it.

    Any advice would be appreciated.

    -Barry

    #212590
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    article.post.single-post-standard figure.media-wrap{
    display:none !important;
    }

    Thanks
    Mohammad

    #213248
    mccaul
    Member
    Post count: 28

    Hi Mohammad,

    Thanks for the suggestion, but that doesn’t stop the image downloading, and the featured images are quite large.
    Rather than hide it with CSS, I was hoping to delete the line of PHP the adds it.

    Could you point me in the right direction?

    Thanks,
    -Barry

    #213252
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code functions.php of child theme.
    remove_action( 'sf_post_article_start', 'sf_post_detail_heading', 99);
    Thanks
    Mohammad

    #213341
    mccaul
    Member
    Post count: 28

    Hi,

    I tried this and it didn’t work.

    For what it’s worth, hiding it with the CSS did work, but as I mentioned, I’d rather pull it from the HTML altogether, and avoid the large download.

    You can see both images are still at the top here:
    http://preview.mccaul.com/2015/06/carved-engagement-ring-commission/

    Despite adding the line you mentioned to functions.php in the child theme. (I also tried adding typo just to make sure the functions.php file was being read, was not cached, and it broke as expected. )

    Any thoughts?

    #213393
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove last code and use this new code:-
    add_action( 'sf_post_article_start', 'sf_post_detail_media', 99 );
    Thanks
    Mohammad

    #213394
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try this:

    remove_action( 'sf_post_content_start', 'sf_post_detail_media', 10 );

    – Kyle

    #213611
    mccaul
    Member
    Post count: 28

    Hi,

    So Mohammad, I tried your option, and I think perhaps you meant ‘remove_action’, rather than add.

    Add actually added a slightly different (full page width), image on top of the other featured image, resulting in three (screen shot attached). The wide featured image, the inline featured image, and then the image we’d included in the actual blog post ourselves (as our old theme didn’t have featured images).

    Kyle, I tried your remove_action too, and it had no effect at all I’m afraid.

    Attachments:
    You must be logged in to view attached files.
    #213619
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me login detail to check in detail.
    Thanks
    Mohammad

    #213625
    mccaul
    Member
    Post count: 28
    This reply has been marked as private.
    #213627
    mccaul
    Member
    Post count: 28
    This reply has been marked as private.
    #213655
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check.
    Thanks
    Mohammad

    #223478
    jadorecoutureblog
    Member
    Post count: 3

    I am having the same issue; I imported my content from Blogger where I did not have a featured image, so now the first image of every post shows twice. Is there a way to remove overall? I tried copying and pasting the CSS code, but I kept getting an error message (not sure if I was putting the code in the correct place).

    #223480
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me specific page url with issue.
    Thanks
    Mohammad

    #223670
    jadorecoutureblog
    Member
    Post count: 3

    Hi Mohammad, It’s on every page. I don’t want to show a featured image at all.
    http://know-design.com/blog/

Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register