• Resolved tastymouse

    (@tastymouse)


    I like the panel template however I don’t want the featured image of the child pages in the background. How can I hide this?
    I do want the featured image in the header when people click the read more, that’s why I need the featured image. I just want them show up when the child pages are shown individually.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @tastymouse Could you provide a link to your site and point me to which featured images you want to hide, so I can have a look directly? It’s a bit tricky to guess at the code otherwise. Thanks!

    Thread Starter tastymouse

    (@tastymouse)

    Hi Katrhryn,
    On https://joycelakwijk.nl.greenhostpreview.nl/ we want to alternate the child pages with and without background image. And when you click the read more we do want the background image in the header.
    Thanks, Tom

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi there, this can be done. What you would want to do is to set featured images on all the child pages. Then on the front page, you will need to use the web inspector to get the unique post CSS id for that particular page section You would then use that in combination with the home CSS class from the opening body html tag. The following example would be for your Realisatie communicatie child page. You can use it as a guide.

    .home #post-45 {
    	background-image: none !important;
    }
    Thread Starter tastymouse

    (@tastymouse)

    This works, thanks, Tom

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    You are welcome.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to hide the featured image of child-pages on frontpage?’ is closed to new replies.