-
AuthorPosts
-
October 7, 2016 at 3:30 pm #696542
I need to have H1 tag only for homepage
add_filter( ‘avf_logo_headline’, ‘change_logo_to_h1’, 10);
function change_logo_to_h1() {
return “h1”;
}October 7, 2016 at 3:34 pm #696544Hi unicaweb!
Please add following code to functions.php file in Appearance > Editor
add_filter( 'avf_logo_headline', 'change_logo_to_h1', 10); function change_logo_to_h1() { if(is_home()){ return "h1"; }}
If that does not help, please create a temporary admin login and post it here privately.
Cheers!
YigitOctober 10, 2016 at 8:12 am #697185something do not work …. see page http://www.sacrobirmania.net/
< class=’logo’>
October 10, 2016 at 12:35 pm #697252Hi,
Please use the code as following
function new_headline($headeline_type){ if(is_page(12)){ $headline_type = "h1"; return $headline_type; } } add_filter('avf_logo_headline','new_headline');
Best regards,
YigitOctober 10, 2016 at 1:41 pm #697301Yes but I need only for homepage
October 10, 2016 at 1:41 pm #697304October 10, 2016 at 1:44 pm #697306Hey!
Page ID of your page is 12 so it should work correctly. If it does not, please create a temporary admin login and post it here privately.
Regards,
YigitOctober 10, 2016 at 2:01 pm #697324I need this H1 only for homepage (is_home) and not in other pages
function new_headline($headeline_type){
if(is_home){
$headline_type = “h1”;
return $headline_type;
}
}
add_filter(‘avf_logo_headline’,’new_headline’);October 10, 2016 at 2:05 pm #697329Hey!
Code i posted here – https://kriesi.at/support/topic/h1-tag-only-for-homepage/#post-697252 should have worked just fine. If it does not, please create a temporary admin login and post it here privately.
Regards,
YigitOctober 19, 2016 at 2:30 pm #701330Hi I can use your code because error is generated: I want H1 tag only for homepage and not in other page.
October 19, 2016 at 2:34 pm #701332Hi!
What exactly is the error you are getting?
I understand if you would not like to share login credentials however it would be a lot easier and faster for us if you did as we could see the error and fix it :)Cheers!
YigitOctober 19, 2016 at 2:44 pm #701345Try you thanks
October 20, 2016 at 4:04 pm #701952Nothing Yigit ?
October 20, 2016 at 4:09 pm #701959Hey!
Editor tab is missing under Appearance tab. Can you please post FTP logins here privately as well so we can edit functions.php file?
Regards,
YigitOctober 21, 2016 at 5:09 pm #702547Hi Yigit, please can you help me ?
October 21, 2016 at 5:10 pm #702548October 21, 2016 at 5:12 pm #702551I have try on http://www.sacrobirmania.net and http://www.aloeverainforma.it but do not work
October 21, 2016 at 5:13 pm #702552I need to have h1 (logo) only for homepage and not for other page
I send you credentials few day ago.
I need to have H1 tag only for homepage
add_filter( ‘avf_logo_headline’, ‘change_logo_to_h1’, 10);
function change_logo_to_h1() {
return “h1”;
}do not work
October 21, 2016 at 5:15 pm #702554add_filter( ‘avf_logo_headline’, ‘change_logo_to_h1’, 10);
function change_logo_to_h1() {
if(is_home()){
return “h1”;
}}function new_headline($headeline_type){
if(is_home){
$headline_type = “h1”;
return $headline_type;
}
}
add_filter(‘avf_logo_headline’,’new_headline’);October 21, 2016 at 5:20 pm #702556This cose do not work
add_filter(‘avf_logo_headline’,’avia_new_logo_span’);
function avia_new_logo_span(){
if(is_home()){
$output = “h1”;
}
return $output;
}October 21, 2016 at 6:35 pm #702578Hey!
Code does work fine on my end. Please post FTP logins here privately so we can check your functions.php file. As i mentioned here – https://kriesi.at/support/topic/h1-tag-only-for-homepage/#post-701959 Editor is missing under Appearance.
Regards,
YigitOctober 21, 2016 at 9:48 pm #702649I have already post FTP access, here below.
October 24, 2016 at 3:34 pm #703309Hi,
These are WP admin logins. We need FTP logins to edit the file as i mentioned earlier. Please contact your hosting provider for FTP credentials if you do not know.
Best regards,
YigitOctober 25, 2016 at 8:24 am #703634Here FTP account for aloeverainforma.it
October 25, 2016 at 1:45 pm #703768Hi,
I changed the code to following one in your functions.php file of your child theme
add_filter('avf_logo_headline','avia_new_logo_span'); function avia_new_logo_span(){ if(is_page(504)){ $output = "h1"; } else{ $output = "strong"; } return $output; }
Please review your website now
Best regards,
YigitOctober 25, 2016 at 2:17 pm #703789Ok, but why is_page (504) ?
October 25, 2016 at 2:19 pm #703790is page id ?
October 25, 2016 at 2:25 pm #703793November 14, 2016 at 4:22 pm #712043Sorry but H1 tag is not present
November 14, 2016 at 4:26 pm #712046There is only H1 (site name)
-
AuthorPosts
- You must be logged in to reply to this topic.