Tagged: social icons
-
AuthorPosts
-
November 3, 2017 at 4:13 pm #872209
Please see item number 2 on this list for validation issue we are seeing:

It appears to have an issue with this portion of code:
data-av_icon=’’Is there an easy fix for this? After digging I found it was linked to av_icon_string function built into the theme. Perhaps there is an easy rewrite we can do in functions.php to eliminate this?
Thank you!
-
This topic was modified 8 years ago by
pcmichiana.
November 5, 2017 at 11:16 pm #872851Hey pcmichiana,
That is the way we are loading the icons at the theme, so there are not alternatives to use something else.
You could try to disable the icon on those positions – if that removed the data-av-icon and then add a :before rule, with a CSS content to add the icon
That is the only solution can think off.Best regards,
BasilisNovember 8, 2017 at 5:32 pm #874264There’s no way to edit the function in functions.php to remove the character out of compliance with W3C?
November 11, 2017 at 7:59 pm #875576Hi,
I found a function that may help:function removeunicode($content) { $content = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $content); return $content; } add_filter('the_content', 'removeunicode'); add_filter('the_title', 'removeunicode');It is meant to remove any characters in the hex ranges 0-31 and 128-255, but you could change it to remove only the one you want if you changed it to the hex you wanted to remove.
Best regards,
MikeNovember 13, 2017 at 7:17 pm #876217Unfortunately that did not remove the above character from the line of code. Any other suggestions?
Thank you for your input on this by the way!
November 16, 2017 at 3:19 am #877316Hi,
The icon elements in the page will not render correctly if you remove the av_icon data attribute.
[data-av_icon]:before { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: normal; content: attr(data-av_icon); speak: none; }It’s not a critical error so you can ignore the warning from the validator.
Best regards,
IsmaelNovember 16, 2017 at 4:08 pm #877591Ismael
That makes sense, thanks for letting me know!
November 17, 2017 at 6:45 am #877956 -
This topic was modified 8 years ago by
-
AuthorPosts
- The topic ‘W3C Validation Issue On Social Icons, Document Uses Unicode Private Use Area’ is closed to new replies.
