Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #982622
    mpanesar
    Participant

    Hi,

    style.css created, many thanks.

    Can we investigate the original issue please?

    #983019
    Friech
    Moderator

    Hi There,

    The social share and tags are showing up on my end. Would you mind to clarify the issue?


    screenshot

    And confirm the query here please, the file is different from the one we provided.

    Thanks.

    #983768
    mpanesar
    Participant
    This reply has been marked as private.
    #984317
    Rupok
    Member

    Hi there,

    Thanks for writing back. Author page is not using the same file rather archive template. You might have enabled excerpt for archive template. Can you find and share the code you are using to add excerpt?

    Cheers!

    #986697
    mpanesar
    Participant

    Hi Rupok,

    Thanks for your reply, where could I find the archive template please?

    #987114
    Rupok
    Member

    Hi there,

    You can look at the global folder (framework/views/global) and the files _content-the-excerpt.php and _content.php.

    Before that check your Child Theme that if you enabled excerpt by any function.

    Thanks

    #996053
    mpanesar
    Participant

    Hi,

    No changes made to those files – all under the X theme.

    _content-the-excerpt.php

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_CONTENT-THE-EXCERPT.PHP
    // -----------------------------------------------------------------------------
    // Display of the_excerpt() for various entries.
    // =============================================================================
    
    ?>
    
    <?php do_action( 'x_before_the_excerpt_begin' ); ?>
    
    <div class="entry-content excerpt">
    
    <?php do_action( 'x_after_the_excerpt_begin' ); ?>
    
      <?php the_excerpt(); ?>
    
    <?php do_action( 'x_before_the_excerpt_end' ); ?>
    
    </div>
    
    <?php do_action( 'x_after_the_excerpt_end' ); ?>

    _content.php

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_CONTENT.PHP
    // -----------------------------------------------------------------------------
    // Display of the_excerpt() or the_content() for various entries.
    // =============================================================================
    
    $stack                     = x_get_stack();
    $is_full_post_content_blog = is_home() && x_get_option( 'x_blog_enable_full_post_content' ) == '1';
    
    ?>
    
    <?php
    
    if ( is_singular() || $is_full_post_content_blog ) :
      x_get_view( 'global', '_content', 'the-content' );
      if ( $stack == 'renew' ) :
        x_get_view( 'renew', '_content', 'post-footer' );
      endif;
    else :
      x_get_view( 'global', '_content', 'the-excerpt' );
    endif;
    
    ?>

    No file in x-child theme appears to call the excerpt function

    Any other advise would be appreciated.

    #998023
    Rad
    Moderator

    Hi there,

    It depends on the stack, for example, on renew stack, post tags are set displayed on single post only, or at post items that have homepage full content is enabled.

    ( is_singular() || $is_full_post_content_blog )

    ( $stack == 'renew' ) :

    The solution is editing that file and changing this block of code

    if ( is_singular() || $is_full_post_content_blog ) :
      x_get_view( 'global', '_content', 'the-content' );
      if ( $stack == 'renew' ) :
        x_get_view( 'renew', '_content', 'post-footer' );
      endif;
    else :
      x_get_view( 'global', '_content', 'the-excerpt' );
    endif;
    

    to this,

    if ( is_single() ) :
      x_get_view( 'global', '_content', 'the-content' );
      x_get_view( 'renew', '_content', 'post-footer' );
    else :
      x_get_view( 'global', '_content', 'the-excerpt' );
    endif;

    Hope this helps.

    #999966
    mpanesar
    Participant

    Hi,

    Thats done the trick!!!! Thank you all for your help and assistance! very appreciated 🙂

    #1000037
    Rahul
    Moderator

    You’re welcome!

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