Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author myCred

    (@designbymerovingi)

    Yes the mycred_my_balance shortcode will return a users balance formated.
    You can add a title though:

    [mycred_my_balance title="Your current balance is:"]

    Alternetivly you can get a users points by using the get_user_meta function:

    echo 'You got left ' . get_user_meta( get_current_user_id(), 'mycred_default', true ) . ' points';

    If the layout does not suit your needs, you can always add CSS styling to make things look the way you want it.

    Thread Starter Li-An

    (@li-an)

    Thanks. I will try your code.

    I really need to get my title and credit balance on one line. I’m not dinding a mycred .css file. Is there ab easy way to overide the styling and make the two elements ( title,balance) appear inline?

    Plugin Author myCred

    (@designbymerovingi)

    Sure.

    In your shortcode set your title element and balance element to ‘span’. Span is by default inline.

    Example:

    [mycred_my_balance title="Your balance is:" title_el="span" balance_el="span"]
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Style mycred_my_balance’ is closed to new replies.