Tagged: x
-
AuthorPosts
-
December 29, 2016 at 10:18 pm #1309417
SomniumParticipantHi, I added this code for my topbar. It works for me but I want to customize them a little bit. I need my phone number and email in front of the social icons. At the moment number and mail are left aligned. Additional I want to change the color and the hover color. How can I do this?
<a href="/contact"><i class='x-icon x-icon-phone' data-x-icon=''></i> +0000000</a> | <a href="mailto:[email protected]"><i class='x-icon x-icon-envelope' data-x-icon=''></i> [email protected]</a>December 30, 2016 at 1:43 am #1309596
RupokMemberHi there,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
December 30, 2016 at 12:59 pm #1310158
SomniumParticipantThis reply has been marked as private.December 30, 2016 at 1:36 pm #1310189
JoaoModeratorHi There,
Regarding your first post, please add the following code to Appereance > Customizer > Custom > CSS
.x-topbar .p-info { margin-left: 65%; color: white; } .x-topbar .x-social-global { color: white; } .x-topbar .p-info a:hover { color: red !important; } .x-topbar, .x-colophon.bottom { background: lightblue; }Alternatively to use gaps to place your buttons aligned, you can add the following CSS
.x-feature-box.center-text.top-text.cf { min-height: 350px; }If you need further help, please turn of the security plugin that protects your source code temporarily to make our life easier 🙂
Thanks
December 30, 2016 at 7:23 pm #1310555
SomniumParticipantHi, thx for your fast reply 🙂
The first code works well on Desktop, but on mobile phone it is compressed and looks not so great.
The second one doesn’t work for me. Is there any opportunity to get the right Space for every feature box an my page?
Through the different text length in the box is the css not working for me. If I use them the buttons are everywhere but not there I want to have 😉December 31, 2016 at 1:55 am #1310776
RadModeratorHi there,
1. Please change the first CSS to this,
.x-topbar .p-info { color: white; } .x-topbar .x-social-global { color: white; } .x-topbar .p-info a:hover { color: red !important; } .x-topbar, .x-colophon.bottom { background: lightblue; } @media (min-width: 979px) { .x-topbar .p-info { margin-left: 65%; } }2. Then please remove this CSS,
.x-feature-box.center-text.top-text.cf { min-height: 350px; }3. Then please remove the gap element that you added before and after the buttons
4. And for final fix, please add this code to Admin > Appearance > Customizer > Custom > Javascript
jQuery( function($){ function resize_feature_box() { $('.x-section').each( function() { if ( $(window).width() > 979 ) { var feature_box = $(this).find('.x-feature-box'); if( feature_box.length > 0 ) { var min_height = 0; feature_box.each( function() { var feature_box_content_height = $(this).find('.x-feature-box-content').height(); if ( feature_box_content_height > min_height ) { min_height = feature_box_content_height; } } ); $(this).find('.x-feature-box-content').css('height', min_height ); } } else { $(this).find('.x-feature-box-content').css('height', 'auto' ); } } ); } resize_feature_box(); $(window).load(resize_feature_box).resize(resize_feature_box); } );That should equalize the height of the content.
Cheers!
January 1, 2017 at 10:00 am #1311670
SomniumParticipantHey, thx a lot for this issue solving. It works well on mobile phone and Desktop Version. 🙂
There is only one little issue. On my Tablet this solutions works partly. The content high works well if i hold the tablet in landscape format. If i hold them in upright format the buttons jumps to different positions.
January 1, 2017 at 6:48 pm #1312010
Rue NelModeratorHello There,
Thanks for updating in! The portrait and landscape mode on a tablet has different screen size. So when you view your site, it is inevitable that the position of the buttons will be different when viewing in landscape or portrait. If you want to have the look, simply change the 979 pixels to 1024 pixels in the code that @Rad gave you.
Please let us know how it goes.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1309417 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
