• Resolved sywy

    (@sywy)


    Hi there, is there an option/plugin/add on available that will add a label for member posts? Looking to add something to help ID posts for members on the main page, similar to this example that shows ‘premium’ only labels for member articles:

    EG: thurrot.com

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @sywy,

    We don’t have a recipe that shows ‘premium’ only labels for member articles, but we do have this recipe to show a preview of premium content: https://www.paidmembershipspro.com/premium-content-preview-blur-fade-text/

    Thread Starter sywy

    (@sywy)

    Thanks for the reply Michael.
    I worked out a solution using native CSS code.

    Since PMP posts that exist in a membership level have a CSS class, I was able to target them, and then apply a ‘:before’ selector and ‘content’ rule to add some text and style it. Now I have a label in the bottom right corner of all my members-only posts.

    Sharing this as it might help others and keeps your site running fast without extra plugins or addons. Would be great if PMP developed this as a feature, its not much code to implement:

    `/* Member Labels on Posts */
    article.category-member-only > .post-thumbnail > a:before {
    content: “MemberOnly”;
    background: <whatever-color>
    background: <whatever-linear-gradient>;
    color: black !important;
    padding: 2px 6px 2px 6px;
    font-family: font-family: sans-serif;
    font-weight: 500 !important;
    font-style: normal;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: black;
    color: white;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post labels for members’ is closed to new replies.