WordPress.org

Ready to get started?Download WordPress

Forums

Customize Date and Time position (4 posts)

  1. Yunachan
    Member
    Posted 1 year ago #

    Hi guys!

    I am a young webdesigner with very basic knowledge of PHP, however I'm used to try things until they finally work out. I'm working with WordPress since June and managed to customize the twenty ten theme in order to show up the way I want.

    But my boss needs me to change the date position in the post in order to make it appear just above the post body, and bellow the subtitle, but I tried a lot of things and still couldn't make it work. I'm working on the loop.php file and this is the code I've edited so far:

    <div class="entry-meta" style="margin-bottom:40px; position:relative; top:20px;">
    	<?php twentyten_posted_on(); ?>
    	</div><!-- .entry-meta -->

    That's the way I found to separate the date a little, but couldn't position it the way I want. I can't work on it in the CSS file, because it just doesn't make any effect...

    If anybody can help me with this, I will be veeery grateful!!! Thank you very much in advance!

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Don't edit the Twenty Ten theme. First create a child theme for your changes.

  3. Yunachan
    Member
    Posted 1 year ago #

    Oh, I see. I'll fix that then. I had only one day to learn how to use wordpress and implement the changes to make the theme look like what my boss wanted, so I didn't know it was recommended that I used a child theme. I'll try that out and see what I can do. I'll post it here once I have news! Thanks!

  4. Yunachan
    Member
    Posted 1 year ago #

    Uhm, so... does anyone know where can I find the code that changes the date place? I can't edit it on CSS because it isn't working, if I set it to position:absolute, it won't interact with the text around, and somehow, even keeping the div as relative, when I change the margins, the date just jumps over the post content and even messes with the widgets menu. I'm thinking that I need to change the code in some .php file, place it under the code for subheading, so the theme will render in the right position? Please, someone tell me if I'm right or wrong! I'm trying for the whole week already and my boss wants to kill me. :/

Topic Closed

This topic has been closed to new replies.

About this Topic