Tagged: x
-
AuthorPosts
-
October 12, 2016 at 2:15 pm #1213433
carbon14ParticipantHi
How do I get to keep a logo in the header when I use Superfly menu, I want a superfly menu that is hidden with only icon, so I need to show a logo on my site since it´s closed.October 12, 2016 at 11:03 pm #1214077
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.
October 13, 2016 at 1:53 am #1214202
carbon14ParticipantHi, sorry. This is my developer site url: http://surtech.carbon14.no
October 13, 2016 at 5:01 am #1214393
LelyModeratorHi There,
Please remove this custom CSS:
.x-navbar-wrap { display: none; }Add this instead:
.x-nav-wrap, .x-btn-navbar { display: none !important; } .x-brand { margin-left: 50px; /*This is in case you want to move the logo from the superfly icon*/ }Hope this helps.
October 13, 2016 at 5:31 am #1214421
carbon14ParticipantThank you. That worked perfect. Another question. Is it possible to get a text line (tagline with company slogan) in the menu header.
And if you have time. The text padding inside button is not centered in the button. Do you have a code to fix that. I have searched the forum but the css code i found didn´t work.
October 13, 2016 at 8:02 am #1214589
Paul RModeratorHi,
1. To fix the button text alignment, you can add this under Custom > Edit Global CSS in the Customizer.
.x-btn, .button, [type="submit"] { padding: 0.563em 1.125em; }2. To add tagline, you can add this in your child theme’s functions.php file.
Create file _brand.php in wp-content/themes/x/framework/views/global then copy the code below into that file.
<?php // ============================================================================= // VIEWS/GLOBAL/_BRAND.PHP // ----------------------------------------------------------------------------- // Outputs the brand. // ============================================================================= $site_name = get_bloginfo( 'name' ); $site_description = get_bloginfo( 'description' ); $logo = x_make_protocol_relative( x_get_option( 'x_logo' ) ); $site_logo = '<img src="' . $logo . '" alt="' . $site_description . '">'; ?> <div class="logo-area"> <?php echo ( is_front_page() ) ? '<h1 class="visually-hidden">' . $site_name . '</h1>' : ''; ?> <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>"> <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?> </a> <div class="tagline">MY TAGLINE</div> </div>Change MY TAGLINE with your text.
Hope that helps
October 13, 2016 at 5:28 pm #1215332
carbon14ParticipantThanks. You helped me with code to only show logo in header, and in your code to set the logo margin to 50px, but what is the code if I want the logo to be centered on all devices?
October 13, 2016 at 11:36 pm #1215693
RadModeratorHi there,
Please add this CSS as well.
.x-brand { margin: 0 auto; display: inline-block; float: none; width: 100%; text-align: center; margin-top: 20px; }Hope it helps.
October 14, 2016 at 3:12 am #1215862
carbon14Participantgreat support as always. that work perfectly
October 14, 2016 at 3:37 am #1215888
Paul RModeratorThank you for your kind words.
Have a nice day! 🙂
October 14, 2016 at 6:42 am #1216022
carbon14ParticipantNeed some more help. The heading in the container. How do I change the color and size of only that global form all pages, and don´t affect all other headlines?
October 14, 2016 at 12:05 pm #1216373
JadeModeratorHi there,
Please use this code:
.page-id-20 h1.h-landmark.entry-title { color: #efefef; font-size: 200%; }Feel free to adjust the values in the code.
Hope this helps.
October 14, 2016 at 2:30 pm #1216532
carbon14ParticipantThank you again. I feel like I keep bugging you with questions, but I am planning to do all my sites in the future with X so great to get all my questions answered. So there is one more little thing. Above in this thread i got help with the padding of the text in buttons, but i just affected the SEND button in contact form. I need this code to work global for all buttons. Now my other buttons are even more off center. Do you have a solution for this (Se attached file, the CLICK ME button)
October 14, 2016 at 2:37 pm #1216545
carbon14ParticipantAnd another bug after your code. Other buttons won´t change text and add icon even if I add new info and save. See attached file. Still Click me text in button
October 14, 2016 at 2:42 pm #1216550
carbon14ParticipantForget the last post, I fixed it, but case #1216532 still needs to be fixed 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1213433 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
