Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile Fields adding html


  • micahcb
    Participant

    @micahcb

    I want to put a link on my registration page under Profile Fields like this

    <!–
    < a href=”http://www.websitehere.com&#8221; target=”_blank”>Rules

    I tested the html I know it works fine but when I click save and come back the html lookes like this
    < a href=”http://www.websitehere.com”>Rules
    What is causing this? I am using “Buddypress Xprofile Custom Fields” but it does it even if I don’t chose and Xprofile field type. Thanks for the help! I am new here!

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

  • micahcb
    Participant

    @micahcb

    The <!– is NOT in my code… I was trying to get the forums to not make a link out of my code…


    Richie KS
    Participant

    @rkcorp

    utilize the use of bp action instead, add this to your functions

    if ( !function_exists('add_rules_in_register') ) {
    function add_rules_in_register() {
    echo "<a href='hxxp://www.websitehere.com' target='_blank'>Rules</a>";
    }
    add_action('bp_after_signup_profile_fields','add_rules_in_register');
    }

    micahcb
    Participant

    @micahcb

    Ok great thank you. I am new to php. Should I put it in the /wordpress/wp-content/plugins/buddypress/bp-themes/bp-default/functions.php or one of the other ones? Does it matter where in the file I put it? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Profile Fields adding html’ is closed to new replies.
Skip to toolbar