-
AuthorPosts
-
June 20, 2016 at 4:13 pm #650917
Hi,
Can you make the logo area in two colors?
I have logo left, Menu below. I want to have the logo on a white background and the menu on a grey background.Other question: Can i use the area right from the logo as a widget-area?
Greetings!
June 20, 2016 at 9:32 pm #651102Hey ACGijsbers,
Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Also you can add a widget to the header following the instructions in this post – http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/
Best regards,
JordanJune 21, 2016 at 9:02 am #651341First row with the logo in it must be white.
Second row with the main menu in it must be grey.June 21, 2016 at 2:50 pm #651519The widget area doesn’t respond on a mobile device. How can i make that work nicely?
June 22, 2016 at 6:21 pm #652324Hi,
seems you’ve achieved what you want.
Widget area: Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Best regards,
AndyJune 23, 2016 at 10:22 am #652562It’s the same website. I already made a widgetarea in the row left of the logo. If you take a look at site you’ll see three buttons as Blog, Signup, Login.
In responsive state on a mobile the three buttons show up in the back behind the menu-icon. This isn’t the way to show up correctly.
June 26, 2016 at 7:51 am #653491Hi,
Thanks for that, it looks like there just isn’t enough room for you to show your buttons on smaller screens. I would suggest you create a Color Section to show only on mobile and place the buttons there instead. You can give you section an id in the options of the element then hide it on all screens except mobile using the following CSS:
@media only screen and (min-width: 768px) { #your-id { display:none; } }
Then hide the header widget with the following:
@media only screen and (max-width: 767px) { #text-3 { display:none; } }
Thanks,
RikardSeptember 23, 2016 at 3:27 pm #690826Hi Rikard,
The solution you will give me isn’t for the whole website. In each page I must place the menu in a content section.
Is there a way to fix it in code. It isn’t workable to place the second menu is each page.Greetings
September 28, 2016 at 10:19 am #692543Hi,
Please add this in the functions.php file:
add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ ?> <script type="text/javascript"> (function($) { function c() { var isMobile = ''; if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && 'ontouchstart' in document.documentElement) { isMobile = true; } else { isMobile = false; } if(!isMobile) return; var widget = $('#header .widget').detach(); $('#main').prepend('<div id="header_main_alternate_mod" class="container_wrap"><div class="container"></div></div>'); $('#main #header_main_alternate_mod').prepend(widget); } c(); })(jQuery); </script> <?php }
This will move the widget below the header on mobile view. You can style the new section with the following selector.
#header_main_alternate_mod { /* style here */ }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.