Tagged: x
-
AuthorPosts
-
December 6, 2016 at 3:07 pm #1283652
smsfthinkerParticipantHello there,
I was wondering how I can achieve a top bar menu like this one http://irislillian.com/ or should I jsut adjust the code on my header menu to achieve the same effect. My site is http://blogwithconfidence.com/
Kind regards,
HelenDecember 6, 2016 at 9:26 pm #1284001
FriechModeratorHi Helen,
Thanks for writing in! You can create a new menu and assign that as your Topbar menu. To do this please follow this post: https://community.theme.co/forums/topic/adding-a-menu-to-topbar/#post-1116716
Hope it helps, Cheers!
December 7, 2016 at 4:10 am #1284311
smsfthinkerParticipantThanks Friech,
I’ve followed the instructions and now need some help to CSS style the top bar.
I would also like the top bar to have a search icon and the social media icons.
Can you please give me some help to make it look like this topbar?
Kind regards,
HelenDecember 7, 2016 at 4:50 am #1284358
Paul RModeratorHi Helen,
To achieve that, you can add this under Custom > edit Global CSS in the Customizer.
.x-topbar .menu li { position: relative; } .x-topbar .menu .sub-menu { display:none; position:absolute; min-width: 250px; background-color: #fff; } .x-topbar .menu .sub-menu li { display:block; } .x-topbar li.menu-item-has-children:hover .sub-menu { display:block !important; } .x-topbar #menu-top-bar-menu { float:left; } .x-topbar .x-social-global { margin-top: 25px; }Hope that helps.
December 7, 2016 at 2:13 pm #1285035
smsfthinkerParticipantDecember 7, 2016 at 5:06 pm #1285250
NicoModeratorHi There,
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 / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
December 8, 2016 at 12:13 am #1285698
smsfthinkerParticipantThis reply has been marked as private.December 8, 2016 at 12:50 am #1285727
Paul RModeratorThis reply has been marked as private.December 8, 2016 at 2:02 am #1285761
smsfthinkerParticipantThanks Paul,
Almost there.
How can I:
1. change the font weight to 600;
2. add the search icon to the right of the social media icons with a border like in http://irislillian.com/
3. display the menu arrow so that Blog Post Recipes items display in the dropdown.Regards,
HelenDecember 8, 2016 at 2:26 am #1285781
Paul RModeratorHi Helen,
I have adjusted the css, to add the search please add the code below in your _topbar.php after <?php x_social_global(); ?>
<div class="my-search"><a href="#" class="x-btn-navbar-search"><span><i class="x-icon-search" data-x-icon="" aria-hidden="true"></i><span class="x-hidden-desktop"> Search</span></span></a></div>The file is located in wp-content/themes/x-child/framework/views/global
Hope that helps.
December 8, 2016 at 3:43 pm #1286591
smsfthinkerParticipantThanks Paul,
I’ve added the code to the php file for the search icon.
Are you able to adjust the CSS so that the search icon displays in line with the menu text, plus is displayed to the right of the social media icons with a border like in http://irislillian.com/?
Appreciate your help.
Helen
December 8, 2016 at 3:55 pm #1286613
smsfthinkerParticipantPS How to only display the top bar and footer menus?
When I ‘de-select’ the nav bar menu I’m left with a message to assign a menu.
Regards,
HelenDecember 8, 2016 at 7:46 pm #1286904
RadModeratorHi there,
Please add this custom CSS as well,
.my-search { line-height: 38px; } .x-navbar { display: none; }Cheers!
December 9, 2016 at 12:18 am #1287076
smsfthinkerParticipantThanks Rad,
Can you please tell me how to reduce the depth of the topbar. Currently there is a lot of space under the text. I would like there to be an even amount of space (padding?) above and below the menu, as displayed here http://irislillian.com/
Kind regards,
HelenDecember 9, 2016 at 12:43 am #1287090
Rue NelModeratorHi Helen,
To reduce the topbar, please add the following css code in the customizer, Appearance > Customize > Custom > CSS
body.x-navbar-fixed-top-active .x-navbar-wrap { display: none; }This will hide the navbar because at the moment the space is coming from the topbar which made the topbar to look like there is some space below it.
Hope this helps. Please let us know how it goes.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1283652 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
