BuddyDev

Search

[Resolved] add extra css on a profile field

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #30609

    Hi Bouke,

    Thank you.
    Some clarifications.

    1. the BuddyBoss platform supports bp-custom.php. But it is your choice to use it or use the theme’s functions.php

    Now about the border, It seems some css issue. I will suggest looking into web dev tool in the browser to find the issue and resolve it. The above code only adds markup and leaves the css for you.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 7
    Bouke Star on #30610

    Hi Brajesh,

    Could this be happen because of the created <p> tag for the first word?

    ‘<td class=”data”><span class=”m-select-entry”><p>Blokfluit,<span class=”m-select-entry”> Contra fargot</span>,<span class=”m-select-entry”> Fargot</span></p>
    </span></td>’

    I’m wondering where this <p> tag is created. The css is like: border: 1px solid #333; padding: 4px;

    Thanks so far.

    Regards Bouke

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #30611

    Hi Bouke,
    since you put it in the functions.php, the autop was getting called early.

    I have updated the code to add a higher priority. That should help you avoid the markup issue. I did not face it since my code was in bp-custom.php

    https://gist.github.com/sbrajesh/086c2741380a24149771cab1b32b0404

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 7
    Bouke Star on #30627

    Hi Brajesh,

    Nice that fixed it, thanks a lot for your help here!
    I used the functions.php here because of the child theme.

    Regards,
    Bouke

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #30635

    Hi Bouke,
    You are welcome.

    Using bp-custom.php or functions.php is your choice. I prefer keeping theme specific/dependent customizations in functions.php and anything that transcends beyond theme change, in my bp-custom.php

    Regards
    Brajesh

The topic ‘ [Resolved] add extra css on a profile field’ is closed to new replies.

This topic is: resolved