Forums

[resolved] Meta-footer changes (4 posts)

  1. Hatealot
    Member
    Posted 10 months ago #

    Hey, I have two basic questions... I tried hard by myself with theme files editing and searched on the web too, but didn't find a way to do it !

    Blog URL : http://www.hatealot.com
    Theme : Swedish Greys

    What I would like to do :

    1) Change the text displaying the number of comments (ex: "5 comments"). I searched across all theme edit files but didn't find where it came from...

    2) Add return to line between the tags and number of comments. The only way of changing the meta-footer for this I found is in the "theme options", but I just can use shortcodes for this field, so I can't see how to add what I want...

    Exemple for 2) :

    TAGGED : test, lol, news, etc
    COMMENTS : 5 COMMENTS

    instead of...

    TAGGED : test, lol, news, etc | COMMENTS : 5 COMMENTS

    Well it seems really simple, but I'm really having a hard time. Any help will be appreciated. Thanks a lot !

  2. Niklas Högefjord
    Member
    Posted 10 months ago #

    Hi,
    Sorry for the late reply.

    To display comments on a single line you can add:
    .entry-comments {
    display: block;
    }

    to your style.css (or better in your childtheme's style.css, so it won't get overwritten in future updates).

    As for the comments text I have made this filterable in a coming update. When the new version is live (hopefully within a couple of days) you can add a couple of extra lines to your (childthemes) functions.php file where you change the text as you want.

    I'll get back with an example code how to accomplish this.

    Cheers
    /Niklas

  3. Niklas Högefjord
    Member
    Posted 10 months ago #

    Hi again,
    The update is live now. I've written a short tutorial about filtering the comments text. You can read it here.

    Good luck
    /Niklas

  4. Hatealot
    Member
    Posted 10 months ago #

    Awesome ! Thank you sir, you rock. I'll do the update tonight.

Reply

You must log in to post.

About this Topic