Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1211819

    Re: https://kriesi.at/support/topic/move-date-and-author-directly-under-blog-title-tag-wrapping-issue/#post-1211565

    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

    #1213260

    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

    #1216785

    That seemed to work perfectly! No Tag wrapping issues so far. Thank you Yigit!

    Jasmer

    #1216836

    Hi Jasmer,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Move Date and Author directly under Blog Title & Tag Wrapping Issue – Continued’ is closed to new replies.