Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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!

    #651102

    Hey 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,
    Jordan

    #651341

    First row with the logo in it must be white.
    Second row with the main menu in it must be grey.

    #651519

    The widget area doesn’t respond on a mobile device. How can i make that work nicely?

    #652324

    Hi,

    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,
    Andy

    #652562

    It’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.

    #653491

    Hi,

    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,
    Rikard

    #690826

    Hi 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

    #692543

    Hi,

    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.