Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #263554
    willpursell
    Participant

    Hello, How can I display the description you can input into the tag section onto my tag page.

    Thanks!

    #263597
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in!

    To display the description of your tags, please go to Posts > Tags and edit the tag and insert the Archive title and Archive subtitle. Please see the screenshot http://prntscr.com/70jgx4

    Please let us know how it goes.

    #265142
    willpursell
    Participant

    Hello,
    Thanks. Changing the title works great, I am looking to display the description section (the area right above where you have highlighted)

    Thanks

    #265269
    Zeshan
    Member

    Hi Will,

    Thanks for writing in! To assist you with this, we’ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you.

    In the meantime, you can only insert the title and subtitle to your category or tag page. The category/tag description field won’t display it on the site.

    Thanks!

    #265355
    willpursell
    Participant

    Hello,
    My URL is http://www.willpursell.com I am using the renew stack.

    The pages I am trying to add descriptions to are the archive pages (tags, categories and custom taxonomies) Example: http://www.willpursell.com/style/luxury/

    thanks

    #265484
    Darshana
    Moderator

    Hi there,

    Please refer to the following post on how to add category descriptions (https://theme.co/x/member/forums/topic/how-to-display-category-name-and-description-in-renew/#post-125646).

    Hope that helps.

    #265607
    willpursell
    Participant

    Great! worked with the descriptions. Is there a way to make it work with Tags and custom Taxonomies as well?

    Thanks!

    #265715
    Paul R
    Moderator

    Hi,

    To make it work on tags and custom taxonomies, edit your file x-child/framework/views/renew/_landmark-header.php.

    In ~ line 68-77 code reads

    
    <?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__' );
    
                ?>
    
                <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
    

    Please change it to be

    
    <?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__' );
    
                ?>
    
                <h1 class="h-landmark"><span><?php echo $title ?></span></h1>
    <p class="tag-desc"><?php echo tag_description(); ?></p>
    

    Hope that helps.

    #266138
    willpursell
    Participant

    Thanks so much, It works for tags (http://www.willpursell.com/tag/barn/) but custom taxonomies won’t work ( http://www.willpursell.com/venues/hycroft/ ). I have a description in both.

    Thanks!!!

    #266732
    Paul R
    Moderator

    Hi,

    Sorry, for custom taxonomy, you can add the code below before the code on ~line no. 68 that reads <?php elseif ( is_category() || x_is_portfolio_category() || x_is_product_category() ) : ?>

    
     <?php elseif ( is_tax()): ?>
              
               <?php
    
                $meta  = x_get_taxonomy_meta();
                $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Category Archive', '__x__' );
    
                ?>
    
                <h1 class="h-landmark"><span><?php echo $title; ?></span></h1>
                <p class="term-desc"><?php echo term_description(); ?></p>
    

    Hope that helps.

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