This topic has 6 replies, 3 voices, and was last updated 10 years by Abe.

  • Author
  • #2122
     Harvinder
    Participant

    Hi,

    Isit possible to have the profile colour change depending on the gender of the user?

    Blue for males and pink for females?

    Thanks
    Harvinder

    #2145
     SQadmin
    Keymaster

    Hi,
    There is no default functionality for this.
    Custom coding is required for this.

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

    Hi,

    Thanks for the reply, is there any chance you could tell me where to start for this? Guidance maybe?

    #2164
     SQadmin
    Keymaster

    Basically you will have to add the css to the theme

    COPY CODE
    
    //CSS
    #profile {background:#ccc;}
    

    by the profile field, that you can check with:

    COPY CODE
    
    //PHP
    xprofile_get_field_data( 'Location');
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #2181
     Harvinder
    Participant

    Hi,

    You know the second bit of code:

    //PHP
    xprofile_get_field_data( ‘Location’);

    Where do I put that? Child theme “functions.php”?

    #14402
     Harvinder
    Participant

    Can i have an update on this please?

    #14406
     Abe
    Keymaster

    Like I said it is not an easy solution to give you the whole steps
    You should work with wp-content\themes\sweetdate\members\single\member-header.php and wp-content\themes\sweetdate\page-parts\buddypress-profile-header.php

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

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

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

Log in with your credentials

Forgot your details?