WordPress.org

Ready to get started?Download WordPress

Forums

Icy
[resolved] Change header of a post (11 posts)

  1. idienstler
    Member
    Posted 8 months ago #

    Hi,

    where can I change the look of the header of every post
    "28. July 2013 EDIT ...."

    I want to add the word "comments"
    after the number of comments
    http://s14.directupload.net/images/130728/shciq9kb.png

    I had a look at index.php, single.php, content.php, core.php but could not found the part that belongs to to it.

  2. delevega
    Member
    Posted 8 months ago #

    First make a child theme
    http://codex.wordpress.org/Child_Themes

    Then have a look at the loop
    http://codex.wordpress.org/The_Loop

    The loop will be found in the index.php most of the time. If not the index.php will tell you where. It'd be something like entry.php or post.php. The loop is determines how posts are displayed and where you'll find what you're looking for.

    Here is how to do the comment link. Use this as a guide to modify how your comments display. (This must go inside of the loop)

    http://codex.wordpress.org/Function_Reference/comments_link

  3. Artur - wildweblab.com
    Member
    Theme Author

    Posted 8 months ago #

    That modification is actually very easy.

    Go to the "Theme Options > Snippets > Post Info",

    Find this shortcode:

    [post_comments]

    and replace it with:

    [post_comments before="" after="comments"]

    You will need to add additional styling to make it look better.

    If you want to make some further modifications, you can find this shortcode in the file: shortcodes.php.

  4. delevega
    Member
    Posted 8 months ago #

    Keep in mind that the way mentioned above will not save your modifications. So you will have to re apply them if you ever update, or move.

  5. idienstler
    Member
    Posted 8 months ago #

    Thx

  6. Artur - wildweblab.com
    Member
    Theme Author

    Posted 8 months ago #

    Just to clarify, if you make changes in the Theme Options you don't have to worry about updates.

    Only modifications made to the theme's files without using a child theme will disappear after update.

  7. idienstler
    Member
    Posted 8 months ago #

    Hi,

    I changed the text but the word "comments" is not withing the linktext now.
    This was the main reason why I wanted to add the word b/c in my opinion the area is too small where an user can click to find the comment-section.

    How can I bring the word comments into the linktext?

    Regards

  8. delevega
    Member
    Posted 8 months ago #

    Looks like this theme is meant to be edited mostly online. Which is not the greatest way to make simple modifications like this. Pretty sure what you are looking for is in the lib/core.php. But I wouldn't edit that.

  9. idienstler
    Member
    Posted 8 months ago #

    I searched for a codeline in the core.php but did not find the right line.
    Will have a look at it later again.

  10. Artur - wildweblab.com
    Member
    Theme Author

    Posted 8 months ago #

    Look for wwl_post_comments in lib/shortcodes.php

    It should be pretty straightforward if you look at it.

    You could copy this function, create your own shortcode with slightly different name and save in in child theme or plugin.

  11. idienstler
    Member
    Posted 8 months ago #

    Thx

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.