Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1018153
    [email protected]
    Participant

    Hello, 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

    #1018191
    Thai
    Moderator

    Hi 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 credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1018224
    [email protected]
    Participant
    This reply has been marked as private.
    #1018345
    [email protected]
    Participant

    Any Luck?

    #1018426
    Jade
    Moderator

    Hi 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.css file:

    .x-post-carousel-meta {
        font-size: 14px;
        color: #ffffff;
    }

    Hope this helps.

    #1018438
    [email protected]
    Participant

    It worked! Thank you guys so much!

    #1018515
    Darshana
    Moderator

    Glad we were able to help πŸ™‚

  • <script> jQuery(function($){ $("#no-reply-1018153 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>