• Resolved ryderg

    (@ryderg)


    Hi, Fukasawa is a great theme. Super simple, and exactly what I’m looking for in a portfolio site.

    I am trying to make the feature image for a post not appear within the post itself, but I still want it to appear on the screen with all the posts. Is there an option to do this, or can I edit the CSS?

    Any help would be appreciated. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • It can be done, but you would need to edit one of the theme files to do so. So there are no theme settings for this. The problem is, if you make this edit, you will lose it if the theme is updated again by Anders. But you can always make the change again to the theme code afterwards.

    Go to the file single.css and remove code lines 46 through 52 that includes the following code:

    <?php elseif ( has_post_thumbnail() ) : ?>

    Done.

    Hi @jixxer,

    I wanted the same as @ryderg so I’ve followed your instructions. From my Dashboard I went to Appearance->Editor->single.php and deleted the line 48 containing the code:

    <?php elseif ( has_post_thumbnail() ) : ?>

    Then I’ve click on “Update File” and it popped up this message:

    “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.”

    Now all the sigle post pages can’t be visualize anymore: even if I paste back the code line that I’ve previously deleted.

    Any idea of how i can fix the problem? I’m not such an expert in these things..

    Thanks a lot!

    • This reply was modified 6 years, 11 months ago by stefanomori.

    I’ve finally reinstalled the Theme and the post pages are working again.
    Do you have any idea how can I change the code lines – as you suggested – without incurring in the same problem?

    I’m also running the same website on localhost and when I delete the code line 48 from the single.php file it works as you wrote above without any problem.

    Thanks!

    Theme Author Anders Norén

    (@anlino)

    Hi @stefanomori,

    I would advise against making changes directly to the PHP files, since those changes will be overwritten every time a new version of Fukasawa is released. Instead, go to Appearance > Customize > Additional CSS and enter the following code:

    .single .featured-media { display: none; }

    That will hide the image on single posts.

    — Anders

    Cool, it worked perfectly! Thanks a lot for this and for the beautiful Theme, Anders ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hiding feature image within post’ is closed to new replies.