Tagged: CSS, H1, meta title
-
AuthorPosts
-
October 20, 2020 at 4:54 pm #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.
October 21, 2020 at 5:34 pm #1254720Hi 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,
NikkoOctober 26, 2020 at 4:55 pm #1255776Hi Nikko!
Thank you for your reply… Well, How can i do that?… need some guide!
Thank you and regards,
October 26, 2020 at 11:20 pm #1255911Hi 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,
VictoriaOctober 27, 2020 at 12:06 pm #1256004Hi Victoria!
Access below as requested
Thank you.
October 27, 2020 at 2:23 pm #1256073Hi 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,
NikkoOctober 27, 2020 at 4:20 pm #1256136Hi!..
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…
October 28, 2020 at 4:49 am #1256259Hi 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,
NikkoDecember 7, 2020 at 2:59 pm #1265488Hi 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.
December 8, 2020 at 6:39 am #1265692Hi,
Thanks for that. I get the same error message as Nikko does though:
502 Bad Gateway
nginxIf 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,
RikardDecember 15, 2020 at 11:20 am #1267428Hi Rikard,
Try the link on private content. Same user and psswd provided before.
December 15, 2020 at 11:28 pm #1267602Hi RubenHD,
Best regards,
VictoriaDecember 16, 2020 at 1:02 am #1267627Hi 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,
December 16, 2020 at 12:56 pm #1267799Hi RubenHD,
We are from different countries. I’m from Ukraine and my colleagues are from Lithuania, Philipines, and the USA.
Best regards,
VictoriaJanuary 27, 2021 at 12:16 pm #1275751Hi again Victoria!
Please, try now… Already open the access for the countries you mentioned.
It should be ok now.
Regards
January 27, 2021 at 10:08 pm #1275896Hi 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,
VictoriaMarch 23, 2021 at 4:43 pm #1289939WE can close this ticket.
Thank you so much.
Regards
March 24, 2021 at 6:25 am #1290036Hi RubenHD,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘CSS code for H1 not working’ is closed to new replies.