Tagged: x
-
AuthorPosts
-
March 27, 2016 at 2:13 am #854024
Hey!
I’ve just altered my child theme so that the entry post appears below the featured image
http://inglewoodinnweddings.com.au/2016/03/27/rainy-day-weddings/
and used the following code:
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<div class=”entry-wrap”>
<?php x_icon_comment_number(); ?>
<div class=”x-container-fluid max width”>
<?php if ( has_post_thumbnail() ) : ?>
<div class=”entry-featured”>
<?php x_featured_image(); ?>
</div>
<?php endif; ?>
<?php x_get_view( ‘icon’, ‘_content’, ‘post-header’ ); ?>
<?php x_get_view( ‘global’, ‘_content’ ); ?>
</div>
</div>
<?php x_google_authorship_meta(); ?>
</article>However now part of my meta isn’t showing up such as who it’s published by and the category.
March 27, 2016 at 2:14 am #854025I would also like to include more of a gap between the featured image and header
March 27, 2016 at 2:21 am #854029Hello There,
Thanks for writing in! Upon checking your site, you are using renew stack. You should be using this code:
<?php // ============================================================================= // VIEWS/RENEW/CONTENT.PHP // ----------------------------------------------------------------------------- // Standard post output for Renew. // ============================================================================= ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-wrap"> <?php if ( has_post_thumbnail() ) : ?> <div class="entry-featured"> <?php x_featured_image(); ?> </div> <?php endif; ?> <?php x_get_view( 'renew', '_content', 'post-header' ); ?> <?php x_get_view( 'global', '_content' ); ?> </div> </article>
Hope this helps. Please let us know how it goes.
March 27, 2016 at 2:25 am #854031Thank you, that fixed it! How do I add more of a gap between the featured image and header?
March 27, 2016 at 2:31 am #854036Hello Again,
To add more gap between the header and featured image, please update your code to this:
<?php // ============================================================================= // VIEWS/RENEW/CONTENT.PHP // ----------------------------------------------------------------------------- // Standard post output for Renew. // ============================================================================= ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-wrap"> <?php if ( has_post_thumbnail() ) : ?> <div class="entry-featured mbm"> <?php x_featured_image(); ?> </div> <?php endif; ?> <?php x_get_view( 'renew', '_content', 'post-header' ); ?> <?php x_get_view( 'global', '_content' ); ?> </div> </article>
Please noticed that we have added
mbm
class in the featured image block. This is a utility class which means margin bottom medium. To know more about element spacing utility class, check it out here:
https://community.theme.co/kb/element-spacing/
https://community.theme.co/kb/css-class-index/Hope this helps.
March 27, 2016 at 3:06 am #854045Sorry one last question – my mind is having a massive blank!
https://community.theme.co/kb/customizer-blog/
At the bottom there it shows the option to search, recent posts, etc.
http://inglewoodinnweddings.com.au/blog/
How do I do to the same to mine but to include archives, categories etc
March 27, 2016 at 3:15 am #854051Hello Again,
Please do not select fullwidth layout so that you will gonna have a sidebar. In your sidebar, you can add the search and recent post widgets which is the same in the example.
Regarding the excerpts, WordPress generates an excerpt automatically by selecting the first 55 words of the post. If in case you are using Cornerstone, the auto excerpt fails because it will detect that the content is using shortcodes. This is what happen in your posts. There are no auto excerpt being generated since you have created your post with Cornerstone. To display the excerpt, you have to use the manual excerpts. To add an excerpt to a post, simply write one in the Excerpt field under the post edit box. Please see the screenshot below: http://prntscr.com/9j98do
Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts here: https://codex.wordpress.org/Excerpt
Hope this helps.
March 27, 2016 at 3:26 am #854053That’s fixed it however in doing that, I’ve lost the ability to have a fullwidth background for a section on the home page
http://inglewoodinnweddings.com.au/
Is it possible to do something different for the home page only?
And thanks for the info about the excerpts! I was wondering about that.
March 27, 2016 at 3:44 am #854057Hello Again,
You can change the page template in your homepage. I would recommend that you use the Blank – No Container | Header, Footer page template so that you can have a fullwidth background for your section.
Hope this helps.
-
AuthorPosts