-
Author
-
April 22, 2018 at 10:23 #195657TheDream18Participant
Hi,
By defaul $profile-menu have in black color:
+ All activity
+ Message
+ Friends request
+ Setting…
I tested with code, which allow changed text difference than black if i opening current url
.split ul a:active{
color:#2ecc71;
}
.split ul a:visited{
color:#2ecc71;
}
.split ul a.current{
color:#2ecc71;
}
None any of bellow work.
Example: If i open url domain.com/members/username/setting
==> which is “setting” in $profile-menu
So “setting” will be in color #2ecc71; all another which is not current open URL will still in black
What css should be correct please?
Thanks
April 22, 2018 at 17:15 #195678Kieran_SQModeratorHi,
The custom CSS to override the color for the link and icon when it is the current active item is as below
COPY CODE.bp-overlay-menu #buddypress div#item-nav ul li.current a { color: #2ecc71; } .bp-overlay-menu #buddypress div#item-nav ul li.current a:before { color: #2ecc71; }
Change #2ecc71 to suit your needs and make sure to clear all of your caches to see the changes.
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.
April 23, 2018 at 04:59 #195741TheDream18ParticipantHi.
1) I added css with !important
2) Cleared borrow & cache few timesNone of them work.
April 23, 2018 at 16:24 #195794Kieran_SQModeratorHi,
My apologies, I see now your ticket relates to SweetDate and not KLEO – please disregard the CSS that I sent to you for KLEO.
To save on any further confusion please can you attach a screenshot highlighting the URL / page contents that you wish to alter within the SweetDate 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.
April 23, 2018 at 17:19 #195801TheDream18ParticipantHi.
I clearly added in correct sweet theme here in breadcrum
“”””””
Home / Forums / Sweetdate – WordPress Theme options & Demo content : Color of current opening URL in $profile-menu of logged in user
“”””””Please help me with correct code, bellow is screenshot for easier understand.
As you see current i opened GROUP, but text did not change color. I want dropdown menu a.current change color when a GROUP is opening
Attachments:
You must be logged in to view attached files.April 23, 2018 at 18:19 #195816Kieran_SQModeratorHi,
Yes I can see that and have apologized for the confusion, the forum works differently for users and moderators and in my haste I missed the theme in question.
The drop down under the profile button is not a menu in the traditional WordPress sense. It is a list of li elements that are toggled on or off from view with JavaScript. In the back-end this is a series of conditionals that checks if BuddyPress is activate, and if Groups component is active – if so, show Groups menu item.
This means that there are no additional dynamic classes added to each item when you’re visiting the same page.
With that said you can use a little creative CSS to achieve this, please try adding the below CSS into your SweetDate Child theme’s style.css file by going to WP Admin > Appearance > Editor > SweetDate Child > Style.css
COPY CODE.my-account.groups #header .btn-profile a[href*="groups"] { background: #000; color: #fff; } .my-account.friends #header .btn-profile a[href*="friends"] { background: #000; color: #fff; } .my-account.messages #header .btn-profile a[href*="messages"] { background: #000; color: #fff; } .my-account.activity #header .btn-profile a[href*="activity"] { background: #000; color: #fff; } .my-account.settings #header .btn-profile a[href*="settings"] { background: #000; color: #fff; }
Adjust the #000 and #fff values to suit your needs. Once saved clear your website cache, CDN and local cache (Ctrl+F5) to see the changes.
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 9, 2018 at 11:34 #197200TheDream18ParticipantHi. The code work correct for defaul buddypress but don’t work for “xprofile and rtmedia”
Step 1: I already success added to $profile-menu
slug /media
slug /profileStep 2: Creatative css similar yours. Bellow is everything i tried but no work.
.my-account.groups #header .btn-profile a[href=”‘. bp_loggedin_user_domain().’media/”],
.my-account.groups #header .btn-profile a[href*=”media”],
.my-account.groups #header .btn-profile a[href*=”xprofile”],
.my-account.groups #header .btn-profile a[href*=”profile”] {background:#000; color:fff}How to correct css for xprofile and media?
Thanks
May 9, 2018 at 17:08 #197220Kieran_SQModeratorHi
By default there is no menu items in the profile menu that match that description. If you customized the theme to include more menu items you will need to share access so I can see the CSS classes you have given each item and the URL.
Currently your CSS is targeting the groups menu item and is attempting to use PHP within CSS. This will not work.
I have bolded the errors below
.my-account.groups #header .btn-profile a[href=”‘. bp_loggedin_user_domain().’media/”],
.my-account.groups #header .btn-profile a[href*=”media”]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 9, 2018 at 18:07 #197234TheDream18ParticipantThank you. My bad. It worked now.
Another question. Call it question 3)
Step 1: Keep $profile-menu code for /messages as defaul ==> Link: domain.com/username/messagers
Step 2: Use messager plugin for buddypress
Step 3. Click on $profile-menu “Message” the button working correct without modify $profile-header for /messagers
==> After step 2, link: domain.com/messagersI used
.my-account.messages #header .btn-profile a[href=”https://domain.com/messages/”%5D
Or
.my-account.messages #header .btn-profile a[href*=”messages”]These no work. can you help me correct it?
======================
Question 4)
Step 1: defaul logout button in header.
Step 2: I success moved it under “$profile-menu” instead of defaul button.
Step 3: Apply all css worked.
Step 4: Frontend “Logout” button always 100% apply css used in step 3.
How do i get rid of css effect Logout button?Hover logout button i saw link: domain.com/logout?_bl …………….
May 9, 2018 at 18:15 #197243Kieran_SQModeratorHi,
I will assign this ticket to a higher support level to assist you in your query as I cannot see why this would affect the logout button. You will need to share your URL to receive further, in depth, assistance with this issue.
Someone will be in touch with you as soon as they can, Monday to Friday, East European Time.
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 9, 2018 at 18:22 #197249TheDream18ParticipantHow about question 3, please.
Question 4.
Here is part of code i added to to $profile-menuCOPY CODE<!--MY CODE --> if ( bp_is_active( 'logout' ) ) { $profile_menu1['logout'] = '<li> <a href=" ' . wp_logout_url('/url-page-to-be-redirected') . '/">' . __( "Logout", "buddypress" ) . '</a></li>'; } <!-- END MY CODE --> $profile_menu1 = apply_filters( 'header_profile_dropdown', $profile_menu1 );?>
May 9, 2018 at 19:00 #197262RaduModeratorHi,
Can you resume please what are you trying to do ?
I understand you want to change color of a menu item when you are on a certain url ?
Using a similar css like this : .my-account.messages #header .btn-profile a[href=”https://domain.com/messages/”] will not color that when you are on that url will target only the a elements that has in href that url and hiveng this class btn-profile wrapped into this structure .my-account.messages #header.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMay 9, 2018 at 19:19 #197264TheDream18ParticipantI tried
.my-account.messages #header .btn-profile a[href*=”messages”]
This code work for all another such as notifications, friends. But not work for messages
May 10, 2018 at 15:06 #197323RaduModeratorHi,
use this one
COPY CODE.button.dropdown>ul li a[href*="messages"] { background: #000; color: #fff !important; } }
Hi 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.