Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #745188

    I added this code to my functions
    add_filter(‘avf_logo_subtext’, ‘kriesi_logo_addition’);
    function kriesi_logo_addition($sub) {
    $sub .= ‘<h1>Company Name</h1>’;
    return $sub;
    }

    The problem is that my mobile page on smart phone is now displaying the Company name in large H1 font. Can you tell me how I can remove the H1 code from appearing in mobile?

    #745849

    Hey Ed,

    Could you post a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #746089

    Okay I will enable the code again. BTW the code was found on your enfold documentation site, http://kriesi.at/documentation/enfold/add-subtext-to-logo-replace-logo-with-site-title/again.

    fritzimages.con

    • This reply was modified 7 years, 10 months ago by EdFritz.
    #746401

    Did you get a chance to goto my site fritzimages.com on a mobile device and see the large H1 fonts on the home page after using your function code for desktop.

    I like the desktop H1 for SEO, but it is almost blocking entire mobile home page on am iphone.

    Is it possible to us only for desktop?

    #747643

    Hi,

    Please change the code to following one

    add_filter('avf_logo_subtext', 'kriesi_logo_addition');
    function kriesi_logo_addition($sub) {
    if(!wp_is_mobile()){
    $sub .= '<h1>Company Name</h1>';
    }
    return $sub;
    }

    Alternatively, you can remove it using custom CSS

    @media only screen and (max-width: 768px) {
    .subtext { display: none !important; }}

    Best regards,
    Yigit

    #747728

    Hi Yigit,

    This worked perfect for Mobil, thanks a lot !….I added the snippet to my functions….

    I was wondering if there was a way to stop it from Displaying on my main page. I did not notice it before, but when I resize my home page the H1 Company name also shows up.

    thanks !

    Ed

    #747736

    Hey!

    Please add following code to Quick CSS

    .home .subtext { display: none !important; }

    Regards,
    Yigit

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