-
AuthorPosts
-
February 10, 2017 at 4:47 am #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?
February 12, 2017 at 6:37 am #745849Hey Ed,
Could you post a link to the site in question so that we can take a closer look please?
Best regards,
RikardFebruary 13, 2017 at 3:18 am #746089Okay 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 8 years, 9 months ago by
EdFritz.
February 13, 2017 at 2:18 pm #746401Did 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?
February 15, 2017 at 8:26 pm #747643Hi,
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,
YigitFebruary 16, 2017 at 12:16 am #747728Hi 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
February 16, 2017 at 1:00 am #747736 -
This reply was modified 8 years, 9 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
