You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
  Wednesday, 20 April 2022
  8 Replies
  658 Visits
Hi,

I am using the column feature layout in an article, it works really well - but when I add additional css for styling as soon as I 'save and close' the article new css is removed.

If I do not toggle back to the preview view and remain in code view I can save the document and view my styles on the front end.

I have added div and css to the allow in the editor profile, checked the Joomla prohibited settings and just can't see the issue.

The attached shows the two classes I add to each column. They are the ones removed on save and close.



Thanks for your help
Britt

2022-04-20_16-54-56.png
more than a month ago
·
#110870

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#110871
Hi Ryan,

I've installed and it now does not strip away the custom css, but it does still strip away additional column control css. See my examples to get an idea on what it changes.

e.g. if I set col-lg-4 col-md-4 on save the col-sm is reinstated.

Appreciate your help :D

Thanks Britt



2022-04-21_09-30-38.png
2022-04-21_09-30-38.png
more than a month ago
·
#110872
2022-04-20_16-54-56.png
more than a month ago
·
#110875

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#110879
Hi Ryan,

Its improved, but still stripping and replacing css. See the screens

The second column, removes the col-lg-8, retains if I do not go back to edit view mode. But as soon as I save and close the file and reopen, it has stripped away the new css on that row only. Oddly it retained the first col-lg-4?

It also adds back the unrequired col-sm which I don't use because I have to be more granular across devices.

Thanks again for helping with this, it's a great feature.
Britt
more than a month ago
·
#110880
And images I am getting an error on uploading small files under 300KB each, no sot sure why. I can email them if this is not able to be resolved. I have tried two different browsers and the error I get is

'The file 2022-04-22_09-21-50.png, which you are attempting to upload is exceeded the maximum file size.'
more than a month ago
·
#110892
you have max upload set to 0.25MB...so here are two very optimised images. I can't do much smaller than this.

2022-04-22_09-21-50.jpg
2022-04-22_09-22-33.jpg
more than a month ago
·
#110907
When you create Columns, you select the Stack Width and Layout for the columns, which results in a set of classes being applied to the divs, in this case the col-sm and col-sm-8 values.

Removing these classes, or adding others, will change the original layout and stack width, and adding some classes that are used by Columns to create these layouts, such as the col-lg-8 value, will then change how the columns are processed.

If you want to add your own layout values, then I would suggest removing the data-wf-columns="1" attribute in the parent container, so that the layout is no longer processed as Columns, and you can add your own classes as required.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!