Tagged: x
-
AuthorPosts
-
December 16, 2016 at 11:15 am #1295769
applegatetechParticipantNot quite. The image size is too large and the search bar have shifted down.
I updated the code in one other place on Global CSS and Global Javascript..x-topbar-inner > a img { width: 27%; min-width: 250px; max-width: 250px; float: left !important; clear: none !important; } .my-custom-shortcode { float: right; width: 35%; } .product-search-form .product-search-field { float: left; max-width: 270px; } .product-search-form [type="submit"] { float: right; } @media screen and (max-width: 959px) { .top-menu { float: none !important; width: 100% !important; text-align: center !important; } .x-topbar-inner > a img { float: none !important; } .my-custom-shortcode { float: none !important; width: 100% !important; } .my-custom-shortcode .product-search { width: 100% !important; float: none !important; }(function($) { $('.x-topbar-inner > a img').insertAfter('.top-menu'); })(jQuery);Thank for the help.
December 16, 2016 at 1:13 pm #1295881
JoaoModeratorHi There,
You can add the following code to Appereance > Customizer > Custom > CSS
.x-topbar img { width: 200px !important; }Hope it helps
Joao
December 16, 2016 at 2:44 pm #1295968
applegatetechParticipantThat makes the image not a link anymore.
December 16, 2016 at 4:23 pm #1296065
JadeModeratorHi there,
Please add a class to the
<a>tag that wraps the image then update this CSS:.x-topbar-inner > a img { width: 27%; min-width: 250px; max-width: 250px; float: left !important; clear: none !important; }to
.x-topbar-inner a.the_class img { width: 27%; min-width: 250px; max-width: 250px; float: left !important; clear: none !important; }Hope this helps.
December 16, 2016 at 5:46 pm #1296143
applegatetechParticipantIt works great now. I did this for my _topbar.php file
?> <?php if ( x_get_option( 'x_topbar_display' ) == '1' ) : ?> <div class="x-topbar"> <div class="x-topbar-inner x-container max width"> <a class="topbarlogo" href="http://strictlyseeds.com" target="_blank"><img src="http://strictlyseeds.com/wp-content/uploads/2016/12/StrictlyLogo.png"></a> <?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?> <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p> <?php endif; ?> <?php wp_nav_menu( array( 'menu' => 'topbar-menu', 'container' => false, 'menu_class' => 'x-nav sf-menu', 'container' => 'div', 'container_class' => 'top-menu', ) ); ?> <?php x_social_global(); ?> <div class="my-custom-shortcode"><?php echo do_shortcode('[woocommerce_product_search submit_button="yes"]'); ?></div> </div> </div> <?php endif; ?>Under customize I added
Global CSS.x-topbar-inner > a.topbarlogo img { width: 27%; min-width: 250px; max-width: 250px; float: left !important; clear: none !important; }and
@media screen and (max-width: 959px) { .top-menu { float: none !important; width: 100% !important; text-align: center !important; } .x-topbar-inner > a.topbarlogo img { float: none !important; } .my-custom-shortcode { float: none !important; width: 100% !important; } .my-custom-shortcode .product-search { width: 100% !important; float: none !important; }Global Javascript
(function($) { $('.x-topbar-inner > a.topbarlogo').insertAfter('.top-menu'); })(jQuery);How do I force the link to open in the same window?
Thanks.December 16, 2016 at 8:26 pm #1296322
FriechModeratorOn the _topbar.php file, remove the
target="_blank"from the line:<a class="topbarlogo" href="http://strictlyseeds.com" target="_blank"><img src="http://strictlyseeds.com/wp-content/uploads/2016/12/StrictlyLogo.png"></a>Hope it helps, Cheers!
December 17, 2016 at 1:05 am #1296410
applegatetechParticipantAmazing support! Thanks.
December 17, 2016 at 1:09 am #1296411
ChristopherModeratorYou’re welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1292240 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
