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

  • Author
  • #195657
     TheDream18
    Participant

    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

    #195678
     Kieran_SQ
    Moderator

    Hi,

    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 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.

    #195741
     TheDream18
    Participant

    Hi.

    1) I added css with !important
    2) Cleared borrow & cache few times

    None of them work.

    #195794
     Kieran_SQ
    Moderator

    Hi,

    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 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.

    #195801
     TheDream18
    Participant

    Hi.

    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.
    #195816
     Kieran_SQ
    Moderator

    Hi,

    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 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.

    #197200
     TheDream18
    Participant

    Hi. 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 /profile

    Step 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

    #197220
     Kieran_SQ
    Moderator

    Hi

    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 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.

    #197234
     TheDream18
    Participant

    Thank 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/messagers

    I 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 …………….

    #197243
     Kieran_SQ
    Moderator

    Hi,

    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 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.

    #197249
     TheDream18
    Participant

    How about question 3, please.

    Question 4.
    Here is part of code i added to to $profile-menu

    COPY 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 );?>
    
    
    #197262
     Radu
    Moderator

    Hi,

    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
    R

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

    I 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

    #197323
     Radu
    Moderator

    Hi,

    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
Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?