• i have recently installed astra and active astra child theme.

    i wants to show post tags after post content were finished or after post content(post bottom).

    while on top of before post content i would like to keep (leave a comment/post category/author/Last modified/update date)

    i used theme customize option but it only let you use taxonomy which mean keep category and tag on same position.

    What can i do now?

    as for child theme, i can modifie function file. But how can i keep header/footer code edit?

    while updating astra theme?

Viewing 1 replies (of 1 total)
  • Hi @tvhex,

    The following might give you some ideas

    add_filter( 'astra_post_tags', 'remove_tags_callback' );
    function remove_tags_callback( $content ){
    	if ( is_single()) {
    		$content = '';
    	}
        return $content;
    }
    
    add_action( 'astra_entry_bottom' , 'add_tags_callback');
    function add_tags_callback(){
    	if ( is_single()) {
            $output = '';
            $tags_list = get_the_tag_list( '', __( ', ', 'astra' ) );
            if ( $tags_list ) {
                $output .= '<span class="tags-links">' . $tags_list . '</span>';
            }
           echo 'Tags: ' . $output . '';
    	}
    }

    If you would like to change the Hook, you can refer to this page to know the locations of the available Hooks.

    Hope it will help.

    Kind regards,
    Herman ??

Viewing 1 replies (of 1 total)
  • The topic ‘How can i show post tags after post content? And help with child theme’ is closed to new replies.