1. Facebook is warning me about duplicate IDs but I can’t find anywhere to remove them. The link to the main-product-feed.xml file doesn’t exist in when I look for it in Filezilla.
2. Also I got 2 errors saying:
Pixel Missing Parameter in DPA Events
Pixel events might be missing parameters some or all of the time.
They are for https://www.lenacohen.co.uk and https://www.lenacohen.co.uk/ready-to-ear/
Using:
Wordpress version 5.4.2
Woocommerce version 4.2.0
Pixel Caffeine version 2.1.3
I just ran the HTML5 validation on my site and got two warnings about duplicate IDs:
Error: Duplicate ID vscf_privacy.
From line 713, column 11; to line 713, column 115
<label><input type="checkbox" name="vscf_privacy" id="vscf_privacy" class="custom-control-input" value="yes" /> <span
Warning: The first occurrence of ID vscf_privacy was here.
From line 712, column 4; to line 712, column 73
roup">↩ <input type="hidden" name="vscf_privacy" id="vscf_privacy" value="no">↩ <l
Error: Duplicate ID vscf_widget_nonce.
From line 716, column 4; to line 716, column 93
hide">↩ <input type="hidden" id="vscf_widget_nonce" name="vscf_widget_nonce" value="bca686855a" /><input
Warning: The first occurrence of ID vscf_widget_nonce was here.
From line 684, column 329; to line 684, column 418
t us.</h2><input type="hidden" id="vscf_widget_nonce" name="vscf_widget_nonce" value="bca686855a" /><input
These seem to be thrown by the code in lines 335 and 336 in the vscf-form.php
Can this be fixed?
]]>-<?php echo $this->id; ?>
To each string subbox, subbox1, subbox2, subbutton in various locations. I am assuming that you added this for accessibility between the label and the field, so this should work to accomplish that and be a unique id for each instance, just like the widget itself.
Let me know if you see this is a stupid idea. Thanks!
https://gist.github.com/carasmo/d8dc0d33a2a54a2945aa47703ee5b3df
]]>Every time a post is edited and updated, regardless of whether the permalink is changed or not, a duplicate ID is created in any posts which happen to be *child* posts of that post.
Is there any fix to this? – or do you know a simple way to edit the database so that unique IDs can be created for all child posts again?
Hope to hear back from you.
Thank you
https://www.ads-software.com/plugins/enhanced-custom-permalinks/
]]>w3 validator shows lots of duplucate IDs.
So, why not to use class, in place of IDs ?
Site: www.casbhback.today
https://www.ads-software.com/plugins/megamenu/
]]>What do you think is the reason and can I fix it? Can I change the generated ID for the widgets?
]]>1.have a search box in the menu using this code:
function add_search_box($items, $args) {
if($args->theme_location == 'header-menu') {
ob_start();
get_search_form();
$searchform = ob_get_contents();
ob_end_clean();
return $items .= '<li id="searchform-item">' . $searchform . '</li>';
}
return $items;
}
2.have a search box in the sidebar as well but hide it from view for screen sizes max-width above 800px;
3.hide the menu search box from the menu for screen sizes below and equal to 800px;
4.display the search box in the sidebar for creen sizes below and equal to 800px.
This works, but the W3C validator is complaining about the duplicate IDs. This is because
the same search form with all the elements is used twice for the menu as well as the sidebar.
Is there any way to change all the IDs in the searchform.php to classes? Or is there another solution.
I would be grateful for your help. I am not using this at the moment until I find a solution – hopefully.
This means that any pages that show the widget, as well as the comment form do not validate as proper HTML, because you can’t have duplicate IDs for HTML elements.
This can also cause problems with scripting and style referring to #email, as unless you specify the context further, rules will apply to both fields. Though this is possible, it is still not correct to have two ID’s that are the same on a page, and it may cause problems upon activating the plugin if you already refer to the #email in the WordPress comment form.
Using something like #knews-email instead of the generic #email in your signup widget would avoid this conflict, as I can’t find any way to change the ID on the WordPress comment form.
https://www.ads-software.com/extend/plugins/knews/
]]>So if we use our Main-Navigation as a sitemap-like list in the footer, the HTML fails validation.
Because I found no way to filter your plugin output, I helped me “dirty” by adding a page-wide filter.
function remove_menu_ids () {
add_filter( 'nav_menu_item_id', '__return_null' );
}
add_action( 'init', 'remove_menu_ids' );
Would be nice, to have your plugin handle theese duplicated IDs.
https://www.ads-software.com/extend/plugins/advanced-menu-widget/
]]>