-
Author
Tagged: header
-
November 19, 2014 at 06:32 #35958adamParticipant
Hello – I have a header.php in my child theme and have not been able to update my code to add the drop down menu for the profile button in the header. Would it be possible to take a quick look at my header.php code and tell me the new code I need and where to put it in order to get the drop down working? I’ve tried comparing both files and adding the new code, but it breaks my site. Thank you!
COPY CODE<?php /** * The Header for our theme. * * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <themesupport@seventhqueen.com> * @since Sweetdate 1.0 */ ?><!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]--> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width" /> <title><?php wp_title( '|', true, 'right' ); ?></title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <!--[if IE 7]> <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/assets/styles/font-awesome-ie7.min.css"> <script src="<?php echo get_template_directory_uri();?>/assets/scripts/ie6/warning.js"></script> <script>window.onload=function(){e("<?php echo get_template_directory_uri();?>/assets/scripts/ie6/")}</script> <![endif]--> <!--Favicons--> <?php if (sq_option('favicon')) { ?> <link rel="shortcut icon" href="<?php echo sq_option('favicon'); ?>"> <?php } ?> <?php if (sq_option('apple57')) { ?> <link rel="apple-touch-icon" href="<?php echo sq_option('apple57'); ?>"> <?php } ?> <?php if (sq_option('apple57')) { ?> <link rel="apple-touch-icon" sizes="57x57" href="<?php echo sq_option('apple57'); ?>"> <?php } ?> <?php if (sq_option('apple72')) { ?> <link rel="apple-touch-icon" sizes="72x72" href="<?php echo sq_option('apple72'); ?>"> <?php } ?> <?php if (sq_option('apple114')) { ?> <link rel="apple-touch-icon" sizes="114x114" href="<?php echo sq_option('apple114'); ?>"> <?php } ?> <?php if (sq_option('apple144')) { ?> <link rel="apple-touch-icon" sizes="144x144" href="<?php echo sq_option('apple144'); ?>"> <?php } ?> <?php if(function_exists('bp_is_active')) { bp_head(); } ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php do_action('kleo_after_body');?> <!-- Page ================================================ --> <!--Attributes--> <!--class = kleo-page wide-style / boxed-style--> <div class="kleo-page <?php echo sq_option('site_style','wide-style'); ?>"> <!-- HEADER SECTION ================================================ --> <header> <div class="header-bg clearfix"> <?php if(sq_option('social_top') == 1) :?> <!--Top links--> <div class="top-links"> <div class="row"> <!-- Logo --> <div class="three login-logo"> <a href="<?php echo get_home_url(); ?>" id="main-logo"><img id="main-logo_img" src="<?php echo get_stylesheet_directory_uri(); ?>/assets/img/couple-friend-logo.png" alt="Make New Couple Friends" ></a> </div> <!--end logo--> <!-- Login/Register/Forgot username/password Modal forms - Hidden by default to be opened through modal - For faster loading we put all forms at the bottom of page --> <!--Login buttons--> <div class="eight columns login-buttons"> <ul class="button-group radius right"> <?php if (is_user_logged_in()): ?> <?php if (function_exists('bp_is_active')): ?> <?php $profile_menu = array(); if( bp_is_active('activity')) { $profile_menu['activity'] = '<li><a href="' . bp_loggedin_user_domain().'activity/">'. __("Activity", "buddypress").'</a></li>'; } if( bp_is_active('messages')) { $profile_menu['messages'] = '<li><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><a href="' . bp_loggedin_user_domain().'friends/requests">'. __("Friend requests", 'kleo_framework').' <small class="label">'. bp_friend_get_total_requests_count().'</small></a></li>'; } if( bp_is_active('groups')) { $profile_menu['groups'] = '<li><a href="' . bp_loggedin_user_domain().'groups/">'. __("Groups", "buddypress").'</a></li>'; } if( bp_is_active('settings')) { $profile_menu['settings'] = '<li><a href="' . bp_loggedin_user_domain().'settings/">'. __("Settings", "buddypress").'</a></li>'; } $profile_menu = apply_filters('header_profile_dropdown',$profile_menu); ?> <li class="relative btn-profile"> <?php if (!empty($profile_menu)) { ?> <div href="#" class="tiny secondary button split dropdown" data-options="is_hover:true"> <?php } ?> <a href="<?php bp_loggedin_user_link(); ?>" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("PROFILE", 'kleo_framework'); ?></a><span></span><div class="kleo-notifications"><?php if( bp_is_active('messages') && messages_get_unread_count() > 0 ) { ?><a href="<?php echo bp_loggedin_user_domain().'messages/'; ?>" 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 href="<?php echo bp_loggedin_user_domain().'friends/requests'; ?>" 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> <?php if (!empty($profile_menu)) { foreach($profile_menu as $prm): echo $prm; endforeach; } ?> </ul> <?php if (!empty($profile_menu)) { ?> </div> <?php } ?> </li> <?php endif; ?> <li><a href="<?php echo wp_logout_url(get_bloginfo('url')); ?> " class="tiny button radius btn-logout"><i class="icon-off hide-for-medium-down"></i> <?php _e("LOG OUT", 'kleo_framework'); ?></a></li> <?php else: ?> <li class="header-login-button"><a href="#" data-reveal-id="login_panel" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("LOG IN", 'kleo_framework'); ?></a></li> <?php if(get_option('users_can_register')) { ?> <li class="header-register-button"><a href="#" data-reveal-id="register_panel" class="tiny button radius"><i class="icon-group hide-for-medium-down"></i> <?php _e("SIGN UP", 'kleo_framework'); ?></a></li> <?php } ?> <?php endif; ?> </ul> </div> <!--end login buttons--> <!-- Main Navigation --> <div class="eight columns"> <div class="contain-to-grid<?php if (sq_option('sticky_menu', 1) == 1) echo ' sticky'; ?>"> <nav class="top-bar"> <a href="<?php echo get_home_url(); ?>" class="small-logo"><img src="<?php echo sq_option('small_logo',get_template_directory_uri().'/assets/images/small_logo.png'); ?>" height="43" alt="<?php bloginfo('name'); ?>"></a> <ul> <!-- Toggle Button Mobile --> <li class="name"> <h1><a href="#"><?php _e("Please select your page", 'kleo_framework'); ?></a></h1> </li> <li class="toggle-topbar"><a href="#"><i class="icon-reorder"></i></a></li> <!-- End Toggle Button Mobile --> </ul> <section><!-- Nav Section --> <?php wp_nav_menu( array( 'container' => false, 'menu_class' => 'left', 'theme_location' => 'primary', 'fallback_cb' => 'sweetdate_main_nav', 'walker' => new sweetdate_walker_nav_menu) ); ?> </section><!-- End Nav Section --> </nav> </div><!--end contain-to-grid sticky--> </div> <!-- end Main Navigation --> </div><!--end row--> <?php if (sq_option('home_rev',0) == 1 && function_exists('putRevSlider')) { /*Fix for Safari on MacOs */ ?> </div><!--end #header--> <?php } ?> <div class="row just-after-header"> <?php /** * after_header_content * * @hooked render_user_search - only if is Front-page Template */ do_action('after_header_content'); ?> </div> <?php if (sq_option('home_rev',0) == 0) { /*Fix for Safari on MacOs */ ?> </div><!--end #header--> <?php } ?> <?php /** * kleo_after_header * */ do_action('kleo_after_header'); ?> </div><!--end header-bg--> </header> <!--END HEADER SECTION--> <?php /** * kleo_before_page * * @hooked kleo_show_breadcrumb - 9 */ do_action( 'kleo_before_page' ); ?>
November 27, 2014 at 01:19 #36829AbeKeymasterHi, you should get the original code from the theme back. The dropdown is already there
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.