Tagged: x
-
AuthorPosts
-
August 7, 2016 at 11:03 pm #1121570
Peter FaeParticipanthey, I want the featured image to be the ‘featured post’ width for every post in my blog
how is do?
(I did look this up in the help forum, and yet, strangely, did not find an answer)
August 7, 2016 at 11:07 pm #1121575
RupokMemberHi there,
Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
August 8, 2016 at 3:10 am #1121739
Peter FaeParticipantId like to have all of my posts in the Ethos framework automatically show the ‘featured image’ full-width as if I had checked the box on the post level.
example –> http://academy.intothemythica.com/articles/
August 8, 2016 at 3:17 am #1121750
Peter FaeParticipantah. actually, this –> http://academy.intothemythica.com/category/courses/
i want all the posts on the site to automatically do this. show the featured image full-width.
August 8, 2016 at 3:20 am #1121757
Rue NelModeratorHello There,
What you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
After the child theme is set up, please add the following code in your child theme’s functions.php file
// Featured Index Content // ============================================================================= if ( ! function_exists( 'x_ethos_featured_index' ) ) : function x_ethos_featured_index() { $entry_id = get_the_ID(); $index_featured_layout = true; $index_featured_size = get_post_meta( $entry_id, '_x_ethos_index_featured_post_size', true ); $index_featured_layout_class = ( $index_featured_layout == 'on' ) ? ' featured' : ''; $index_featured_size_class = ( $index_featured_layout == 'on' ) ? ' ' . strtolower( $index_featured_size ) : ''; $is_index_featured_layout = $index_featured_layout == 'on' && ! is_single(); ?> <a href="<?php the_permalink(); ?>" class="entry-thumb<?php echo $index_featured_layout_class; echo $index_featured_size_class; ?>" style="<?php echo x_ethos_entry_cover_background_image_style(); ?>"> <?php if ( $is_index_featured_layout ) : ?> <span class="featured-meta"><?php echo x_ethos_post_categories(); ?> / <?php echo get_the_date( 'F j, Y' ); ?></span> <h2 class="h-featured"><span><?php x_the_alternate_title(); ?></span></h2> <span class="featured-view"><?php _e( 'View Post', '__x__' ); ?></span> <?php else : ?> <span class="view"><?php _e( 'View Post', '__x__' ); ?></span> <?php endif; ?> </a> <?php } endif;And by the way, X 4.6.1 is now available in automatic updates! This release contains fixes for several issues so be sure to check out the changelog. Please do update to the latest version. After doing the updates, always remember to clear all caches when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.
Please let us know how it goes.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1121570 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
