WordPress.org

Ready to get started?Download WordPress

Forums

Tiny Forge
[resolved] Move title-comment-meta to footer-entry-meta (5 posts)

  1. Gabbz
    Member
    Posted 6 months ago #

    Hi Tomas,
    Thanks so much for a great theme :)

    I would like to move the title-comment-meta to footer-entry-meta (the comments count) or just simply remove it from after the title.

    I also would like to put a "Leave a comment" link in the footer-entry-meta.

    I'm using in a child theme btw. I'm trying to sort out the entry-meta as I would like it, I copied the code from parent theme functions and just deleted some stuff, don't know if that's the right thing to do but it looks ok. Ultimately I would like the footer-entry-meta to display: Published in _____ | Taggs: ____ | Leave a comment | Edit

    The site I am working on at the moment: http://gf-design.se/WPtest/ it just has some muck-up posts at the moment, it is going to be moved to the right location when the themeing is done :)

  2. Tomas Mackevicius
    Member
    Theme Author

    Posted 6 months ago #

    You can use:

    <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>
    					 |  <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'tinyforge' ) . '</span>', __( '1 Comment', 'tinyforge' ), __( '% Comments', 'tinyforge' ) ); ?>
    				<?php endif; // have comments ?>
    				<?php edit_post_link( __( 'Edit', 'tinyforge' ), ' | <span class="edit-link">', '</span>' ); ?>
  3. Gabbz
    Member
    Posted 6 months ago #

    Thanks for your quick reply, that worked :)

    And shall I just remove this from the entry-title then?

    <?php if ( comments_open() ) : ?><span class="title-comment-meta">
    					<?php comments_popup_link( '', '<span class="meta-separator">&bull;</span> ' . __( '1 Comment', 'tinyforge' ), '<span class="meta-separator">&bull;</span> ' . __( '% Comments', 'tinyforge' ) ); ?></span>
    				<?php endif; // comments_open() ?>
  4. Gabbz
    Member
    Posted 6 months ago #

    And sorry I just have to ask, was it right of me to delete the stuff I didn't want from the entry-meta in functions or should I have just tried to hide it with css (if that's even possible)? Whats the right practice?

  5. Tomas Mackevicius
    Member
    Theme Author

    Posted 6 months ago #

    Well for users, who doesn't have enough experience I usually recommend doing everything via style.css, but if you know what you're doing and you didn't get any errors, then it should be all good ;)

Reply

You must log in to post.

About this Theme

About this Topic