Tagged: x
-
AuthorPosts
-
May 31, 2016 at 9:00 am #1018153
[email protected]ParticipantHello, need help getting the post except to show up when you hover over the carousel, have already implemented the code in https://community.theme.co/forums/topic/help-getting-post-excerpt-in-ethos-post-carousel/#post-191661
but it is still not working as you can see http://www.alaseraesthetics.com/
http://www.aboutfaceskinandhair.com.au/category/services/ is the look I’m trying to duplicate, thanks Jack
May 31, 2016 at 9:23 am #1018191
ThaiModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
β Link login to your site
β WordPress Admin username / password
β FTP credentialsDonβt forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
May 31, 2016 at 9:50 am #1018224
[email protected]ParticipantThis reply has been marked as private.May 31, 2016 at 10:58 am #1018345
[email protected]ParticipantAny Luck?
May 31, 2016 at 11:43 am #1018426
JadeModeratorHi Trevor,
Please update the code in the functions.php to:
// Entry Cover // ============================================================================= if ( ! function_exists( 'x_ethos_entry_cover' ) ) : function x_ethos_entry_cover( $location ) { if ( $location == 'main-content' ) { ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <a class="entry-cover" href="<?php the_permalink(); ?>" style="<?php echo x_ethos_entry_cover_background_image_style(); ?>"> <h2 class="h-entry-cover"><span><?php x_the_alternate_title(); ?></span></h2> </a> </article> <?php } elseif ( $location == 'post-carousel' ) { ?> <?php GLOBAL $post_carousel_entry_id; ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <a class="entry-cover" href="<?php the_permalink(); ?>" style="<?php echo x_ethos_entry_cover_background_image_style(); ?>"> <h2 class="h-entry-cover"><span><?php ( $post_carousel_entry_id == get_the_ID() ) ? the_title() : x_the_alternate_title(); ?></span></h2> <div class="x-post-carousel-meta"> <?php echo substr(get_the_excerpt(), 0,200); ?> </div> </a> </article> <?php } } endif;Then add this CSS in the
style.cssfile:.x-post-carousel-meta { font-size: 14px; color: #ffffff; }Hope this helps.
May 31, 2016 at 11:54 am #1018438
[email protected]ParticipantIt worked! Thank you guys so much!
May 31, 2016 at 12:36 pm #1018515
DarshanaModeratorGlad we were able to help π
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1018153 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
