I am working on a WordPress website built on custom theme in which I want to ignore some specific CSS codes coming from wordpress plugin style sheet.
You can't exactly ignore a stylesheet that comes with a plugin that you wish to use. You could try overwriting the plugins stylesheet with your own styles, but if you plan to update that plugin it could cause trouble.
A lot of people have been stating to use important and I wouldn't do that. You should leverage CSS cascading ability and write your own css reset for those classes:
A CSS Reset is a short, often compressed (minified) set of CSS rules that resets the styling of all HTML elements to a consistent baseline.
What you would need to do is change the style you want to change and reset the styles you don't, but you must implement these changes after the original style occurs to leverage CSS cascading ability. For example:
Reset Method
//Original
@media screen and (max-width: 575.98px) .gv-table-view tr:first-of-type {
border-top: 1px solid #ccc;
}
//Reset must come after the plugins original style
@media screen and (max-width: 575.98px) .gv-table-view tr:first-of-type {
border-top: none;
}
Make sure the stylesheet you're using to reset the plugins styles comes/loads after the plugins stylesheet.
It is only when you can't reset, or override a style through CSS cascading nature you should use important. More on that here.
In your make sure your style.css folder is coming after the gravity views plugin stylesheet
Your Current Head
What it needs to look like
You can give your stylesheets priority in your functions.php file. For more information please check here.