Viewing 30 posts - 1 through 30 (of 38 total)
  • Author
    Posts
  • #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”;
    }

    #696544

    Hi 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!
    Yigit

    #697185

    something do not work …. see page http://www.sacrobirmania.net/

    < class=’logo’>

    #697252

    Hi,

    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,
    Yigit

    #697301

    Yes but I need only for homepage

    #697304
    #697306

    Hey!

    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,
    Yigit

    #697324

    I 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’);

    #697329

    Hey!

    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,
    Yigit

    #701330

    Hi I can use your code because error is generated: I want H1 tag only for homepage and not in other page.

    #701332

    Hi!

    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!
    Yigit

    #701345

    Try you thanks

    #701952

    Nothing Yigit ?

    #701959

    Hey!

    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,
    Yigit

    #702547

    Hi Yigit, please can you help me ?

    #702548

    Hey!

    Sure, how can i help you?

    Cheers!
    Yigit

    #702551
    #702552

    I 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

    #702554

    add_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’);

    #702556

    This 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;
    }

    #702578

    Hey!

    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,
    Yigit

    #702649

    I have already post FTP access, here below.

    #703309

    Hi,

    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,
    Yigit

    #703634

    Here FTP account for aloeverainforma.it

    #703768

    Hi,

    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,
    Yigit

    #703789

    Ok, but why is_page (504) ?

    #703790

    is page id ?

    #703793

    Hey!

    Yes, that is the page ID of your homepage.

    Cheers!
    Yigit

    #712043

    Sorry but H1 tag is not present

    #712046

    There is only H1 (site name)

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