• Resolved sublines

    (@sublines)


    Hi,
    thanks for making and maintaining this great plugin for free, your work ist very much appreciated!

    I am using the show_postcount=true option and would love if the post count would be wrapped inside a span element so I could style it through CSS.
    And it wwould be absolutely perfect if you could output the post count number like this:

    ? 4

    instead of this:

    (4)

    This would still distinguish the post count from the author name in cases where the website owner doesn’t want to (or doesn’t know how to) style the span using css but for those webdesigners who do not want to include the ? at all, they could easily remove it with css using ::first-letter.

    Do you think those could be possible changes in a future update?

    Thanks again!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Paul Bearne

    (@pbearne)

    Hi

    You can change this via filter aa_post_count

    $name .= sprintf( apply_filters( ‘aa_post_count’, ‘ (%d)’, $postcount, $user ), $postcount );

    I will think about adding a span in later release and add the () via CSS

    Paul

    Plugin Author Paul Bearne

    (@pbearne)

    Hi

    I have changed it to sprintf( apply_filters( ‘aa_post_count’, ‘ <span class=”aa-post-count-wrap-start”>(</span>%d<span class=”aa-post-count-wrap-end”>)</span>’, $postcount, $user ), $postcount );

    download the new version from GitHub https://github.com/pbearne/wp-author-avatars

    Thread Starter sublines

    (@sublines)

    Hi Paul, thanks for the great support!
    This looks like a perfect solution which would be easy to customise via CSS.
    I have downloaded the files from GitHub but the post count still has no span around it.
    Any ideas why?

    Plugin Author Paul Bearne

    (@pbearne)

    no I don’t maybe because I have made it an release try this link

    https://github.com/pbearne/wp-author-avatars/releases/tag/1.15

    Paul

    Thread Starter sublines

    (@sublines)

    Thank you, this works perfectly and makes it very easy to style using some simple CSS!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post Count Styling’ is closed to new replies.