Error: Element style not allowed as child of element div in this context.
#1 I know there already was this exact issue report and that you “resolved” it by sweeping it under the rug with “Unfortunately, there’s no way to fix that since that’s our forms are created.”.
#2 There IS a way you can fix this. You can simply do it via data attributes and js and I’m sure you can do it THE CORRECT WAY as all other plugins somehow manage to do stuff.
#3 No errors on W3C validator is one of Themeforest theme submission requirements so it’s SUPER NOT COOL to just leave this error in your code for us developers (people who drive the customers to you by including your plugin in our themes) which creates risk of rejection for us.
Fun fact: this is the ONLY error in my entire theme. That should mean something to you.
To conclude. When I submit my theme I’ll link to the post where you “resolved” the issue and, in case Themeforest guys demand that the error is removed, I’ll remove your plugin from my theme.
]]>site url : https://s4hosting.in
]]>The type attribute for the style element is not needed and should be omitted.
The type attribute is unnecessary for JavaScript resources.
<script type=”text/javascript” src=”/wp-content/plugins/smart-slider-3/Public/SmartSlider3/Application/Frontend/Assets/dist/n2.min.js?ver=a96b01e9″>
<style type=”text/css”>.n2-ss-spinner-simple-white-container {
position: absolute;
top: 50%;
left: 50%;
margin: -20px;
background: #fff;
width: 20px;
height: 20px;
padding: 10px;
border-radius: 50%;
z-index: 1000;
}
Any idea how to fix it? I have added some functionality to remove the type from script and style and it is working fine except it is not working for your plugin.
// remove type attribute enqueue
add_filter(‘style_loader_tag’, ‘puddinq_remove_type_attr’, 10, 2);
add_filter(‘script_loader_tag’, ‘puddinq_remove_type_attr’, 10, 2);
function puddinq_remove_type_attr($tag, $handle) {
return preg_replace( “/type=[‘\”]text\/(javascript|css)[‘\”]/”, ”, $tag );
}
NOTE:
In the global settings> I have selected Inline at HEAD for both CSS and JS.
Secondly, I ran W3C Validator and encounter NUMEROUS errors with regards to the markup. Most errors are related to the data-slick={“attr”,”value”} in which it says: ‘ ” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value.’
The other errors include duplicated ID attributes on the slides.
I appreciate any help you can provide regarding these issues. Thank you.
]]>On elementor SYSTEM INFO I’ve got this:
== Server Environment ==
Operating System: Linux
Software: Apache/2.4.23
MySQL version: 5.6.35
PHP Version: 5.6.30
PHP Max Input Vars: 1000
PHP Max Post Size: 128M
GD Installed: Yes
Elementor Library: Connected
== WordPress Environment ==
Version: 4.8
Site URL: https://www.nawrockipt.co.uk
Home URL: https://www.nawrockipt.co.uk
WP Multisite: No
Max Upload Size: 128 MB
Memory limit: 40M
Permalink Structure: /%postname%/
Language: en-US
Timezone: 0
Debug Mode: Inactive
== Theme ==
Name: GeneratePress
Version: 1.3.48
Author: Tom Usborne
Child Theme: No
== User ==
Role: administrator
WP Profile lang: en_US
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
== Active Plugins ==
Custom Share Buttons with Floating Sidebar
Version: 3.2
Author: MR Web Solution
Devices for Elementor
Version: 1.0.4
Author: Namogo
Elementor
Version: 1.5.2
Author: Elementor.com
Elementor Addon Elements
Version: 0.5
Author: Webtechstreet.com
Elementor Pro
Version: 1.5.5
Author: Elementor.com
Google Analytics Dashboard for WP (GADWP)
Version: 5.1
Author: Alin Marcu
GP Premium
Version: 1.3.1
Author: Tom Usborne
Header Footer Elementor
Version: 1.0.1
Author: Brainstorm Force, Nikhil Chavan
Image Widget
Version: 4.4.5
Author: Modern Tribe, Inc.
MailChimp for WordPress
Version: 4.1.5
Author: ibericode
Max Mega Menu
Version: 2.3.7.1
Author: Tom Hemsley
Press Elements – Widgets for Elementor
Version: 1.7.0
Author: Press Elements
Really Simple SSL
Version: 2.5.19
Author: Rogier Lankhorst
Slider Revolution
Version: 5.4.5.1
Author: ThemePunch
Slider Revolution Background FilmStrip Add-On
Version: 1.0.0
Author: ThemePunch
Slider Revolution Background Slicey Add-On
Version: 1.0.0
Author: ThemePunch
Slider Revolution Backup Add-on
Version: 1.0.2
Author: ThemePunch
Slider Revolution Featured Slider Add-on
Version: 1.0.0
Author: ThemePunch
Slider Revolution Particles Effect
Version: 1.0.4
Author: ThemePunch
Slider Revolution Polyfold Scroll Effect
Version: 1.0.1
Author: ThemePunch
Slider Revolution Related Posts Add-On
Version: 1.0.1
Author: ThemePunch
Slider Revolution Sharing Add-on
Version: 1.1.2
Author: ThemePunch
Slider Revolution Typewriter Effect
Version: 1.0.3
Author: ThemePunch
Slider Revolution Whiteboard Add-on
Version: 1.0.6
Author: ThemePunch
Slider Revolution WP Gallery Add-On
Version: 1.0.2
Author: ThemePunch
StylePress for Elementor
Version: 1.0.18
Author: dtbaker
Tables For Elementor
Version: 1.0.2
Author: WPDevHQ
WooCommerce
Version: 3.1.0
Author: Automattic
WooCommerce PayPal Express Checkout Gateway
Version: 1.4.1
Author: WooCommerce
Wordfence Security
Version: 6.3.12
Author: Wordfence
WP Super Cache
Version: 1.4.9
Author: Automattic
Yoast SEO
Version: 5.0.1
Author: Team Yoast
== Debug ==
Errors:
SyntaxError: Unexpected identifier
at https://www.nawrockipt.co.uk/contact/?elementor – 1:1979
2017-07-05 19:01 +00:00
SyntaxError: Unexpected identifier
at https://www.nawrockipt.co.uk/contact/?elementor – 1:288
2017-07-05 18:59 +00:00
ReferenceError: landscape_screenshot_url is not defined
at https://www.nawrockipt.co.uk/products/?elementor – 67:4
2017-07-05 13:27 +00:00
TypeError: Cannot read property ‘pageYOffset’ of undefined
at https://www.nawrockipt.co.uk/wp-includes/js/jquery/jquery.js?ver=1.12.4 – 4:30810
2017-06-29 22:45 +00:00
TypeError: Cannot read property ‘add’ of null
at https://www.nawrockipt.co.uk/wp-content/plugins/elementor/assets/lib/slick/slick.min.js?ver=1.6.0 – 17:18995
2017-06-29 19:45 +00:00
x 3 times
TypeError: Cannot read property ‘pageYOffset’ of undefined
at https://www.nawrockipt.co.uk/wp-includes/js/jquery/jquery.js?ver=1.12.4 – 4:30810
2017-06-08 16:11 +00:00
x 9 times
SyntaxError: Unexpected identifier
at https://www.nawrockipt.co.uk/test-page/?elementor – 1:1481
2017-05-29 18:13 +00:00
x 4 times
SyntaxError: Unexpected token :
at https://www.nawrockipt.co.uk/test-page/?elementor – 1:628
2017-05-29 18:11 +00:00
TypeError: Cannot read property ‘pageYOffset’ of undefined
at https://www.nawrockipt.co.uk/wp-includes/js/jquery/jquery.js?ver=1.12.4 – 4:30810
2017-05-25 17:42 +00:00
x 6 times
TypeError: Cannot read property ‘cid’ of undefined
at https://www.nawrockipt.co.uk/wp-content/plugins/elementor-pro/assets/js/frontend.min.js?ver=1.5.0 – 2:2458
2017-05-25 17:32 +00:00
I am a non-coder so please explain me what can I do… Just to add, I am using Generate press theme…
Please help me wht I can do to resolve the issues
Thank you in advance
Luke
Error: Attribute u not allowed on element div at this point.
From line 8, column 2319; to line 8, column 2359
: 533px;"><div u="loading" class="reslide_loading"><div><
Attributes for element div:
and 2 times
Attribute u not allowed on element span at this point.
From line 8, column 5168; to line 8, column 5246
iv></div> <span u="arrowleft" class=" reslide_arrow_left" style="top: 123px; left: 8px;"> </spa
Attributes for element span:
Thanks for the help
]]>https://www.awesomescreenshot.com/image/1682816/74fc219f68e79cf23ecbae0866d608ce
]]>But I have one problem in using this plugin. When I validate my site with W3C, it gives me following errors.
“Element style not allowed as child of element div in this context.”
<style type=”text/css”>.easing……
Please Help.
Regards,
khushbu.
E.g. Error: ” in an unquoted attribute value. Probable causes: Attributes running together or a URL query string in an unquoted attribute value.
At line 250, column 12
/p><h1 style=\”text-align: ce
How do i find line 250 so i can make the changes.
Many thanks
Danny Kirk
]]>