Been creating a website recently with Elementor.
I have a line of code in the source code of the website saying
img
{
height:auto;
}
Is there any way to add custom css
to the website to ignore this line of code and somehow override it?
Been creating a website recently with Elementor.
I have a line of code in the source code of the website saying
img
{
height:auto;
}
Is there any way to add custom css
to the website to ignore this line of code and somehow override it?
2
Answers
Yes, via the customizer in WordPress you can.
Navigate inside the
wp-admin
to:Then inside the
textarea
just putDon’t forget to click publish!
Or if you have access to the theme editor, you can edit the
CSS
file there, you can find it underThen try to locate the source file where that line of code has been defined.
You can locate the source file by looking in your
element inspector
using any browser. It will show you which file has that line of code and on which line you can find it.Following @Red instructions for adding extra CSS on WordPress, you can also override it by using
!important
, you can use it everywhere, also before the first declared css as i made in this snippet.Without
!important
you need to collocate your new css after the one you want to override.