Home
Forum
Extensions
Discord
Shoutbox
Social Slider
Documentation
Login
Username
Password
Remember Me
Log in
Create an account
Forgot your username?
Forgot your password?
Toggle Main Navigation
Error message
Start
Prev
1
Next
End
1
pschmehl
Topic Author
Posts: 4
4 years 2 months ago
#4362
by
pschmehl
Error message
was created by
pschmehl
I'm working on a test version of our site, preparing for the upgrade to Joomla 4. Among other things, I've been running it through the w3c validators, and the markup validator returns an error.
Error: Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)
From line 141, column 2; to line 141, column 8
</a>↩ ↩ <style>↩ .jj-
Here's the offending code on the page.
</div>
<a href="#top" id="back-top" class="back-to-top-link" aria-label="Back to Top">
<span class="icon-arrow-up icon-fw" aria-hidden="true"></span>
</a>
<style>
.jj-social-slider {
--ss-transaction-speed: 0.3s;
--ss-transaction-ease: cubic-bezier(0.47, 0, 0.745, 0.715);
--ss-opacity: 1;
--ss-flex-direction: row-reverse;
top: 10px;
}
I'm not expert, but I think this is a Joomla coding problem with the Cassiopeia template. You'll notice that the back to the top button is just hanging there in space, which no <div> surrounding it. Then comes your style stuff, and naturally the validator complains.
I'm going to report it to Joomla as well.
Please
Log in
or
Create an account
to join the conversation.
Lodder
Posts: 1264
4 years 2 months ago
#4363
by
Lodder
Replied by
Lodder
on topic
Error message
Hi pschmehl,
Judging by the CSS variables, you're probably using the Pro version of Social Slider.
In this, I removed the use of addStyleDeclaration in favour of <style> tags for performance purposes.
Could you try openening the following file, on line 18:
> ROOT/mod_social_slider/tmpl/default.php
and wrapping the <style> inside a <div> ?
Regards,
Lodder
Please
Log in
or
Create an account
to join the conversation.
pschmehl
Topic Author
Posts: 4
4 years 2 months ago
#4364
by
pschmehl
Replied by
pschmehl
on topic
Error message
That did not fix the issue. I'm pretty sure that back to the top code needs to be wrapped in a div instead. I'll see if I can test it.
Please
Log in
or
Create an account
to join the conversation.
pschmehl
Topic Author
Posts: 4
4 years 2 months ago
#4366
by
pschmehl
Replied by
pschmehl
on topic
Error message
W3C now throws a second error: Error: CSS: top: only 0 can be a unit. You must put a unit after your number.
The code is top: 10. Apparently it's supposed to have some attribute value like px, vw, vh, etc.
<style>
.jj-social-slider {
--ss-transaction-speed: 0.3s;
--ss-transaction-ease: cubic-bezier(0.47, 0, 0.745, 0.715);
--ss-opacity: 1;
--ss-flex-direction: row-reverse;
top: 10;
}
.jj-social-slider a {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
Please
Log in
or
Create an account
to join the conversation.
Lodder
Posts: 1264
4 years 2 months ago
#4367
by
Lodder
Replied by
Lodder
on topic
Error message
Hi pschmehl,
In the settings for Social Slider, for the "Top" field, you need to define a unit.
For example, you can use "10px" or "10em"
Please
Log in
or
Create an account
to join the conversation.
pschmehl
Topic Author
Posts: 4
4 years 2 months ago
#4368
by
pschmehl
Replied by
pschmehl
on topic
Error message
Thank you.
Please
Log in
or
Create an account
to join the conversation.
Start
Prev
1
Next
End
1
Powered by
Kunena Forum