WordPress.org

Ready to get started?Download WordPress

Forums

Twentyten Custom Loop ontop of Posts (7 posts)

  1. mikeatkc
    Member
    Posted 2 years ago #

    I have created a child theme of twentyten to use and edit (copy twentyten onto another directory twentyten-child) and I like to move the "Posted in <category> | Leave a comment" line to be on the same line of that "Posted on <date> by <user>."

    I believed I need to edit the loop.php file but I'm not seeing any alignment from top/bottom, so how do I achieve the above?

    Thank you.

    Mike

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    copy twentyten onto another directory twentyten-child

    No! That is not the way to create a child theme. See child themes.

  3. mikeatkc
    Member
    Posted 2 years ago #

    I see, so in a sense, I created a different theme of twentyten (fork) and not really a child of twentyten? So in theory, I can continue to keep this theme and rename the directory to something else that does not reflect "child" of twentyten.

    Loop.php question still apply to this theme though, how do I adjust?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    I created a different theme of twentyten (fork) and not really a child of twentyten?

    Yes. It is important to differentiate between the two types of theme customisation - especially when posting here as, otherwise, people will start making incorrect assumptions.

    I can continue to keep this theme and rename the directory to something else that does not reflect "child" of twentyten.

    Yes but you will not benefit from any future updates to Twenty Ten if you take the "fork" route.

    how do I adjust?

    If you want to change it on the main posts page, you'll need to edit index.php. In single posts, it's single.php. Theme Development has a simple overview of what template is applied when that you might find helpful.

    Additionally, you need to edit the twentyten_posted_on() function in functions.php as this is what generates the post date.

  5. mikeatkc
    Member
    Posted 2 years ago #

    index.php, so I thought the below would solve the issue but it doesn't. Put the "container" then the "loop" then the "content" but the display is the same (with fonts shrinking in the content body).

    container - post/date by etc.
    loop - the catetory/leave comment
    content - post content

    get_header(); ?>

    <div id="container">
    <?php
    /* Run the loop to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-index.php and that will be used instead.
    */
    get_template_part( 'loop', 'index' );
    ?>
    </div><!-- #container -->

    <div id="content" role="main">
    </div><!-- #content -->

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

  6. mikeatkc
    Member
    Posted 2 years ago #

    I guess I should rephrase my question. I want this to occur on every post and not just the front page. Therefore, do I perform the edit in style.css file for the forked theme?

    I prefer to see "Posted in <category> | Leave a reply" on the same line of that "Posted on <date>" for every post and not just the front page.

  7. mikeatkc
    Member
    Posted 2 years ago #

    The fields I referenced to for support is called "post meta tag." Is there a page (codex?) that list what files in WP 3.2.1 controls what function? i.e. if you need to modify "this/that" edit "this/that" file for result, style.css for theme layout, image size, padding/spacing.

Topic Closed

This topic has been closed to new replies.

About this Topic