This topic has 25 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #197486
     emmanuel
    Participant

    hello could i add a text to the horizontal form on the member page saying ”Adjust match preferences” see attachment

    Attachments:
    You must be logged in to view attached files.
    #197494
     Kieran_SQ
    Moderator

    Hi,

    This is a bit hacky, but a quick way to do it is with CSS like so

    COPY CODE
    .directory #horizontal_search:after {
        content: "Adjust Match Preferences";
        color: #FFFFFF;
        font-size: 16px;
        font-weight: 700;
        margin-top: -35px;
        float: right;
    }

    Thanks,

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197497
     emmanuel
    Participant

    ok but it is not showing on the mobile website

    #197510
     Kieran_SQ
    Moderator

    Hi,

    Try adding this additional CSS which targets under 767px

    COPY CODE
    @media only screen and (max-width: 767px) {
    .directory #horizontal_search:after {
        margin-bottom:10px !important;
        margin-top: unset !important;
        float: unset !important;
    }
    }

    Thanks,

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197515
     emmanuel
    Participant

    thanks is there a way i can show male to female and female to male in the member directory

    example a user register and select i am a ( man ) looking for a ( women) fields now when the users go to the members directory page can the member directory show only women to the users as the default because the user had selected looking for a women upon registering

    #197518
     Kieran_SQ
    Moderator

    Hi,

    It would seem you either have custom code or a plugin to achieve that functionality. You would either need to extend your code or remove it to return the normal functionality where users can see all.

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197521
     emmanuel
    Participant

    ok if hire a developer what would the developer need to do to achieve this custom function

    #197523
     Kieran_SQ
    Moderator

    Hi,

    You would need to tell them what you told me in the above reply and let them know what code you’re using to achieve the current functionality, they should be aware that the data is stored in BuddyPress xprofile fields.

    Thanks,

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197526
     emmanuel
    Participant

    ok i got these two answers from the buddpress forum which one can achieve what i asked you about see the links below

    https://buddypress.org/support/topic/filter-members-list-based-on-profile-field/

    https://gist.github.com/anonymous/7913816

    https://buddypress.org/support/topic/members-directory-3/

    #197527
     Kieran_SQ
    Moderator

    Hi,

    It looks like you have something similar to the GitHub gist already, it is this code that would be the best option, but it would need to be extended to account for the users looking for fields.

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197530
     emmanuel
    Participant

    ok where can i paste it and i can i use it just as it is on GitHub

    #197532
     Kieran_SQ
    Moderator

    Hi,

    You can copy the code in it’s entireity from GitHub and paste it into WP Admin > Appearance > Editor > SweetDate Child > Functions.php on a new line at the end of the file.

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197538
     emmanuel
    Participant

    ok i have use this code but have not seen any differences

    class BP_Custom_User_Ids {

    private $custom_ids = array();

    public function __construct() {

    $this->custom_ids = $this->get_custom_ids();

    add_action( ‘bp_pre_user_query_construct’, array( $this, ‘custom_members_query’ ), 1, 1 );
    add_filter( ‘bp_get_total_member_count’, array( $this, ‘custom_members_count’ ), 1, 1 );

    }

    private function get_custom_ids() {
    global $wpdb;

    // collection based on an xprofile field
    $custom_ids = $wpdb->get_col(“SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 5 AND value = ‘Female'”);

    return $custom_ids;
    }

    function custom_members_query( $query_array ) {

    $query_array->query_vars[‘include’] = $this->custom_ids;

    }

    function custom_members_count ( $count ) {

    $new_count = count( $this->custom_ids );
    return $count – $new_count;

    }
    }

    function custom_user_ids( ) {

    new BP_Custom_User_Ids ();

    }

    add_action( ‘bp_before_directory_members’, ‘custom_user_ids’ );

    #197543
     Kieran_SQ
    Moderator

    HI,

    If you have an issue with third party code or extending third party code then you will need to raise it either on GutHub directly with the author or via the forum / post where you originally found the code. We cannot assist with custom development via the forums as it outside the scope of support offered with the theme.

    Thanks,

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197554
     emmanuel
    Participant

    ok thanks

    #197555
     Kieran_SQ
    Moderator

    Hi,

    No worries, do you consider this ticket resolved?

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197556
     emmanuel
    Participant

    Hi one more thing could the site header be sticky/fixed

    #197557
     Kieran_SQ
    Moderator

    Hi,

    Please try the below CSS

    COPY CODE
    @media only screen and (min-width: 768px) {
    .header-bg {
        position: fixed;
        width: 100%;
        z-index: 99;
    }
    }

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197558
     emmanuel
    Participant

    the website header see attachment

    Attachments:
    You must be logged in to view attached files.
    #197561
     Kieran_SQ
    Moderator

    Hi,

    I pasted code I gave above directly into a CSS file on your site and it works fine. Please double check you have pasted the correct code and that you pasted it onto a new line – not within any other CSS.

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197562
     emmanuel
    Participant

    it is still not fixed/sticky i am speaking about the website not the mobile website

    Attachments:
    You must be logged in to view attached files.
    #197565
     Kieran_SQ
    Moderator

    Hi,

    Yes, the CSS targets only screen sizes above 768px. Please update this ticket, in a private reply, with admin credentials for your site and let me know exactly where added the CSS (including line number).

    Thanks,

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197566
     emmanuel
    Participant
    This reply has been set as private.
    #197567
     Kieran_SQ
    Moderator

    Hi,

    That’s really very strange. When I add the code manually via the front end it works, yet in the Theme Options it does not.

    I will refer this ticket to one of our developers for review and insight into the issue. They’ll be in touch with you as soon as they can, Monday to Friday, East European Time.

    Thank you for your patience,

    Kieran

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

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #197568
     emmanuel
    Participant

    Ok

    #197795
     Radu
    Moderator

    Hi,
    Replace the css that kieran provided here : https://archived.seventhqueen.com/forums/topic/adjust/#post-197557

    With this one

    COPY CODE
    
    .header-bg {
        position: fixed;
        width: 100%;
        z-index: 99;
    }
    

    If you want that only for home use this one

    COPY CODE
    
    
    .home .header-bg {
        position: fixed;
        width: 100%;
        z-index: 99;
    }
    
    

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 26 posts - 1 through 26 (of 26 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?