Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #957995

    Hey guys,

    I would like to move the date in posts on top like mentioned in that thread
    https://kriesi.at/support/topic/move-date-and-author-meta-to-under-title/

    I have inserted that code in the functions.php

    function move_postmeta(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery( ".page .template-blog header.entry-content-header, .single-post .template-blog header.entry-content-header" ).each(function() {
    jQuery( this ).find( ".post-meta-infos" ).insertBefore( jQuery(this).find('.big-preview') );
    });
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'move_postmeta');

    an that in the Quick CSS

    .html_modern-blog #top .post-entry .post-meta-infos {
    margin-top: 0px !important;
    padding-top: 0px !important;
     top: -22px !important; 
    }

    it just moves cause of the css a bit up and is overlapping the bottom content a bit but is not moving to the top.

    Any ideas?

    • This topic was modified 6 years, 7 months ago by aicompcloud.
    #959013

    Hey aicompcloud,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    This code does not work as it is on your website.

    Best regards,
    Victoria

    #960161

    here it is

    kind regards

    #960911

    Hi aicompcloud,

    The link seems to be broken, can you please update it?

    Best regards,
    Victoria

    #961246

    sure

    #962040

    Hi aicompcloud,

    Thank you, please try the code below instead.

    Here is the code you can put in your funtions.php

    
    function move_postmeta(){
    ?>
    	<script>
    		jQuery(window).load(function(){
    			jQuery('.post-template-default.single.single-post  .post-meta-infos').insertAfter(jQuery('.blog-categories.minor-meta'));
    		});
    	</script>
    <?php
    }
    add_action('wp_footer', 'move_postmeta');
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #964048

    thank you very much…that works.

    Just a little question to make it looking perfect. Is there a way to show the date beside the blog-category meta?

    Best regrads

    #966283

    Hi,

    Glad it worked. This css code should help you with that.

    .responsive #top .post-entry .post-meta-infos, .responsive #top .post-entry .blog-categories {
        float: left;
        width: auto;
        clear: none;
        top: -25px !important;
    }

    Best regards,
    Ismael

    #966343

    see first link please…there it looks not good at all with your code

    Any Idea how to fix it?

    see second link, there I have added some little code (margin-righ) because the date and categories had no space between

    .responsive #top .post-entry .post-meta-infos, .responsive #top .post-entry .blog-categories {
        float: left;
        width: auto;
        clear: none;
        top: -25px !important;
        margin-top: 0px !important;
        padding-top: 0px !important;
        margin-right: 20px;
    }

    On the blog post (second link) you can also see a little seperator (/) after the date. Is it possible to get that between the categories and the date? Maybe by putting the date on first position and the categories at the second?

    Any idea for that?

    regards

    #967629

    Hi,

    Did you change the blog style? We adjusted the code a bit. Please try it again.

    Best regards,
    Ismael

    #971130

    sorry for the late reply. I didn’t get a mail that you have answered.

    I didn’t change anything. And the errors are still there. What exactly have you adjusted in the code?

    #971166

    I’ve tried a bit by my own again but I didn’t get it. But now I think I’ve deleted your last changes in css.

    #971247

    Hi aicompcloud,

    Could you please clear the cache, check again and get back to us.

    Best regards,
    Victoria

    #971559

    Yeah…I’ve kicked out the shown categories. It was not my first choice but I think this gonna work for me now.

    Thanks for your help

    #972004

    Hi,

    Alright. Please feel free to open a new thread if you need anything else. :)

    Best regards,
    Ismael

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Move Date in post to top’ is closed to new replies.