Skip to:
Content
Pages
Categories
Search
Top
Bottom

Restricting a datebox in the xProfile so that it only displays month and date (not year)

  • I am looking to set up a ‘Birthday’ profile field in Buddypress that displays a month and date, but not a year. I have not been able to figure out how to remove the year drop-down box from the options on the “Edit Profile” page. Does anyone have any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Amm… I’m not sure, but maybe you can edit the file inside you theme folder (members/single/profile/edit.php) and remove the line of

    `<select name="_year” id=”_year”>

    `

    I’m not sure, but maybe it can work.


    edithmayerhofer
    Member

    @edithmayerhofer

    i have a similar problem… when the user does not select the year but only day and month buddypress will assign the current year as year of birth (e.g. 2011).
    Is there a solution to avoid this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restricting a datebox in the xProfile so that it only displays month and date (not year)’ is closed to new replies.
Skip to toolbar