Tagged: , , ,

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #423855
    #423910

    Hey omnivoroussoon!

    1- Please add following code to Quick CSS in Enfold theme options under General Styling tab

     .html_header_sidebar #top #header {
      width: 250px;
    }
    .html_header_left #main {
      margin-left: 250px;
    }

    2- Can you please post the link to your website?

    Best regards,
    Yigit

    #424252

    Hi Yigit,

    Thank you so much for your help.
    I could solve the 1st issue.

    I didn’t fully create the site using WordPress, but here’s the page you can take a look at the logo area.
    http://omnisoon.com/about

    Thanks again.

    Brandon

    #424261

    Hey!

    Please try adding following code to Functions.php file in Appearance > Editor

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(wp_is_mobile() )
        {
        $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
        }
        return $logo;
    }

    and change the link to your logo that you would like to display on mobile

    Cheers!
    Yigit

    #424294

    Hey Yigit,

    Thanks for your quick response.
    I tried to paste the code couple of different location but couldn’t still resolve it. Also I cleared cache and refreshed many times. Could you let me know the exact position where I need to paste your code?

    Another question is in regards to the Logo and Main menu area again.
    I was able to reduce its width in the full size screen. Thank you for your support. Can I adjust it’s width in tablet view as well? Looks like the breakpoint is setup between 768px and 989px, and I’d like to manage their size.

    Look forward to hearing from you.

    Best,

    Brandon.

    #424312

    Hey!

    1- It should not be a problem but my personal favourite location is below following line

    'bitcoin' 		=> array( 'font' =>'entypo-fontello', 'icon' => 'ue92a'),
    
    ));

    I re-checked the code and it is working totally fine on my end. If you post temporary admin login credentials here privately, we can gladly look into it.

    2- Please add following code to Quick CSS as well

    @media only screen and (max-width: 989px) and (min-width: 768px) {
     .html_header_sidebar #top #header {
      width: 150px;
    }
    .html_header_left #main {
      margin-left: 150px;
    }}

    Regards,
    Yigit

    #424375
    This reply has been marked as private.
    #424842

    Hey!

    I checked your website on my iphone but layout is not responsive. Can you please try de-activating all active plugins and check if that helps?

    Cheers!
    Yigit

    #424891

    Thanks for your continuous support.
    It really helps.

    I went to Plugins, selected all plugins and deactivated all items, but looks like it’s still not working.
    Could you provide me any other suggestion?

    Also I see the small logo(smartphone version) when I open my site using iPad. The iPad menu bar is supposed to be the left side and the logo should be the normal version. Could you help me with this too?

    Thanks again.

    Brandon

    #425283

    Hi!

    Add this to the functions.php file to switch logo:

    add_action('wp_footer', 'ava_mobile_logo');
    function ava_mobile_logo(){
    ?>
    <script>
    (function($){	
    	$(window).resize(function() {
    		if($(".responsive #top #wrap_all #header").css("position") == "relative" ){
    			$('.responsive .logo img').attr('src', 'http://omnisoon.com/wp-content/uploads/2015/04/bar-logo.png');
    		} else {
    			$('.responsive .logo img').attr('src', 'http://omnisoon.com/wp-content/uploads/2015/04/logo_large_2501.png');
    		}
    	}).resize();
    })(jQuery);
    </script>
    <?php
    }

    Regards,
    Ismael

    #425530

    Hey Ismael,

    It works magically! I really really appreciate it.

    One last change I’d like to make is that the Logo Area in tablet layout (about 768px to 989px) is too wide. It’s actually wider than full screen layout. Could you help me to adjust the size of that area? I want that space no wider than 216px.

    Thanks!

    Brandon

    #425537

    Hi!

    Please add following code to Quick CSS

    @media only screen and (max-width: 989px) {
    .responsive.html_header_left #main {
      margin-left: 216px !important;
    }
    .responsive.html_header_sidebar #top #header {
      width: 216px !important;
    }}

    Cheers!
    Yigit

    #425593

    Hi Yigit,

    Thanks for your response.
    I tried your code. It works to fix the width of the logo area under 216px.

    However there’re 2 problems.
    First of all, it didn’t work for smartphone layout. The horizontal menu doesn’t stack up above the main contents and it divides the page into two section; left is menu and right is contents.
    Secondly, even though the area is fixed width, logo image and menu items are larger than full width.

    Do you have any other suggestion?

    Best,

    Brandon

    #425763

    Hi!

    Try to replace it with this:

    @media only screen and (min-width: 768px) and (max-width: 989px) {
    .responsive.html_header_left #main {
      margin-left: 216px !important;
    }
    .responsive.html_header_sidebar #top #header {
      width: 216px !important;
    }}

    Regards,
    Ismael

    #425834

    Thank you Ismael,

    That was a huge help.
    I see the logo area is under 216 px in any screen dimension. And the smartphone layout also looking great.

    One last push for the perfection.
    I see the logo image suddenly becomes almost 2 times larger at the break point. I assume it’s between 768px to 989px. It’s actually critical because the iPad view will reflect this funky layout.

    Is there way way that the logo and menu items size should be proportionally responsive?

    I really appreciate your time and considerations.

    Brandon

    #425925

    Hey!

    Please add following code to Quick CSS as well

    @media only screen and (max-width: 989px) and (min-width: 768px) {
    .responsive.html_header_sidebar .logo {
      padding: 40px !important;
    }}

    Regards,
    Yigit

    #426136

    Hey Yigit,

    That’s awesome! Now I see the logo is consistent size in any screen dimension.
    I think it’s good enough for now. I’ll tweak the menu bar section later if it needs to be improved.

    Thank you.

    Brandon

Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘How to reduce the width of the Logo and Main Menu Area’ is closed to new replies.