Community Forums › Forums › Archived Forums › Design Tips and Tricks › Infinity Pro theme stylesheet error in original code
Tagged: code issue, css code, Genesis Developer, Infinity Pro, stylesheet error, update theme stylesheet, warning notification
- This topic has 6 replies, 3 voices, and was last updated 4 years, 3 months ago by
immacc50.
-
AuthorPosts
-
February 28, 2019 at 10:07 am #489765
immacc50
ParticipantI would like to add custom code to the stylesheet but am receiving an error notification on line 1993: (padding: 12px 20px;)
The notification states: "There is 1 error which must be fixed before you can update this file."
There is currently no break in my site, however, there is a check box with the warning: "Update anyway, even though it might break your site?"
Please advise.
.genesis-responsive-menu .genesis-nav-menu .menu-item a {
https://clovisplumbingservices.com/
border: none;
margin-bottom: 1px;
padding: 12px 20px;
width: 100%;
}February 28, 2019 at 12:33 pm #489766Victor Font
ModeratorThere's no error on that line. The message is erroneous.
It's a bad idea to use the WordPress editor to edit theme files. If you make a mistake, the WordPress editor is very unforgiving. Your site will go down and the only way you'll be able to fix things is through FTP.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?February 28, 2019 at 2:53 pm #489770immacc50
ParticipantThank you Victor... I appreciate your help. Also, thanks for the tip on editing.
March 1, 2019 at 12:41 am #489774inmatesearch
MemberEven I am getting a similar error on line number 1002 after I edited the CSS
CEO
https://theinmatesearch.org/
Inmate SearchMarch 1, 2019 at 4:44 am #489776immacc50
ParticipantCurrently I have 15 warning signs (!) and 1 red x in my stylesheet. However, the site is not broken and displays well in Chrome, Firefox and IE.
Unfortunately I am a little OCD and would like to understand why wordpress is indicating so many "erroneous" errors in the code?
I did successfully modify the stylesheet via ftp to include a partial fix to background images in front page 1, 3 and 5 that were not resizing to fit mobile devices. (I'm using Samsung Galaxy S7).
@media only screen and (max-width: 600px) {.front-page-1,
.front-page-2,
.front-page-3,
.front-page-4,
.front-page-5,
.front-page-6,
.front-page-7 {
padding-bottom: 10px;
padding-top: 60px;
}.front-page .content h1 {
font-size: 22px;
font-size: 2.2rem;
}.front-page .content h3 {
font-size: 20px;
font-size: 2.0rem;
}.front-page .content h5 {
font-size: 16px;
font-size: 1.6rem;
}}
March 1, 2019 at 8:26 am #489778Victor Font
ModeratorThe editor in WordPress is unforgiving. Click on the warning icon for an explanation.
It flags spaces as errors and wants you to use tabs for spacing or vice versa. I don't remember which. These things don't matter. You'll only irritate yourself trying to chase them down.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?March 1, 2019 at 8:56 am #489779immacc50
ParticipantThank you Victor... yes, irritating to say the least.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.