Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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!

    #1404502

    Hi mooresites,

    Are you using grid on blogposts?

    Best regards,
    Nikko

    #1404515

    Thanks, 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.

    #1404605

    Hi,
    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,
    Mike

    #1405205

    Very 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 . . .

    #1405227

    Hi,
    Thanks for the link to your page, typically the author, date, & categories are wrapped in the post-meta-infos span:
    Enfold_Support_1828.jpeg
    Enfold_Support_1830.jpeg
    but yours is not wrapped in any element:
    Enfold_Support_1833.jpeg
    Enfold_Support_1835.jpeg
    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,
    Mike

    #1405441

    Awesome. I removed the PHP and now show the original Enfold layout (below the like button). Thanks for all this new CSS!

    Example:

    #1405575

    Hi,
    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,
    Mike

    #1405586

    Mike, 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!

    #1405596

    Hi,
    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Move Date and Author on blog posts’ is closed to new replies.