Hallo Enfold-Team,
I’d like to move the “category-name” above the “Title” in the Avia Blog Post Element. Would that be possible and if yes, which file would I have to edit?
In my “Blog Beiträge” Setup I use: Raster Layout, 3 Columns , Titel and Text part plus “read more” link (I do not know if these are the correct english names, since I use the German version ).
Thanks in advance
Hey vectorcriz,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
Victoria
Hi Victoria,
sure,
https://www.u-ci.de/
My question was regarding the Blog Posts on the Home-Page close to the footer. The customer just want to have the Category Name above the title of the Post. At the moment the category name is shown under the Title. No big deal, I just want to know which file I have to edit . Thank you in advance
Christian
Hi,
Here is the code you can put in your funtions.php
function moveCategoriesInBlogGrid(){
?>
<script>
jQuery(document).ready(function($) {
jQuery('.slide-entry-wrap .blog-categories.minor-meta').each(function() {
var category = jQuery(this);
var title = category.siblings('.slide-entry-wrap h3.slide-entry-title.entry-title');
category.insertBefore(title) });
});
</script>
<?php
}
add_action('wp_footer', 'moveCategoriesInBlogGrid');
adn this to Quick css:
.html_modern-blog #top .post-entry .blog-categories {
top: 10px;
}
.html_elegant-blog .avia-content-slider .slide-entry-title {
padding-top: 10px;
}
If you need further assistance please let us know.
Best regards,
Victoria
Great, Thank you Victoria
I will check it and let you know if it works!
Best regards
Christian
Yes, it Works perfect! Thanks a lot!!
Best regards
Christian
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon