-
AuthorPosts
-
July 23, 2015 at 11:32 pm #338972
Hi,
There is what looks like a chat box icon in my main menu that evidently came standard with the Ethos 01 theme. This area has a dropdown list of 4 links to like Forums. I’d like to change this icon and make it a single button to go to a specific page on the site.
Here’s a screenshot:
Thanks,
ScottJuly 24, 2015 at 1:47 am #339087Hi Scott,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
July 24, 2015 at 1:50 am #339090This reply has been marked as private.July 24, 2015 at 4:14 am #339197Hello There,
Thanks for providing the very detailed information.
What you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Once your child theme is active, please insert this code in your child theme’s functions.php file
if ( ! function_exists( 'x_bbpress_navbar_menu' ) ) : function x_bbpress_navbar_menu( $items, $args ) { if ( X_BBPRESS_IS_ACTIVE && x_get_option( 'x_bbpress_header_menu_enable', '' ) == '1' ) { $submenu_items = ''; $submenu_items .= '<li class="menu-item menu-item-bbpress-navigation"><a href="' . bbp_get_search_url() . '" class="cf"><i class="x-icon-search" data-x-icon=""></i> <span>' . __( 'Forums Search', '__x__' ) . '</span></a></li>'; if ( is_user_logged_in() ) { $submenu_items .= '<li class="menu-item menu-item-bbpress-navigation"><a href="' . bbp_get_favorites_permalink( get_current_user_id() ) . '" class="cf"><i class="x-icon-star" data-x-icon=""></i> <span>' . __( 'Favorites', '__x__' ) . '</span></a></li>'; $submenu_items .= '<li class="menu-item menu-item-bbpress-navigation"><a href="' . bbp_get_subscriptions_permalink( get_current_user_id() ) . '" class="cf"><i class="x-icon-bookmark" data-x-icon=""></i> <span>' . __( 'Subscriptions', '__x__' ) . '</span></a></li>'; } if ( ! X_BUDDYPRESS_IS_ACTIVE || X_BUDDYPRESS_IS_ACTIVE && x_get_option( 'x_buddypress_header_menu_enable', '' ) == '' ) { if ( ! is_user_logged_in() ) { $submenu_items .= '<li class="menu-item menu-item-bbpress-navigation"><a href="' . wp_login_url() . '" class="cf"><i class="x-icon-sign-in" data-x-icon=""></i> <span>' . __( 'Log in', '__x__' ) . '</span></a></li>'; } else { $submenu_items .= '<li class="menu-item menu-item-bbpress-navigation"><a href="' . bbp_get_user_profile_url( get_current_user_id() ) . '" class="cf"><i class="x-icon-cog" data-x-icon=""></i> <span>' . __( 'Profile', '__x__' ) . '</span></a></li>'; } } if ( $args->theme_location == 'primary' ) { $items .= '<li class="menu-item current-menu-parent menu-item-has-children x-menu-item x-menu-item-bbpress">' . '<a href="' . get_post_type_archive_link( bbp_get_forum_post_type() ) . '" class="x-btn-navbar-bbpress">' . '<span><i class="x-icon-comment" data-x-icon=""></i><span class="x-hidden-desktop"> ' . __( 'Forums', '__x__' ) . '</span></span>' . '</a>' . '<ul class="sub-menu">' . $submenu_items . '</ul>' . '</li>'; } } return $items; } add_filter( 'wp_nav_menu_items', 'x_bbpress_navbar_menu', 9996, 2 ); endif;
Fell free to edit the icon or change it with the button according to your preference.
Hope this helps. Kindly let us know.July 24, 2015 at 4:30 am #339204Hmmmm…That is disappointing. The feature comes with the template and in my opinion should be editble without going through all of the trouble of creating a child theme. Why place it there if you can simply edit it? I don’t even see a place in the Customizer to hide it or change the links and the name of the links? Why?
With that said is there a simple way of just getting rid of the darn thing without creating a child theme?
Thanks,
ScottJuly 24, 2015 at 4:32 am #339209Well. I deactivated the bbpress plugin and that got rid of the thing. So that works. Don’t need a forum for this project.
Is there a way to change a button in the navbar to an icon. So instead of saying Login…I could place an icon like you have with the search?
Thanks,
ScottJuly 24, 2015 at 4:58 am #339223I tried just adding the icon shortcode to the navigation label in the Menu section of WP:
[icon type=”unlock-alt”]
But that didn’t work but I think it should. Any ideas?
Thanks,
ScottJuly 24, 2015 at 5:10 am #339232Sorry for being such a pain but I figured it out. Added this to the Navigation Label:
<i class=”x-icon x-icon-unlock-alt”></i>
July 24, 2015 at 6:23 am #339270Hi,
Glad you were able to figure it out.
Have a nice day!
-
AuthorPosts