• Hello world !

    I have a featured image for all my posts : I’d like it displayed on my front page, but not on my posts (it takes really too much space in the header) ; or at least to be able to reduce it’s width.
    I can’t seem to find the right piece of code to amend or delete. Can somebody help?

    Thanks !

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pmillier

    (@pmillier)

    … by width I meant height, of course. The default feature image in the post header is currently set at 659px, but I can’t find where in the code I can modify that setting. I can’t find this “659” anywhere…

    Thanks for your help !

    There is likely to be a plugin that will let you select which pages or posts a featured image appears on. You might have to try a few out to find one that meets your precise needs.

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi @pmillier, the original height on the featured images on the single post pages is 810px. You can add the following to Customize > Additional CSS and adjust my 400px value as desired.

    .single .entry-background {
      height: 400px !important;
    }
    Thread Starter pmillier

    (@pmillier)

    Thanks @numberland and @sacredpath for your answers !
    I actually managed to delete the featured image altogether and reduce the header to 250px, but with quite a bit of altering of the php and css codes. I’m going to try @sacredpath’ solution, which seems a lot less invasive !

    Thanks again !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Featured image on home page but not on post’ is closed to new replies.