Tagged: x
-
AuthorPosts
-
March 13, 2017 at 2:06 pm #1405299
OverheadOnlineParticipantI added a widget by inserting the following code in the function.php of the child theme
add_action('x_after_view_global__brand', function(){ echo '<div cass="logobar-widget-area">'; dynamic_sidebar( "logobar-sidebar" ); echo '</div><style>.logobar-widget-area { float: right; }</style>'; }); register_sidebar( array( 'name' => __( 'Logobar Widget Placement' ), 'id' => "logobar-sidebar", 'description' => '', 'class' => '', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => "</div>", 'before_title' => '<h3 class="widgettitle">', 'after_title' => "</h3>" ) );that put a widget-area in the logo-bar.
what I want to achieve is showing the widget-area next no the logo. (logo: left; widget area: right)
somehow they are always on top of eachother.
Is here a way to align those elements?Thank you in advance.
March 13, 2017 at 3:26 pm #1405420
DarshanaModeratorHi there,
Thanks for writing in! Custom development is beyond the scope of our support, however could you please provide us with the URL to your site? so that we can provide a workaround if possible.
Thanks!
March 13, 2017 at 3:47 pm #1405455
OverheadOnlineParticipantThis reply has been marked as private.March 14, 2017 at 12:34 am #1405914
FriechModeratorHi There,
Thank you for the credentials, please add this on your Custom CSS on Customizer.
@media (min-width: 980px) { .x-brand.img {float: left;} .logobar-widget-area { float: right; margin-top: 2%; } }Another important thing, please look for this line on your code above.
echo '<div cass="logobar-widget-area">';Make sure you edit that cass to class or else any custom CSS targeting the class logobar-widget-area wont work.
Cheers!
March 14, 2017 at 2:03 am #1405973
OverheadOnlineParticipantHi Friech,
no wonder I couldn’t address the c(l)ass 😉
thank you very much! works fine now!
March 14, 2017 at 3:13 am #1406037
FriechModeratorWe’re delighted to assist you with this.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1405299 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
