Support » Plugin: Authors List » Plural text

  • Resolved jackey

    (@jackey)


    Hi,

    Great plugin… is there any way to define and output “count_text” in single and plural?

    Regards,
    Jackey

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi @jackey

    We’ll get that sorted out in the next update.

    There was an update 3 days ago so the next one should be sometime next week, I hope that’s ok.

    Thread Starter jackey

    (@jackey)

    Hi @wpkube

    That’s great! No problem, I’m in no particular hurry…
    Managed to style and layout the output with Grid & Flex fairly easy… happy to find this plugin!

    Plugin Author WPKube

    (@wpkube)

    Happy to hear that. I like the styling you applied to it.

    Plugin Author WPKube

    (@wpkube)

    Hi @jackey

    Just released the update.

    Here’s an example:

    [authors_list show_count="yes" count_text="No posts, One post, % posts"]

    So the texts for different states (no posts, one post, more than one) are separated by comma.

    The % gets replaced by the amount of posts.

    • This reply was modified 1 year, 11 months ago by WPKube.
    Thread Starter jackey

    (@jackey)

    Super, works great!

    Thanks!

    Plugin Author WPKube

    (@wpkube)

    You’re welcome

    @jackey Hello Friend!

    Have you customized CSS in WP admin> Appearance> Customize> Additional CSS?

    Can you share your CSS code used for this plugin?

    Gratitude!

    Thread Starter jackey

    (@jackey)

    @wellmelo

    ===
    .authors-list-items a {
    transition: all .3s;
    }
    .authors-list-item {
    display:flex !important;
    flex-direction:column;
    }

    .authors-list-clearfix::after, .authors-list-clearfix::before {
    display:none !important;
    }

    .authors-list-item-thumbnail .avatar {
    border-radius:1000px;
    max-width:100px;
    margin:0 auto;
    position:relative;
    z-index:900;
    border:4px solid #fff;
    }

    .authors-list-item-main {
    background:#f4f4f4;
    margin:-60px auto 0 auto;
    padding:50px 20px 5px;
    border-radius:5px;
    border-bottom: 10px solid #6A1F6D;
    display:flex;
    flex-direction:column;
    flex-grow:1;
    width:100%;
    }

    .authors-list-item-main .authors-list-item-title {
    font-size: 18px;
    font-family: ‘Oswald’,Helvetica,Arial,Lucida,sans-serif;
    text-align:center;
    padding-bottom:3px;
    }

    .authors-list-item-main .authors-list-item-excerpt {
    font-size:12px;
    line-height:1.4em;
    text-align:center;
    }

    .authors-list-item-subtitle {
    font-size:13px !important;
    line-height:1.2em !important;
    font-family:’Oswald’,Helvetica,Arial,Lucida,sans-serif;
    color:#6A1F6D;
    text-align:left;
    }

    .authors-list-item-link {
    transition: all .3s;
    position:relative;
    z-index:30;
    width:auto;
    background-color:#d0d0d0;
    color:#FFF;
    text-transform:uppercase;
    font-size:11px;
    text-align:center;
    border-radius:5px;
    margin:1em auto 0;
    padding:0 10px;
    }

    .authors-list-item-link:hover {
    background-color:#6A1F6D;
    }
    .author-list-item-after-bio {
    flex-grow:1;
    }

    .authors-list-posts {
    font-size:12px;
    line-height:1.2em !important;
    }
    .authors-list-posts-item {
    padding-bottom:.5em;
    }

    .authors-list-posts-item li {
    position: relative;
    padding-left: 1.3em;
    margin-top:.2em;
    }
    .authors-list-posts-item a {
    color:#666 !important;
    }

    ul.authors-list-posts {
    list-style: none; /* Remove default bullets */
    margin-left:.4em;
    }

    ul.authors-list-posts li::before {
    font-family: ETmodules;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    content: “\5b”; /* Add content: \2022 is the CSS Code/unicode for a bullet */
    color:#888 !important;
    display: inline-block; /* Needed to add space between the bullet and the text */
    width: 1.4em; /* Also needed for space (tweak if needed) */
    margin-left: -1.4em; /* Also needed for space (tweak if needed) */
    list-style-position: outside;
    position:relative;
    bottom:-.09em;
    }
    ul.authors-list-posts li:hover::before {
    content: “\5c”; /* Add content: \2022 is the CSS Code/unicode for a bullet */
    }

    .authors-list-item-social a {
    fill:#ccc !important;
    color:#ccc !important;

    }
    .authors-list-item-social a:hover,
    svg.fa-external-link-alt:hover {
    fill:#6A1F6D !important;
    color:#6A1F6D !important;
    }

    .authors-list-item-excerpt,
    .authors-list-item-title {
    order:-1;
    }
    .author-list-item-after-title {
    order:2;
    }

    .authors-list-cols-dir-horizontal .authors-list-col {
    float: none;
    margin: 0 !important;
    }

    .authors-list-cols-dir-horizontal .authors-list-col-3 {
    width: auto !important;
    }

    .authors-list-items {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 20px 30px;
    justify-content: stretch;
    }

    .authors-list-item-social,
    .author-list-item-after-title {
    margin-bottom: 0px !important;
    }
    .authors-list-item-excerpt {
    margin-bottom: 15px !important;
    }

    ===

    Shorcode: [authors_list title_element=”h3″ columns_direction=”horizontal” minimum_posts_count=”1″ roles=”contributor” categories=”20″ orderby=”post_date” order=”DESC” show_link=”no” show_count=”yes” after_bio=”{alf:posts type=list amount=3}” authors_list after_title=”{alf:social}” count_text=”No Articles,One Article,% Articles”]

    Perfect friend @jackey

    Thanks for sharing, very beautiful look.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Plural text’ is closed to new replies.