This topic has 4 replies, 2 voices, and was last updated 11 years by jward2090.

  • Author
  • #3860
     jward2090
    Participant

    Hi,

    I have a quick question. I need to add a button right below the username on profiles. It’s only going to display on mobile devices (I have to figured out), but I’m not sure what to do to get the button there. Any help would be appreciated. Below is an example of what I need to accomplish.

    Thanks!

    #3880
     SQadmin
    Keymaster

    Hi,
    You need to add this to sweetdate-child/functions.php and to have the child theme activated

    COPY CODE
    
    add_action('kleo_bp_after_profile_name', 'my_profile_button');
    function my_profile_button()
    {
    echo '<a href="#" class="button radius show-for-small">My button</a>';
    }
    

    That should show the button only on mobile

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #3887
     jward2090
    Participant

    Awesome! You guys are great. One last question, what class do I use for styling? Thanks!

    #3903
     SQadmin
    Keymaster

    See Foundation Framework documentation for possible default button classes: http://foundation.zurb.com/old-docs/f3/buttons.php

    You also can add your custom styling by adding a class like “my-button” and reffer it in Sweetdate – Styling options – Quick css:
    .my-button {color: #fff;background:blue;}

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #3906
     jward2090
    Participant

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?