ThemeShaper Forums » Thematic

Index.php Customization Help!

(2 posts)
  • Started 10 years ago by JasonCho
  • Latest reply from Anthrax
  • This topic is not resolved

Tags:

  1. JasonCho
    Member

    I have customized the css files, but now I want to change some technical aspects.

    For example I want to change "Leave a comment" to "No Comment".

    Also, "entry-meta" is right under the post title, but I want to move that to the

    bottom of the post. I looked at the index.php, but I couldn't understand :(

    Lastly, I have one css problem that I could not solve.

    I applied 3px border to (.main-aside ), but the border would be applied outside

    increasing the width of 300px sidebar to 306px. Can I maintain 300px while applying

    a border?

    Thank you :) (the theme is great by the way)

    Posted 10 years ago #
  2. i solved it with a junction_postheader function in my functions.php. I want the "Leave a comment" link in the post header.

    I've just copied the comments section from the footer in the junction_postheader like this:

    // Display comments link and edit link
    if (comments_open()) {
    $postcommentnumber = get_comments_number();
    if ($postcommentnumber > '1') {
    $postmeta .= ' <span class="comment">';
    $postmeta .= get_comments_number() . __(' Comments', 'thematic') . '
    </span>';
    } elseif ($postcommentnumber == '1') {
    $postmeta .= ' <span class="comment">';
    $postmeta .= get_comments_number() . __(' Comment', 'thematic') . '
    </span>';
    } elseif ($postcommentnumber == '0') {
    $postmeta .= ' <span class="comment">';
    $postmeta .= __('Leave a comment', 'thematic') . '
    </span>';
    }
    } else {
    $postmeta = ' <span class="comment">' . __('Comments closed', 'thematic') .'</span>';
    }

    Posted 10 years ago #

RSS feed for this topic

Reply

You must log in to post.