adding custom css

QuestionsCategory: Diviadding custom css
kraig kiedrowski asked 4 years ago

Hello again- a programmer wrote some custom css code to reduce the size of verticals of featured image full size. We put it in the Divi style sheets but it was overridden by a theme update. Then I activated add css plug in from wordpress and that worked fine. now it doesn’t. I rewrote it in the plug in hit save and nothing. I also saw in theme optimizer a box at  the bottom for adding css. I pasted in there hit update got the green checkmark but no changes to the site. This is the same code that was successful before. any ideas? Thanks, Kraig

Abhishek replied 4 years ago

Hi Kraig

Could you please post the code so that I can check.

114072597 replied 4 years ago

/* Custom styling for full page image
article.project img {
height: 600px;
width: auto;
}
*/
article.project {
text-align: center;
}

Abhishek replied 4 years ago

Can you please send your site url as well

Abhishek replied 4 years ago

Hello Kraig,

Please use the following code instead
article.project img {
height: 600px;
width: auto;
}
article.project {
text-align: center;
}

I also recommend you to use child theme of Divi.

114072597 replied 4 years ago

so it is the same code without */Custom styling for full page image and without */ before article.project { correct?

Abhishek replied 4 years ago

yes

114072597 replied 4 years ago

Thank you for your help! would the free blank Divi child theme be sufficient?

Abhishek replied 4 years ago

Yes

1 Answers
Erez Elias answered 8 months ago

WordPress has hundreds of free plugins and features that can be integrated into your web design. And we worked a lot in divi theme. and we can add custom css. 

Your Answer

16 + 15 =

Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

You have Successfully Subscribed!

Share This