Tagged: x
-
AuthorPosts
-
November 20, 2016 at 2:33 pm #1264541
DiordonovanParticipantIs it possible to have the featured image as header? So every blog post has its own header (its featured image).
It must be a header as my other pages.
http://www.millionthingstodo.com is the website, it’s in Ethos.
November 20, 2016 at 9:44 pm #1264822
LelyModeratorHi There,
Thanks for posting in. Yes that is possible. Please try adding the following code on your child theme’s functions.php file:
function x_featured_image_as_header ( ) { if ( is_singular('post') ) { $thumb = get_the_post_thumbnail( NULL, 'entry', NULL ); printf( '<div class="entry-thumb">%s</div>', $thumb ); } } add_action('x_before_view_ethos__breadcrumbs', 'x_featured_image_as_header');Hope this helps.
November 21, 2016 at 12:32 am #1264961
DiordonovanParticipantThank you! Now I need it fullwith and you see the image twice now. I want to remove the second one above the title.
As you can see on http://www.millionthingstodo.com/test-3/ and http://www.millionthingstodo.com/10-dingen-wil-brazilie-eten-en-drinken/
November 21, 2016 at 12:36 am #1264964
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> Global CSS :
.single-post .entry-thumb { width: 100%; } .single-post .entry-featured { display: none; }Hope that helps.
November 21, 2016 at 12:47 am #1264968
DiordonovanParticipantI removed the image already. At the moment I only want to have the header image fullwidth.
November 21, 2016 at 12:53 am #1264974
Paul RModeratorHi,
Kindly change the code provide with this.
.single-post .entry-thumb, .single-post .entry-thumb img { width: 100%; } .single-post .entry-featured { display: none; }Hope that helps.
November 21, 2016 at 1:11 am #1264985
DiordonovanParticipantThank you! Is it also possible to have it like my pages, because at the moment the images are very stretched.
Here some examples:
http://www.millionthingstodo.com/over-million-things-to-do/
http://www.millionthingstodo.com/reisvideos/
http://www.millionthingstodo.com/reisgidsen/November 21, 2016 at 1:23 am #1264993
ChristopherModeratorHi there,
The images dimensions are different. It should be around 1200*800px.
Also note that on this page http://www.millionthingstodo.com/over-million-things-to-do/, image is being displayed as background and the other is displaying inside<img>tag.Thanks.
November 21, 2016 at 2:04 am #1265016
DiordonovanParticipantAnd isn’t it possible to insert this as a background and change the single page in php?
November 21, 2016 at 2:13 am #1265019
ChristopherModeratorHey there,
Thanks for writing in! Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding. Take care!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1264541 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
