This topic has 2 replies, 2 voices, and was last updated 9 years by gbriar.

  • Author

    Tagged: ,

  • #39050
     gbriar
    Participant

    I’m looking to create a new navigation menu – see attached mock-up. What I want to do is to move the functionality from the pre-set ‘Profile’ drop-down menu so that user see the alerts (numbers) when and if people show an interest, send a message etc.

    Is this possible and if so how can this be done?

    Attachments:
    You must be logged in to view attached files.
    #39072
     Laura
    Moderator

    Hello, this theme only has messages and Friendship request counters, for the other you should hide a developer to do it for you, and for the question to add it to your menu, you can do the following: Copy Header.php to your child theme, edit it and find “Main Navigation”

    Then right after

    COPY CODE
    <div class="eight columns"</*div>

    Paste this:

    COPY CODE
    
    <ul class="button-group radius left">
    <?php if (is_user_logged_in()): ?>
    							
    		<?php if (function_exists('bp_is_active')): ?>
    							<?php 
    							$profile_menu = array();
    							
    							if( bp_is_active('messages')) {
    								$profile_menu['messages'] = '<li style="list-style:none"><a href="' . bp_loggedin_user_domain().'messages/">'. __("Messages", "buddypress").' <small class="label">'. messages_get_unread_count().'</small></a></li>';
    							}							
    							
    							if (bp_is_active('friends')) {
    								$profile_menu['friends'] = '<li style="list-style:none"><a href="' . bp_loggedin_user_domain().'friends/requests">'. __("Friend requests", 'kleo_framework').' <small class="label">'. bp_friend_get_total_requests_count().'</small></a></li>';
    							}						
    														
    							
    							$profile_menu = apply_filters('header_profile_dropdown',$profile_menu);
    							?>
    							
    							<li class="relative btn-profile">
    								<?php if (!empty($profile_menu)) { ?>
    									<div href="#" class="" data-options="is_hover:true">
    								<?php } ?>
    								<span></span><div class="kleo-notifications"><?php if( bp_is_active('messages') && messages_get_unread_count() > 0 ) { ?><a>" data-width="210" title="<?php _e("New messages", 'kleo_framework');?>" class="kleo-message-count has-tip tip-left"><?php echo messages_get_unread_count(); ?></a><?php } ?><?php if (bp_is_active('friends') && bp_friend_get_total_requests_count() > 0): ?> <a>" data-width="210" title="<?php _e("Friend requests", 'kleo_framework');?>" class="kleo-friends-req has-tip tip-right"><?php echo bp_friend_get_total_requests_count(); ?></a><?php endif; ?> </div>
    								<ul style="list-style:none">
    								<?php 
    								if (!empty($profile_menu)) {
    									foreach($profile_menu as $prm):
    										echo $prm;
    									endforeach;
    								} 
    								?>
    								</ul>
    								<?php if (!empty($profile_menu)) { ?>
    									</div>        
    								<?php } ?>
    								
    							</li>
    							<?php endif; ?>
    							
    							
    
                            <?php else: ?>
    
    							
    
                                <?php if(get_option('users_can_register')) { ?>
    							
    							<?php } ?>
    
    						<?php endif; ?>
    					</ul>
    

    Then paste this to your style.css in child theme:

    COPY CODE
    
    .usermenuactive {
    color: #fff !important;
    display: block;
    font-size: 13px;
    font-weight: bold;
    padding: 0 15px;
    float: left;
    listy-style:none !important;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

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

    Always happy to help you 🙂

    #39077
     gbriar
    Participant

    Hi Laura

    I’ll see about getting a developer to do it as suggested … I’ve hired one in the past who’s done a bit of work.

    Can’t thank you enough for all your help … 1st class support!

    Thanks
    Graham

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

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

Log in with your credentials

Forgot your details?