-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMS Page with <head> in layout update xml #4454
Comments
Also facing the same issue and require to be able to add in custom canonical URLs from the head. |
same problem with |
Having same problem to add breadcrumto CMS page. This was working in M1. |
Hi All! We already have an internal ticket to solve this problem - MAGETWO-60727 |
Thanks, any estimation on when a workaround may be released to allow us to implement it immediately? |
@devonto Unfortunatly, currently we have no easy and right way to include the css to the specific page. But like a temporary solution you can try to follow the our devdocs documentation - http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/css-topics/css-themes.html OR just to add link for css right to the content description. This is not very good solution, but it works. |
I find a workaround for this bug : http://magento.stackexchange.com/questions/126646/magento2-how-to-add-different-custom-css-file-on-specific-cms-pages/166322#166322 The root cause is here : vendor/magento/framework/View/Layout/etc/page_layout.xsd Need to add :
Complete file :
I do not test the side effect. But it works for me. |
How can I use the code to add:
|
Any news about this issue ? Is it solved in Magento 2.2 ? |
@zhiyicai, thank you for your report. |
Can you share the commit which solve this issue ? I am interesting to know how you fix this |
I confirm this bug in Magento 2.2.2. @franckgarnier21 Your workaround works fine! |
Hi @zhiyicai. Thank you for your report. The fix will be available with the upcoming 2.2.4 release. |
I have 2.3.0, but I don't see this fix. Has it been rolled out to 2.3.0 yet? |
@orbitrod 2.3.0 is not released yet. I think you have the 2.2.3 release, which indeed does not contain this fix. |
@sanderjongsma Something is wrong with my eyes, yes you are right, I have 2.2.3. |
I'm just installing version 2.2.5 and this issue still appears to be there. I double checked and I am positive I am on 2.2.5. Has this possibly regressed since 2.2.4? |
@djpaoloc, can you provide an example of how you are using as a layout instruction to update your file? I would like to add this to the docs that I'm working on updating. Thanks! |
@jove4015, did you ever figure out or confirm what was happening in version 2.2.5? |
i have a idea we can do this following way |
Hello all,
I was able before to include custom css in my cms page using the Layout update xml field with this
But since the v2.0.4 I have the following message whenever I try to save my page
"Please correct the XML data and try again. Element 'head': This element is not expected. Expected is one of ( referenceContainer, container, update, move ). Line: 1"
How can I do no to include custom css files in my cms pages?
The text was updated successfully, but these errors were encountered: