Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Friend button styling

Viewing 2 replies - 1 through 2 (of 2 total)

  • danbp
    Participant

    @danbp

    Hi @ksmithlondon,

    the add friend button on members directory or profile header is styled here
    wp-content/plugins/buddypress/bp-templates/bp-legacy/css/buddypress.css
    line 761

    The class=”friendship-button not_friends add” is not used by CSS.

    The class name comes up in:
    wp-content/plugins/buddypress/bp-friends/bp-friends-template.php between line 352 > 410

    and is also used in wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.js:1211

    Next time instead of looking and looking and looking, simply search. And use the appropriate tools which will do this for you 😉

    Firebug and Notepad++ in this case, taked me less than 5mn. 😉


    KS
    Participant

    @ksmithlondon

    Thanks Dan.

    I did search across every file (using Brackets), so I found the .js and .php files where it’s used, but those classes were not found in any CSS file in my installation. Sorry, ‘looking’ was probably misleading. I meant I had searched thoroughly, using any one of a number of appropriate tools 🙂

    I did find *some* of the attributes of the button, but not, for example, where the ‘Add friend’ button is getting its colour from, which is different to the ‘Send private message’ button for example. Some CSS has to be differentiating those two buttons, surely? And the colour in mine doesn’t appear anywhere in any CSS except for a class that isn’t applied to these buttons at all.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Friend button styling’ is closed to new replies.
Skip to toolbar