-
AuthorPosts
-
July 13, 2020 at 11:18 am #1229899
Hello there,
is it possible to have a main title for the blog on top of the normal blog overview and the date of the blog previews on top ( now there is the date below the read more link)?
Thank you!July 14, 2020 at 6:14 pm #1230360Hey NorthcoastProject,
Could you please attach a mockup of what you’re trying to achieve? It’s not very clear where you want to move the date.
Best regards,
VictoriaJuly 14, 2020 at 6:59 pm #1230386I just don’t want to have the date under the read more link. It would be nicer to have it under the Headline of the preview text. Not the last item of the preview.
July 15, 2020 at 5:37 pm #1230674Hi NorthcoastProject,
Here is the code you can put in your funtions.php
add_action('wp_footer', 'ava_move_date'); function ava_move_date(){ ?> <script type="text/javascript"> (function($) { $(document).ready(function() { $('.blog .post-entry.post-entry-type-standard').each(function () { var date = $(this).find('.post-meta-infos'); var heading_wrapper = $(this).find('.blog-categories.minor-meta'); date.insertAfter(heading_wrapper); }); }); })(jQuery); </script> <?php }
and add this css too:
.html_elegant-blog #top .post-entry .post-meta-infos { float: none; }
If you need further assistance please let us know.
Best regards,
VictoriaJuly 16, 2020 at 11:25 am #1230880Thanks, no I adapted so the date is above the headline. It works just fine. Great!
add_action('wp_footer', 'ava_move_date'); function ava_move_date(){ ?> <script type="text/javascript"> (function($) { $(document).ready(function() { $('.template-blog .post-entry.post-entry-type-standard').each(function () { var date = $(this).find('.post-meta-infos'); var heading_wrapper = $(this).find('.av-heading-wrapper'); date.insertBefore(heading_wrapper); }); }); })(jQuery); </script> <?php }
July 16, 2020 at 11:31 am #1230881This is the right sentence: Thanks, NOW I adapted so the date is above the headline. It works just fine. Great!
July 16, 2020 at 10:18 pm #1231031Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonJuly 17, 2020 at 10:44 am #1231168Everything is fine! Thank you very much.
July 18, 2020 at 6:06 am #1231426Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘blog overview’ is closed to new replies.