• Resolved jeditricks

    (@jeditricks)


    Hi there.

    I was wondering if it was possible to display the category and tag descriptions from the system onto their respective archives. It looks like those go into the meta description and are also used as link titles, but I don’t see that as an option to display on the actual page itself.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author nobita

    (@nobita)

    Hi jeditricks

    Add this feature in the next update.

    The next update is maybe done next week

    If, to be able to wait until the next update, please try the following

    Your can use theme filter.

    It needs Child theme and small script

    Child Theme example below

    https://www.tenman.info/download/child-raindrops.zip

    add code, child theme/functions.php

    <?php
    add_filter( 'raindrops_category_navigation', 'extend_archives_description' );
    
    function extend_archives_description( $title ) {
    
        $html        = '';
        $description = get_the_archive_description();
    
        if ( ( is_category() || is_tag() ) && !empty( $description ) ) {
    
            $html = '<div class="color-4 pad-m corner" style="width:100%;min-height:3em;border:1px solid rgba(222,222,222,.3);">' . $description . '</div>';
        }
    
        return $title . $html;
    }

    Thank you.

    Theme Author nobita

    (@nobita)

    Sorry I misstake code , tag description not work

    Please wait update.

    Thread Starter jeditricks

    (@jeditricks)

    Thanks, I appreciate the efforts, I’ll wait for the update.

    Theme Author nobita

    (@nobita)

    Now Raindrops1.410 live ??

    Thread Starter jeditricks

    (@jeditricks)

    Thanks for setting this up, I appreciate it. Looks great.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display Category and Tag descriptions on archive pages?’ is closed to new replies.