
Tagged: post meta
-
AuthorPosts
-
May 5, 2025 at 11:02 am #1483614
I need to move the “blog-tags minor-meta” just after the “blog-categories minor-meta” in the page tag archive template.
Like this →
Could you please help me?Best regards,
OrianoMay 6, 2025 at 4:57 am #1483652Hey 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,
IsmaelMay 6, 2025 at 9:08 am #1483673Hi 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,
OrianoMay 7, 2025 at 6:03 am #1483729Hi
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,
IsmaelMay 7, 2025 at 8:40 am #1483754Hi Ismael,
I tried to insert the changes you indicated to the loop-index file, but it didn’t make any difference.
:(Best regards,
OrianoMay 7, 2025 at 9:06 am #1483755Hi 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,
OrianoMay 8, 2025 at 6:29 am #1483805Hi,
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,
IsmaelMay 8, 2025 at 3:23 pm #1483864i 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 );
May 8, 2025 at 3:56 pm #1483875Hi @Ismael, @Guenni007 thanks for your help.
@Guenni007
I have try to your code (on child theme function.php), but don’t worg. :(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,
OrianoMay 8, 2025 at 4:08 pm #1483878i 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-elementMay 8, 2025 at 4:55 pm #1483879Hi @Guenni007
Your second snippets work, both on Grid Style and also List Layout.Thank you very much
May 8, 2025 at 5:00 pm #1483880Hi @Guenni007
is it possible to get the same thing in the single post?
like: November 15, 2024/in Tutorial, Test, Web / Tags: brew, terminal, IntelMay 10, 2025 at 7:15 pm #1483999Hi,
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:
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.
Best regards,
MikeMay 11, 2025 at 1:59 pm #1484018Hi Mike, thank you.
Your code work fine for me.Best regards,
OrianoEnfold 4ever 🕺
May 11, 2025 at 2:10 pm #1484020Hi,
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 -
AuthorPosts
- The topic ‘Move blog-tags after blog-categories on the post-meta-infos’ is closed to new replies.