-
AuthorPosts
-
November 21, 2020 at 12:57 pm #1261933
Hi every one,
In all the pages of my site, there is H3 that is present and maybe, it shouln’d be here nor activated.
I mean, I didn’t declare that H3 (if I did it wasn’t intentionally) and I don’t want it.Take a look at this page for example: https://c-serp.fr/clients-references/
If you manage to get its heading hierarchy, you will find this:
<H1>: Clients références
<H2>: Besoin d’aide pour référencer votre site web ?
<H3>: Ecrivez-moi ou appelez au 07.69.23.06.01
<H3>: Paramètres de la barre titreThe last H3 (Paramètres de la barre titre) seems to come from the cookie in the Enfold option.
I’ve been looking everywhere to see if I could disabled it but couldn’t find it. (Maybe I’ve searched in the wrong directions)I don’t know if it’s a bug or not, but that unwanted H3 is not a KEYWORD for sure and I don’t want extra information taking place in Headings without my control.
Can anyone help me to understand then to remove or disable that H3 please?
Thx in advance ;)- This topic was modified 4 years ago by rvga.
November 25, 2020 at 3:19 am #1262881Hey rvga,
Thank you for the inquiry.
We could change the markup of the privacy & cookie modal popup window, but we have to manually edit the enfold\includes\helper-privacy.php file and adjust this code around line 1868:
$sc_content .= "[av_heading tag='h3' padding='10' heading='{$heading}' color='' style='blockquote modern-quote' custom_font='' size='' subheading_active='' subheading_size='15' custom_class='' admin_preview_bg='' av-desktop-hide='' av-medium-hide='' av-small-hide='' av-mini-hide='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' margin='10px,0,0,0'][/av_heading]";
Change the tag value from h3 to something else.
Best regards,
IsmaelNovember 30, 2020 at 2:59 pm #1263986Thx Ismael for your reply.
If I change the code you suggest and from what I understand about child theme, wouldn’t it be better to modify the code in one of my file inside my child theme instead?
And if so, what would be that code?December 3, 2020 at 5:11 am #1264642Hi,
Unfortunately, this template cannot be overridden in the child theme because the function that generates it is part of a class. You will have to modify the parent file directly, or move the whole av_privacy_class class in the child theme. You will also have to remove the av_privacy_helper action.
remove_action( 'init', 'av_privacy_helper', 20 );
Best regards,
IsmaelDecember 3, 2020 at 8:56 am #1264694Ok Ismael thanks for the additional information.
It’s too sophisticated for me, I’m going to leave it as is.So at the line 1868, I’ve changed the ‘h3’ by a ‘p’:
Before:$sc_content .= "[av_heading tag='h3' padding='10' head-----
Now:$sc_content .= "[av_heading tag='p' padding='10' head----
It seems to work.
Is it good for you?December 7, 2020 at 4:56 am #1265382Hi,
Yes, that is fine. Please leave the modification for now, or post the WP and FTP details in the private field if you would like us to try and override the av_privacy_class class in the child theme, but we do not recommend this because there might be some changes in that class in future.
Thank you for your patience.
Best regards,
IsmaelDecember 8, 2020 at 9:35 am #1265704It’s Ok like this Ismael. I will over write this 1868 line every Enfold updates.
Thanks for your help.
You can close this thread now.December 8, 2020 at 10:01 pm #1265838Hi rvga,
Ok :)
We are closing the thread.
If you need further assistance please let us know in a new one.
Best regards,
Victoria -
AuthorPosts
- The topic ‘H3 in cookie, not expected’ is closed to new replies.