Tagged: 

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1483614
    #1483652

    Hey Oriano,

    Thank you for the inquiry.

    You can modify the includes > loop-index.php file and look for this code around line 573:

    if( $show_meta_tags && has_tag() )
    							{
    								$meta_tags  = '<span class="blog-tags-header minor-meta">';
    								$meta_tags .=		get_the_tag_list( __( 'Tags:', 'avia_framework' ) . ' <span> ', ', ', '</span>' );
    								$meta_tags .= '</span>';
    
    								$meta_info['tags'] = $meta_tags;
    							}
    

    You can move it below this block of code (526):

    if( 'blog-meta-category' == avia_get_option( 'blog-meta-category' ) )
    						{
    							if( ! empty( $cats ) )
    							{
    								$meta_cats  = '<span class="blog-categories minor-meta">' . __( 'in', 'avia_framework') . ' ';
    								$meta_cats .=	trim( $cats );
    								$meta_cats .= '</span>';
    
    								$meta_info['categories'] = $meta_cats;
    							}
    						}
    

    Or you can remove the is_single() condition and the if ( $show_meta_tags && has_tag() ) block.

    Best regards,
    Ismael

    #1483673

    Hi Ismael, thanks for help.
    To avoid having to edit the file each time the Enfold theme is updated, do you think I can make the change using Child themes?

    Best regards,
    Oriano

    #1483729

    Hi

    Yes, you can create an includes folder in the child theme and place a copy of the loop-index.php file inside the folder. Let us know the result.

    Best regards,
    Ismael

    #1483754

    Hi Ismael,
    I tried to insert the changes you indicated to the loop-index file, but it didn’t make any difference.
    :(

    Best regards,
    Oriano

    #1483755

    Hi Ismael,
    Please, see in Privater Content the screenshot of the category archive and the tags archive, showing where I would like the tags to appear the “blog-tags”.

    Best regards,
    Oriano

    #1483805

    Hi,

    Thank you for the update.

    Have you tried removing the condition if( $show_meta_tags && has_tag() )? If you need more help, please provide the WP and FTP details in the private field.

    Best regards,
    Ismael

    #1483864

    i do not see your page / nor knowing what kind of blog layout you have choosen.
    This is something i used sometimes to have tags inside meta info.
    The snippet looks if the Theme Options – Blog Layout – blog post tags is checked
    maybe you can modify it to your needs.

    function new_avf_post_slider_meta_content( $meta_content, $entry, $index, $atts, $meta_array ) {
    	$tags = get_the_tags($entry->ID);
    	$tags_output = "";
    	if('blog-meta-tag' == avia_get_option('blog-meta-tag') && $tags ){
    		$tags_output .= '<div class="post_tags"><strong>Tags: </strong>'; 
    			foreach ( $tags as $tag ) {
    				$tags_output .= '<a href="  '. get_tag_link( $tag->term_id ) .'  ">';
    				$tags_output .= $tag->name ;
    				$tags_output .= '</a>' ;
    				if(next($tags)){
    				$tags_output .= ', ' ;
    			}
    		}
    		$tags_output .= '</div>';
    		$meta_array[] =  $tags_output;
    		$meta_content = implode( '<div class="slide-meta-del">/</div>', $meta_array );
    	}
    	return $meta_content;
    }
    add_filter( 'avf_post_slider_meta_content', 'new_avf_post_slider_meta_content', 10, 5 );
    #1483875

    Hi @Ismael, @Guenni007 thanks for your help.


    @Guenni007

    I have try to your code (on child theme function.php), but don’t worg. :(


    @Ismael

    Have you tried removing the condition if( $show_meta_tags && has_tag() )?

    I’m working on MAMP, so I can get an acces :(

    This is the Blog settings that I’m using.
    But I can also change the setting of the blog.
    Important for me is to have the tags below the meta line Date, categories etc…

    Best regards,
    Oriano

    #1483878

    i think there is now a filter
    try:

    add_filter('avf_show_tags_meta', 'show_tags_on_blog_posts');
    function show_tags_on_blog_posts(){
    	return true;
    }
    
    function new_avf_postslider_posts_meta_data_show(){
    	return true;
    }
    add_filter('avf_postslider_posts_meta_data_show', 'new_avf_postslider_posts_meta_data_show');

    last one is for grid style.
    See: https://kriesi.at/documentation/enfold/blog-post/#display-post-tags-on-blog-posts-element

    #1483879

    Hi @Guenni007
    Your second snippets work, both on Grid Style and also List Layout.

    Thank you very much

    #1483880

    Hi @Guenni007
    is it possible to get the same thing in the single post?
    like: November 15, 2024/in Tutorial, Test, Web / Tags: brew, terminal, Intel

    #1483999

    Hi,
    When I check my single post using the Default (Business) blog style, the Tags show at the bottom of the page without the filter above:
    Screen Shot 2025 05 10 at 1.07.11 PM
    To move them in line with the categories and other meta try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function move_tag_meta_inline_with_other_meta_on_single_posts() { ?>
      <script>
    document.addEventListener('DOMContentLoaded', function() {
        if (document.querySelector('.single-post')) {
            const blogTags = document.querySelector('.blog-tags');
            const blogCategories = document.querySelector('.blog-categories');
            
            if (blogTags && blogCategories) {
                const strongTag = blogTags.querySelector('strong');
                if (strongTag && strongTag.textContent === 'Tags:') {
                    strongTag.replaceWith(strongTag.textContent);
                }
                
                const separator = document.createElement('span');
                separator.className = 'text-sep';
                separator.textContent = '/';
                
                blogCategories.insertAdjacentElement('afterend', separator);
                separator.insertAdjacentElement('afterend', blogTags);
            }
        }
    });
    </script>
      <?php
    }
    add_action( 'wp_footer', 'move_tag_meta_inline_with_other_meta_on_single_posts', 99 );

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    Screen Shot 2025 05 10 at 1.13.38 PM

    Best regards,
    Mike

    #1484018

    Hi Mike, thank you.
    Your code work fine for me.

    Best regards,
    Oriano

    Enfold 4ever 🕺

    #1484020

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Move blog-tags after blog-categories on the post-meta-infos’ is closed to new replies.