You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if Oxygen is the culprit here but I believe it is.
Using the BlockLab plugin which works well with Oxygen despite not having a theme. You save your blocks in a directory called /fake/blocks/
Now I am not sure if blocklab or oxygen is the one adding the fake part of the URL, but if it is then Oxygen is causing problems.
If you want to inject a custom CSS for your block you create a CSS file named the same as the block: /fake/blocks/my-block.php and /fake/blocks/my-block.css
Describe the bug
Not sure if Oxygen is the culprit here but I believe it is.
Using the BlockLab plugin which works well with Oxygen despite not having a theme. You save your blocks in a directory called
/fake/blocks/
Now I am not sure if blocklab or oxygen is the one adding the fake part of the URL, but if it is then Oxygen is causing problems.
If you want to inject a custom CSS for your block you create a CSS file named the same as the block:
/fake/blocks/my-block.php
and/fake/blocks/my-block.css
According to this blog post: https://getblocklab.com/new-feature-a-better-way-of-handling-block-styling-css/
The problem when doing this is when Oxygen injects the CSS in the footer it does not append a '/' after the site URL, so the CSS stylesheet will 404:
<link rel='stylesheet' id='block-lab__block-myblock-css' href='https://example.comfake/blocks/block-myblock.css?ver=1.0.0' type='text/css' media='all' />
Notice the
example.comfake
part.Are you able to replicate the issue on a Sandbox install at https://oxygenbuilder.com/try?
Yes
To Reproduce
/fake/blocks/myblock.php
/fake/blocks/myblock.css
Expected behavior
Inject CSS with
/
after the domain name to access the CSS file.What actually happens
Injecting without slash and CSS file will 404.
The text was updated successfully, but these errors were encountered: