Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1439303

    Hello,
    I want to display a header with a width around 1100 pix
    I can’t change it in the theme, only the height. Is it possible to change the width ?.

    But for mobile I want to use a different image, because when the logo is shred nobody can really read it.

    Would be great if I could get any help. Thank you in advance
    Dolores

    #1439335

    Is it possible to get help please?

    #1439344

    Hi,
    Thank you for your patience, right now your site is using a full width header and footer, to limit the width of the header you will need to use the “Boxed” layout
    so go to Enfold Theme Options ▸ General Layout ▸ Stretched Or Boxed Layout
    Enfold_Support_5302.jpeg
    and then set the width at Enfold Theme Options ▸ General Layout ▸ Dimensions ▸ Maximum Container width
    Enfold_Support_5304.jpeg
    To use a different logo on mobile try adding this code to the end of your child theme 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;
    }

    then change the image url to the image you want to use.

    Best regards,
    Mike

    #1439353

    Hello Mike
    thank you so much for taking time to help me!
    Unfortunately it doesn’t work.
    The logo still is small on my site. I uploaded it again and it still doesn’t work.
    Haven’t tried the mobile logo yet, because if the large logo doesn’t work then it makes no sense.
    Could you please have a look if there is anything what I am doing wrong? Thank you so much.
    I have my password displayed in the private content if this helps you to figure out my problem.
    Doris

    #1439356

    Hi,
    Perhaps I misunderstood your logo question, I thought that you wanted a different logo to show on mobile devices, but now I think that you want your logo to show larger so I did this for you, please check.
    The trick is to copy the logo url from your media library and paste it into the logo field and then save, not to use the “upload” button, this will always use the small version on the image.

    Best regards,
    Mike

    #1439361

    Hi Mike, thank you once again very much for your help.
    It looks great. I changed the space between logo and menu, I love it. Good to know the trick.
    You understood me right. Of course I want to have a different logo on mobile (have displayed it in the private content).
    Problem is that I don’t use a child theme, I always use the original. Can I add the changes there, too?
    Doris

    #1439363

    Hi,
    If you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
    Enfold_Support_2680.jpeg
    then add the this code and save.

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(wp_is_mobile() ) {
        $logo = "/wp-content/uploads/2024/04/LogoMobile.png";
        }
        return $logo;
    }

    you may need to make the image url in the code your full path if this doesn’t work, I didn’t want to post your full url as I think you want it private.

    Best regards,
    Mike

    #1439366

    Thank you Mike.
    I did as you suggested, checked it several times and unfortunately it doesn’t work.

    Ok, I don’t want to steal more of your time. Enjoy your weekend.
    Thank you.
    Kindest regards
    Doris

    #1439367

    Hi,
    I check your snippet and found that it was inactive:
    Enfold_Support_5320.jpeg
    so I enabled it and it now works, please check.

    Best regards,
    Mike

    #1439368

    Wow. Thank you so much, Mike. It looks great. You are amazing with your knowledge and your help. This thread can be closed. You have solved my wishlist.
    Happy Weekend
    Doris

    #1439380

    Hi,

    Great, I’m glad to hear that Mike could help you out. We’ll close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Header width and different logo on mobile’ is closed to new replies.