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 Offline

Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)

Please post your question in the Forum and we will get back to you as soon as we can.

  Thursday, 17 November 2022
  7 Replies
  141 Visits
Hi I am using Gantry 5 to generate Joomla templates but one thing I have noticed is that if I use text colours from JCE in article editor the attributes are added to the HTML correctly but they are no rendered on the front end - they just come out in standard text colour.

How can I change this behaviour so that specific colours chosen in the editor are actually displayed correctly?
2 weeks ago
·
#112339
Please post a link to an example article.

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

2 weeks ago
·
#112348
I am upgrading a site from Joomla 3 to 4 but in the process had to change template as the J3 template was not upgradable.

I have a page of poetry with initials highlighted

Here is the J4 link (work in progress)

https://www.tanya.lairdswood.com/poems


Compare to the J3 original version

https://www.tanyaanisimova.com/poems
2 weeks ago
·
#112353
This is caused by a rule in your CSS file


h1, h2, h3, h4, h5, h6, strong {
color: #4d4d4d;
}
2 weeks ago
·
#112357
Thanks

I know its not related to JCE but any idea how to override a CSS file? I don't want to edit the main file as updates will overwrite it.
2 weeks ago
·
#112358
See this - https://docs.gantry.org/gantry5/tutorials/adding-a-custom-style-sheet

and in the custom css file add:


strong {
color: inherit;
}


Alternatively apply the Bold to the text first, then the color.

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

2 weeks ago
·
#112359
You can also use css to apply a style to the first letter in a paragraph. Edit the Poems menu item, and add the Page Class value of poems in the Page Display tab. Then add the following to the custom css file:


.poems p:first-letter,
.poems h3:first-letter {
color: red;
font-weight: bold;
}

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

2 weeks ago
·
#112361
Thank you - that's really helpful
  • Page :
  • 1
There are no replies made for this post yet.