Featured header image display possibilities
-
Hey guys,
I’m searching a possibility to set the featured image header on my front page. I found out that I can set the featured image header only on my front page OR on my blog page. Is there a possibilty to set this header on my front page instead of my blog page?
front page: http://culinatalie.com
blog page: http://culinatalie.com/rezepte/Thank you!!
-
Still waitin for help! 🙂
Are you talking about moving the entire Featured Content slider from the blog to your static homepage? Or something else?
To do that you’ll need to create a child theme, and them move some code around. But before I give you any further details, please confirm what you’d like to do. Thanks.
Hi Kathryn,
thanks for your quick reply. I’d like to show featured content (image header) on both pages. So once on my blog page and on the other hand also on my static starting page.
Regards,
NatalieEDIT: You shouldn’t need a child theme, please see my next comment
To point you in the right direction, the first step would be to create a child theme, so your changes won’t be overwritten when you update the theme. If you’re new to child themes, you can explore these guides:
http://codex.ww.wp.xz.cn/Child_Themes
https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/
Make a copy of
header.phpfrom the parent and put it in your child theme folder.In your child theme’s copy of the file, change line 54 from this:
<?php if ( is_home() || is_front_page() || ( is_single() && 'image' == get_post_format() ) ) : ?>to this:
<?php if ( is_home() || is_front_page() || is_blog() || ( is_single() && ‘image’ == get_post_format() ) ) : ?>– this is not right, there is nois_blog()function, I made it up 😀If your current static front page has a featured image set, be sure to remove it in the editor.
Let me know how it goes.
-
This reply was modified 8 years, 10 months ago by
Kathryn Presner. Reason: added note
Actually, before you create a child theme, please just try removing the featured image on your static homepage.
That alone might be enough to have the Featured Content slider appear there.
Let me know.
I never worked with a child theme.. seems complicated to me. But your last answer I don’t really understand.
“try removing the featured image on your static homepage.” now it’s no featured image on my static homepage. This is what I want. On my landing page there is set a header image, but here I want to show also the featured images (slider with jetpack). And not only on my post-page (http://culinatalie.com/rezepte/).
Regards and thank you!
Hi Kathryn,
I removed the header image from the page, I deactivated the header in the Customizer but still the cherries are displayed??
Regards,
NatalieHmm. I can’t seem to replicate this on a test site. Do you have any caching plugins running? Could you try turning it off?
Could you take a screenshot of the post edit screen for the homepage in WP Admin so I can take a look?
Here’s a guide on how to make a screenshot:
http://en.support.wordpress.com/make-a-screenshot/You can upload the screenshot – in a graphic format like JPG, PNG, or GIF – in your Media Library, and provide a link so I can see it, or upload it with a service like Cloudup, Imgur or Snaggy.
Hello,
now it worked out – I can show the featured image header on my front page. But is there a possibility to remove it from my blog page? There I want to set a normal header image. I’m so sorry for bothering you. 😉
Regards and thank you!
-
This reply was modified 8 years, 10 months ago by
natalie173.
Hi, this will hide the featured images in the slider, and the slider controls on your Rezepte page. The second rule would allow you to add a static header image. I’ve set the image to “cover” the area, so there will be some cropping and resizing going on to keep the entire slider area covered with the image.
.blog .featured-content article, .blog .featured-content .slider-nav { visibility: hidden; } .blog .featured-content .site-banner { background: url('URL_OF_IMAGE') no-repeat scroll center top / cover; }I forgot to mention, replace URL_OF_IMAGE with the URL of the image you wish to use as your header. There could be some adjustments that will have to be made.
-
This reply was modified 8 years, 10 months ago by
The topic ‘Featured header image display possibilities’ is closed to new replies.

