-
Author
-
May 12, 2018 at 16:23 #197486emmanuelParticipant
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.May 12, 2018 at 17:11 #197494Kieran_SQModeratorHi,
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 solutionIf 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.
May 12, 2018 at 17:41 #197510Kieran_SQModeratorHi,
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 solutionIf 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.
May 12, 2018 at 18:33 #197515emmanuelParticipantthanks 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
May 12, 2018 at 18:37 #197518Kieran_SQModeratorHi,
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 solutionIf 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.
May 12, 2018 at 18:42 #197521emmanuelParticipantok if hire a developer what would the developer need to do to achieve this custom function
May 12, 2018 at 18:44 #197523Kieran_SQModeratorHi,
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 solutionIf 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.
May 12, 2018 at 18:51 #197526emmanuelParticipantok 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/
May 12, 2018 at 18:53 #197527Kieran_SQModeratorHi,
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 solutionIf 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.
May 12, 2018 at 19:00 #197530emmanuelParticipantok where can i paste it and i can i use it just as it is on GitHub
May 12, 2018 at 19:02 #197532Kieran_SQModeratorHi,
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 solutionIf 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.
May 12, 2018 at 19:11 #197538emmanuelParticipantok 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’ );
May 12, 2018 at 20:15 #197543Kieran_SQModeratorHI,
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 solutionIf 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.
May 12, 2018 at 22:54 #197555Kieran_SQModeratorHi,
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 solutionIf 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.
May 13, 2018 at 00:58 #197556emmanuelParticipantHi one more thing could the site header be sticky/fixed
May 13, 2018 at 01:05 #197557Kieran_SQModeratorHi,
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 solutionIf 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.
May 13, 2018 at 01:14 #197558emmanuelParticipantthe website header see attachment
Attachments:
You must be logged in to view attached files.May 13, 2018 at 01:18 #197561Kieran_SQModeratorHi,
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 solutionIf 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.
May 13, 2018 at 01:22 #197562emmanuelParticipantit 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.May 13, 2018 at 01:30 #197565Kieran_SQModeratorHi,
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 solutionIf 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.
May 13, 2018 at 02:27 #197567Kieran_SQModeratorHi,
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 solutionIf 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.
May 15, 2018 at 18:30 #197795RaduModeratorHi,
Replace the css that kieran provided here : https://archived.seventhqueen.com/forums/topic/adjust/#post-197557With 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
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.