Tagged: author placement
-
AuthorPosts
-
April 13, 2023 at 2:57 pm #1404358
Good morning. I have something that my client really wants to do, but I can’t find where to adjust code or find the setting. They simply want the author and date of a blog post to be placed below the title of the article – preferably in larger font (H3, H4 maybe). Is this doable? Thanks for the awesome theme!
April 15, 2023 at 1:44 am #1404502Hi mooresites,
Are you using grid on blogposts?
Best regards,
NikkoApril 15, 2023 at 4:43 am #1404515Thanks, Nico. I am using the grid for archive, categories, etc. and that works great. I’m speaking of single posts. I have managed to insert. PHP author /date above title to single post, but didn’t know if there was a way to move the meta-author in date from the bottom to the top of each post in enfold options. . Thanks for your response.
April 16, 2023 at 6:28 pm #1404605Hi,
This can be achieved with a jQuery snippet, please link to your single post example and perhaps include a mockup of what you would link to see, Typically some css will also be needed to adjust the padding or margin in the new location.Best regards,
MikeApril 21, 2023 at 10:03 pm #1405205Very cool. I actually use the PHP inserts to get it close at https://nemiss.news/ok-court-upholds-murder-conviction-of-man-who-many-believe-innocent-execution-scheduled-for-may-18-national-international-news-thu-20apr2023/ (above title).
Client is sort of ok with that, but would love it below the image in a line . . .
April 22, 2023 at 12:49 pm #1405227Hi,
Thanks for the link to your page, typically the author, date, & categories are wrapped in the post-meta-infos span:
but yours is not wrapped in any element:
So I recommend removing your PHP customization and allow the theme to show the post-meta-infos span and then I can give you some javascript to move it below the image.
Or if you want to use your PHP customization please change it so the author, date, & categories are wrapped in a span or div with a custom class, and then I can give you some javascript to move it below the image.Best regards,
MikeApril 24, 2023 at 9:35 pm #1405441Awesome. I removed the PHP and now show the original Enfold layout (below the like button). Thanks for all this new CSS!
Example:
April 25, 2023 at 6:54 pm #1405575Hi,
Thanks for the link to your page, Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function custom_script() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ $( '#top.single-post' ).each(function() { $( this ).find( '.post-meta-infos' ).insertAfter( $(this).find('.big-preview.single-big') ); }); })(jQuery); }); </script> <?php } add_action('wp_footer', 'custom_script');
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
Please see the screenshot in the Private Content area for the expected results.Best regards,
MikeApril 25, 2023 at 7:41 pm #1405586Mike, that is outstanding. Thank you, so much, for that. And, thanks for the excellent feedback – I’ve used Enfold on a few sites, but I’m a big fan – looking forward to new great creations with this one!
April 25, 2023 at 9:22 pm #1405596Hi,
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 Date and Author on blog posts’ is closed to new replies.