Home › Forums › Support › Aria attributes do not match their roles This topic has 7 replies, 4 voices, and was last updated 3 years, 3 months ago by David. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts March 2, 2023 at 4:23 pm #2553408 Kelsey Hello, I am getting this accessibility message on PageSpeed Insights for my category pages. Aria attributes do not match their roles Entry meta <footer class=”entry-meta” aria-label=”Entry meta”> How can I fix it? And why is it only happening on my category pages? March 2, 2023 at 7:41 pm #2553511 YingStaff Customer Support Hi Kelsey, Can you try this PHP code: add_action('wp',function() { if (is_archive()) { remove_action( 'generate_after_entry_content', 'generate_footer_meta' ); } }); Adding PHP: https://docs.generatepress.com/article/adding-php/ March 2, 2023 at 7:58 pm #2553516 Kelsey It won’t let me add it (an exclamation point shows up next to the fourth line). I have also never used Code Snippets before, what do I set the location to? Thanks! March 2, 2023 at 8:10 pm #2553523 LeoStaff Customer Support Ying function shows no error for me: https://www.screencast.com/t/nulh2ZrQN Can you make sure to copy and entire thing? March 3, 2023 at 8:19 am #2554301 Kelsey I tried it again but this is the message I keep getting: rule 934100 – reason Node.js Injection Attack Matched Data: function() { found within args:snippet_code: add_action('wp',function() {\r\n\tif (is_archive()) {\r\n\t\tremove_action( 'generate_after_entry_content', 'generate_footer_meta' );\r\n\t }\r\n}); March 3, 2023 at 9:55 am #2554401 DavidStaff Customer Support Hi there, that looks a security plugin or setting on your server that is blocking that function. For now don’t use that snippet. Go to Customizer > Additional CSS and add this CSS: .archive .entry-meta { display: none; } March 3, 2023 at 1:45 pm #2554587 Kelsey Thank you, it worked! March 4, 2023 at 5:03 am #2555162 DavidStaff Customer Support Glad to hear that! Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In