Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1027556
    antowp
    Participant

    Hello,

    I am using Ethos 01, the portfolios are working well, but all descriptions of portfolio-tags are not showed at all. (They currently show the excerpt, identical for all tags).

    How to show the customized descriptions of portfolio-tags by defaut, please?

    Thank you.

    #1027727
    Christian
    Moderator

    Hey there,

    Regretfully, at this time I am not entirely certain what the issue is. Can you give us screenshots of the issue?

    Thanks.

    #1027765
    antowp
    Participant

    Hello,

    Please see 2 attached images:

    – portfolio-tag-content-admin.png
    From admin, I added a lot of content on this portfolio-tag (“financement” tag)

    – portfolio-tag1-content-showed-onfrontoffice.png
    But on front office, the content I added is not showed. Only the tag excerpt is showed (the excerpt is identical for all tags).

    Hoping that can explain more clearly to you the issue.

    Many thanks.

    #1027988
    Christopher
    Moderator

    Hi there,

    Tag description couldn’t be displayed as part of portfolio content.
    The description could be displayed on tag archive page with some customization.

    Because this requires a template change, I’d advise that you setup 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.

    Copy _landmark-header.php from framework/views/ethos and put it in the same path inside child theme, replace existing code with following :

    <?php
    
    // =============================================================================
    // VIEWS/ETHOS/_LANDMARK-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Handles content output of large headers for key pages such as the blog or
    // search results.
    // =============================================================================
    
    $disable_page_title = get_post_meta( get_the_ID(), '_x_entry_disable_page_title', true );
    
    ?>
    
    <?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) && ! x_is_blank( 4 ) && ! x_is_blank( 5 ) ) : ?>
      <?php if ( is_page() && $disable_page_title == 'on' ) : ?>
      <?php else : ?>
    
        <?php if ( x_is_shop() || x_is_product() ) : ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark"><span><?php echo x_get_option( 'x_ethos_shop_title' ); ?></span></h1>
          </header>
    
        <?php elseif ( x_is_bbpress() ) : ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark"><span><?php echo get_the_title(); ?></span></h1>
          </header>
    
        <?php elseif ( x_is_buddypress() ) : ?>
          <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>
    
            <header class="x-header-landmark x-container max width">
              <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1>
            </header>
    
          <?php endif; ?>
        <?php elseif ( is_page() ) : ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark entry-title"><span><?php the_title(); ?></span></h1>
          </header>
    
        <?php elseif ( x_is_portfolio_item() ) : ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>
          </header>
    
        <?php elseif ( is_search() ) : ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark"><span><?php _e( 'Search Results', '__x__' ); ?></span></h1>
          </header>
    
        <?php elseif ( is_category() || x_is_portfolio_category() || x_is_product_category() ) : ?>
    
          <?php
    
          $meta  = x_get_taxonomy_meta();
          $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Category Archive', '__x__' );
    
          ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
          </header>
    
        <?php elseif ( is_tag() || x_is_portfolio_tag() || x_is_product_tag() ) : ?>
    
          <?php
    
          $meta  = x_get_taxonomy_meta();
          $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Tag Archive', '__x__' );
    
          ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
            <?php echo category_description(); ?>
          </header>
    
        <?php elseif ( is_404() ) : ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1>
          </header>
    
        <?php elseif ( is_year() ) : ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark"><span><?php _e( 'Post Archive by Year', '__x__' ); ?></span></h1>
          </header>
    
        <?php elseif ( is_month() ) : ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark"><span><?php _e( 'Post Archive by Month', '__x__' ); ?></span></h1>
          </header>
    
        <?php elseif ( is_day() ) : ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark"><span><?php _e( 'Post Archive by Day', '__x__' ); ?></span></h1>
          </header>
    
        <?php elseif ( x_is_portfolio() ) : ?>
    
          <header class="x-header-landmark x-container max width">
            <h1 class="h-landmark"><span><?php echo x_get_option( 'x_portfolio_title' ); ?></span></h1>
          </header>
    
        <?php endif; ?>
    
      <?php endif; ?>
    <?php endif; ?>

    Hope it helps.

    #1031101
    antowp
    Participant

    Hello,

    Thank you so much for your precious advice, I will try it as soon as possible.

    Have an excellent day 🙂

    Anto

    #1031662
    Christian
    Moderator

    You’re welcome. Glad we could help. 🙂

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