Archived

This topic is now archived and is closed to further replies.

  • 0

css-class for adding color to any text. why doesn't this work?


Question

Posted · Report post

There is probably something really easy that I've missed or misunderstood, but I'm not a professional web-developer. I'll appreciate any help.

 

I put the following in style.css of my child theme. 

.oransje {color: #f77c0a;}

And then tried to add this color to a heading with

<h2 class="oransje">Heading</h2>

This doesn't work. What's the proper way to make this work with Pagelines?

I tried to add make it important, but that didn't help?

Share this post


Link to post
Share on other sites

2 answers to this question

Posted · Report post

Rob, thanks for replying. As noted it is in style.css. Though, now I found it myself, it was just a small coding error, it was commented out by mistake. 

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

Where did you place the CSS code?

 

If you add that code to Dashboard > PageLines > Site Options > Custom Code anywhere after body {}, it should work.

Share this post


Link to post
Share on other sites