Hello,
We closed the ticket a bit too quickly.
1. I want to keep the Author and date at the top of the post BUT the TAGS should stay at the bottom of the post, so I need to edit the code in the link above.
2. However, when the TAGS were at the bottom they had a weird wrapping problem. So when I move the TAGS to the bottom I need to make sure they are listed properly. See screenshot below.
Thank you,
Jas
Hey Jas,
Please edit following code
function custom_meta_script(){
?>
<script>
(function($){
$(window).load(function(){
$( '.post-entry' ).each(function() {
$( this ).find( '.post-meta-infos' ).css({ 'margin-top': '0px','padding': '0px'}).insertAfter( $(this).find('span.blog-categories.minor-meta'));
$( this ).find( '.blog-tags.minor-meta' ).css({ 'display': 'inline-block'}).insertAfter( $(this).find('span.post-meta-infos'));
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_meta_script');
and change it to following one
function custom_meta_script(){
?>
<script>
(function($){
$(window).load(function(){
$( '.post-entry' ).each(function() {
$( this ).find( '.post-meta-infos' ).css({ 'margin-top': '0px','padding': '0px'}).insertAfter( $(this).find('span.blog-categories.minor-meta'));
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_meta_script');
This should only move date and author. In case you experience wrapping problem after the changes, please let us know and we will look into it :)
Best regards,
Yigit
That seemed to work perfectly! No Tag wrapping issues so far. Thank you Yigit!
Jasmer
Hi Jasmer,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko