Hi, can u help me correct code bellow (i’m trying to build exactly as user links your website here but with sub menu)
1) The /profile url did not appear (i tested with main menu /setting it was work correct)
2) Hover on /profile will appear the sub nav, but it also no work
<?php if ( function_exists( 'bp_is_active' ) ): ?> <?php $profile_menu = array(); if ( bp_is_active( 'profile' ) ) { $profile_menu['profile'] = '<li><a href="' . bp_loggedin_user_domain() . 'profile/">' . __( "Profile", "buddypress" ) . '</a></li>'; <ul class="dropdown-profile"> <li><a href="' . bp_loggedin_user_domain() . 'profile/view">' . __( "View", "buddypress" ) . '</a></li> <li><a href="' . bp_loggedin_user_domain() . 'profile/edit/group1">' . __( "Edit", "buddypress" ) . '</a></li> <li><a href="' . bp_loggedin_user_domain() . 'profile/change-avatar/">' . __( "Change Photo", "buddypress" ) . '</a></li> </ul> $profile_menu = apply_filters( 'header_profile_dropdown', $profile_menu ); ?>
Hi, i posted the code, it appear messed up, i tried to put in
or none also messed up as u see. What is wrong?
Hi Julia,
I have fixed the layout.You may use the following code instead
bp_nav_menu();
That will generate proper menu with sub menu.
Regards
Brajesh<ul class="my-dropdown-bp-menu-in-header"> <?php if ( is_user_logged_in() ): ?> <?php if ( function_exists( 'bp_is_active' ) ): ?> <?php $profile_menu = bp_nav_menu();
It appear a mess of horizontal. Did not appear as a dropdown. What should i make it appear as dropdown?
Can you give me full code?
You will need someone to do the css for you. I am sorry but our support is limited. You will need to hire someone from upwork or codeable to do it for you.
Regards
Brajesh
You must be logged in to reply to this topic.