Tagged: , ,

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #1254411

    Hi there!

    I noticed that pages have not h1 by default which is a bit disappointing because it is not a good think fro seo. However i have found from one of your support post a CSS code to use and solve this.

    This is the code

    add_filter(‘avf_title_args’,’avf_title_args_mod’, 10, 1);
    function avf_title_args_mod($args)
    {
    $args[‘heading’] = ‘h2’; // default value is h1
    return $args;
    }
    I insert this code on WordPress>Enfold>General Styling>custom CSS.
    Well, i have notice that this code it does not work because i see only H2 as the firts meta title. So…

    Is there any problem with the code? Should i insert the code anywhere else?.. How can i have H1 meta title in my wordpress with Enfold theme?

    Thank you.

    #1254720

    Hi Rubén,

    This code is not CSS therefore you should not put it in custom CSS or Quick CSS, you need to put it at the bottom of your child theme’s functions.php file:

    function avf_title_args_mod($args) {
        $args['heading'] = 'h2'; // default value is h1
        return $args;
    }
    
    add_filter('avf_title_args','avf_title_args_mod', 10, 1);

    Best regards,
    Nikko

    #1255776

    Hi Nikko!

    Thank you for your reply… Well, How can i do that?… need some guide!

    Thank you and regards,

    #1255911

    Hi RubenHD,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1256004

    Hi Victoria!

    Access below as requested

    Thank you.

    #1256073

    Hi RubenHD,

    The link you gave shows:

    502 Bad Gateway

    Try to go to Appearance > Theme Editor > functions.php, then add the bottom of it, add the code.

    Best regards,
    Nikko

    #1256136

    Hi!..

    it is strange about the 502 bad gateaway error because are my credentials to get into my wp admin and i havo no problem at all.

    Ok… So…

    I already did add the code at the bottom line of the functions.php file. Also, i was able to save the changes properly.

    Next steps?..

    Thank you…

    #1256259

    Hi RubenHD,

    I think some locations are blocked, if I try to go to wp-admin (which usually redirects to wp-login.php) I get this error:

    Acceso restringido desde tu conexión
    ¿Qué ha podido pasar?
    Se ha bloqueado por seguridad el acceso desde tu conexión a la url que intentas acceder. Si la web es tuya pulsa aquí para solucionarlo, por favor:

    Best regards,
    Nikko

    #1265488

    Hi Nikko,

    I created a specific user for you guys from support. Let´s try again please, find it on private content.

    Please, let me know all is ok.

    Thank you.

    #1265692

    Hi,

    Thanks for that. I get the same error message as Nikko does though:

    502 Bad Gateway
    nginx

    If you are blocking country locations then please turn that off temporarily, or let us know what countries or IP ranges are allowed to access your login page.

    Best regards,
    Rikard

    #1267428

    Hi Rikard,

    Try the link on private content. Same user and psswd provided before.

    #1267602

    Hi RubenHD,

    Best regards,
    Victoria

    #1267627

    Hi Victoria!!

    I’ve been chating with my hosting about the issue here and they asked me about the country and IP you are trying to connect from.

    Please, let me know the information (you and your mates) and they will make it up tobe able to connect.

    Thanks for your time and best regards,

    #1267799

    Hi RubenHD,

    We are from different countries. I’m from Ukraine and my colleagues are from Lithuania, Philipines, and the USA.

    Best regards,
    Victoria

    #1275751

    Hi again Victoria!

    Please, try now… Already open the access for the countries you mentioned.

    It should be ok now.

    Regards

    #1275896

    Hi RubenHD,

    Which pages is the issue happening on? ON the pages built with the Advanced Layout Builder you can add the special heading element and set it to be the h1.

    Best regards,
    Victoria

    #1289939

    WE can close this ticket.

    Thank you so much.

    Regards

    #1290036

    Hi RubenHD,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘CSS code for H1 not working’ is closed to new replies.