Render Class a custom class but in the frontend the class id missing.

General questions relating to Joomla! 3.x. Please consider the availability of third-party templates and extensions when deciding which Joomla version to use.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Post Reply
fantoni
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Fri Feb 15, 2008 7:06 pm

Render Class a custom class but in the frontend the class id missing.

Post by fantoni » Sat Oct 13, 2018 3:56 pm

Hi,
I insert in Article Intro text a field using {field X} tags. I also insert in Render Class a custom class but in the frontend the class id missing.

I try to custom the value of the field label "Titolo"

http://website.webarch.it/dei_014/

Code: Select all

.myclass .field-value 
{
   color:#cccccc !important;
   font-weight:600 !important;
}
Someone can help me?

Thank

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 36159
Joined: Sat Apr 05, 2008 9:58 pm

Re: Render Class a custom class but in the frontend the class id missing.

Post by Webdongle » Sat Oct 13, 2018 5:30 pm

You need to define the class in your css file and reference it in your Article code view

Code: Select all

<div class=" your custom class">Some text here</div>
If you use JCE https://extensions.joomla.org/extension/jce/ ... you can then select the class from a dropdown menu.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

annahersh
Joomla! Explorer
Joomla! Explorer
Posts: 289
Joined: Wed Aug 15, 2018 8:23 pm

Re: Render Class a custom class but in the frontend the class id missing.

Post by annahersh » Sun Oct 14, 2018 1:20 am

Maybe your template has content override files which has altered the custom field output and the method does not included the render class element. Try the default protostar template to see if the class is output.

fantoni
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Fri Feb 15, 2008 7:06 pm

Re: Render Class a custom class but in the frontend the class id missing.

Post by fantoni » Sun Oct 14, 2018 9:05 am

Hi Webdongle,
this work!!

Thank

GF


Post Reply

Return to “General Questions/New to Joomla! 3.x”