Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #892912

    Hi,

    My client wanted a custom header graphic in their header, however, it looks terrible on a mobile device. I would be happy to have just the logo display on the mobile device. or to scale the header graphic so it looks better…

    Also – second problem is customizing the blog posts on the home page. I would like to display the title without the category and use the H4 heading as the title font.

    Any help would be appreciated. Thanks!

    #893314

    Hey stacey_pritchett,

    Well, you can prepare a different smaller image for mobile and show it on smaller size screens.

    Below is the code for the blog post titles.

    
    .html_modern-blog .avia-content-slider .slide-entry-title {
        font-size: 1.4em;
        text-transform: none;
    }
    .html_modern-blog #top.home .post-entry .blog-categories {
      display: none;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #893325

    Thanks so much! Worked perfectly. Where do I change the Blog Title font? I want to make it a H4 heading.

    Also – can you please expand on how I would prepare a smaller image for mobile? Sorry – really don’t code so is there an easy way to do this?

    #893807

    Hi stacey_pritchett,

    Preparing an image is a designers’ job, not the coders’. What do you mean change to h4, use a different tag or use a different font for that heading?

    Best regards,
    Victoria

    #894264

    Hi Victoria,

    Thanks so much. Resolved that issue.

    Still however having an issue with a new logo/header file on mobile devices. Added this code:

    add_filter(‘avf_logo’,’av_change_logo’);
    function av_change_logo($logo)
    {
    if(wp_is_mobile() )
    {
    $logo = “http://844.f23.myftpupload.com/wp-content/uploads/2018/01/Innovation-Core_Header_sm.jpg”;
    }
    return $logo;
    }

    to both the quick css – which didn’t work – and then to the functions.php file as indicated on one of the help topics – which also didn’t work. When I added it to the function.php the new logo appears on top of the existing header file/logo. Below is all the code I have in quick css. (Private content)

    The problem is that I have a header graphic (at my client’s instance) so the new logo file is appearing on top of that graphic. I need to replace the header graphic on all mobile devices..

    Thanks for you help!

    #894554

    Hi,

    Please remove the code from the Quick CSS field. It has to be added in the functions.php file only.

    Best regards,
    Ismael

    #894566

    Hi,

    Please see above- I already added it to the functions.php file and it didn’t work. Full explaination above.

    Please help.

    Thanks!

    #894968

    Hi,

    Can you provide us with backend detaiils?

    Best regards,
    Basilis

    #894970

    Thanks. It was provided in the initial post.

    #895082

    Hi,

    Thank you for the info. I edited the functions.php file but I can’t find the filter. However, I did find the code in the Quick CSS field but it’s invalid because it’s not a css code. We need to know this because we may break the site if we add a duplicate function. Where did you add it?

    Best regards,
    Ismael

    #895260

    Hi Ismael,

    I added the code and tested it. When it didn’t work, I removed it. So – there is no duplicate code in the functions.php file. I did leave it in the Quick CSS field because it did nothing. I can remove that.

    Please add the code in the functions.php file (and please let me know what code you added) so I can test it to make sure it works.

    Thanks so much!!!

    #895598

    Hi,

    We encountered an error when we tried to add the code. Please post the FTP login details in the private field so that we can add it. Or just copy the following code directly from this forum to the site’s functions.php file.

    add_filter('avf_logo','av_change_logo_url');
    function av_change_logo_url($url)
    {
        if( wp_is_mobile() )
        {
            $url = "http://844.f23.myftpupload.com/wp-content/uploads/2018/01/Innovation-Core_Header_sm.jpg";
        }
        return $url; 
    }

    IMPORTANT: Please note that the filter will only affect actual mobile devices. You won’t see the changes if you’re just resizing a desktop browser.

    Best regards,
    Ismael

    #895737

    Thanks Ismael. Added that to the functions page – that didn’t work. See screen shot – http://844.f23.myftpupload.com/wp-content/uploads/2018/01/phone-logo.jpg

    We need to replace the header file on mobile devices -not the logo file. Any help would be greatly appreciated.

    Thanks!

    #896015

    Hey!

    I see. I just noticed that the logo was added as header background. Please remove the filter then add the following css code in the Quick CSS field.

    @media only screen and (max-width: 768px) {
      /* Add your Mobile Styles here */
      .header_color .header_bg {
        background: #023794 url('http://844.f23.myftpupload.com/wp-content/uploads/2018/01/Innovation-Core_Header_sm.jpg') top left no-repeat scroll;
      }
    }

    Best regards,
    Ismael

    #896189

    YES! It worked. Thank you so much for your patience and perseverance! Greatly appreciated!

    #896453

    Hi,

    Great, I’m glad Ismael could help you out :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #896645

    Hi there,

    After speaking with my client – just one more thing. She wants the header file to link back to the home page. (On mobile and desktop.) Any help would be appreciated.

    Thanks!

    #896821

    Hi,

    Alright. Please use this code in the Quick CSS field.

    .av-logo-container {
        cursor: pointer;
    }

    And this script in the functions.php file.

    add_action('wp_footer', 'ava_custom_script');
    function ava_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	$('.av-logo-container').on('click', function() {
    		window.location.href = 'http//www.mysite.com';
    	});
    })(jQuery);
    </script>
    <?php
    }

    Adjust the url “http//www.mysite.com” to the site’s home page url.

    Best regards,
    Ismael

    #897280

    Hi Ismael,

    I keep getting an error message when I try to update the functions. php file. Is there a simple way to do this via the Quick CSS or can I use this code in the custom css file? Please advise.

    Thanks!

    #897340

    Hi,

    Please copy the code directly from the forum, not from your email. Add it at the very bottom of the functions.php file. Unfortunately, you can’t solve this with css.

    Best regards,
    Ismael

    #898770

    Hi Ismael,

    This didn’t work. The redirect gave me an error page:

    http://sei-innovation.com/wp-content/uploads/2018/01/redirect.jpg

    It was the page url and then the site url – please see above screen shot.

    Thanks! (I removed the code since the site is now live.)

    #899371

    Hi,

    If you look at your URL on top, the link is wrong, please add https://www before

    Best regards,
    Basilis

    #901716

    This has been fixed. Please close this topic

    #901815

    Hi,

    Glad to hear that it’s fixed. Thanks for using Enfold :)

    Best regards,
    Nikko

Viewing 24 posts - 1 through 24 (of 24 total)
  • The topic ‘Different header file on mobile?’ is closed to new replies.