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?
Hey Ed,
Could you post a link to the site in question so that we can take a closer look please?
Best regards,
Rikard
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
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?
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
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