• Resolved eric brockman

    (@eric-brockman)


    Link: https://ericbrockmanwebsites.com/dev/

    I’m having two main errors I’m not sure how to fix.
    1. The Title of the Blog is FISH-FRY MUSIC AND SOUND, but if I use
    <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
    I get this error:

    Bad value https://ericbrockmanwebsites.com/dev/wp-content/themes/FISH-FRY MUSIC AND SOUND CUSTOM THEME/style.css for attribute href on element link: Whitespace in path component. Use %20 in place of spaces.

    I’m actually getting lots of these errors all for the same reason (I assume).

    Secondly I’m getting this error:

    Line 85, Column 7: Element style is missing required attribute scoped.

    <style>

    Attributes for element style:
    Global attributes
    media
    type
    scoped
    Also, the title attribute has special semantics on this element.

    Not sure what to do about this?!?

    Any help is greatly appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The “FISH-FRY MUSIC AND …THEME” portion of the URL for the stylesheet has spaces in it (between the words). You cannot have spaces in URLs.

    The second one is because you are missing a required attribute for the style tags — see this.

    Thread Starter eric brockman

    (@eric-brockman)

    Okay this helps a lot, so I’ve re-uploaded my theme without using spaces in the theme title and that cleared most errors.

    The one I’m stuck on is the <style> tag

    As far as I can tell the only required attributes are:
    type=”text/css” media=”screen”

    I have both of those listed. According to this https://www.w3schools.com/html/html_css.asp it seems I’m set up right, but obviously I’m missing something.

    The opening style tag on line 85 of the html code has no attributes at all. But actually that whole section of CSS is in the wrong place — as it is in the body of the page. CSS does not go there — an internal stylesheet goes in the head section. (or in an external stylesheet or inline). So you need to fix that whole section AND add the required attributes to that style tage.

    Thread Starter eric brockman

    (@eric-brockman)

    AHHHHH, I see what’s happening, there’s a plugin I have installed “Front-Slider” that has the CSS for the plugin written into their front-slider.php file.

    Moving all of the CSS to my main styleshhet.css makes everything validate! Of course now I have to go back and restyle a bunch of stuff for that plugin, but hey it validates.

    Thanks Yogi!!

    Great — glad that solves it. Gotta watch out for those plug-ins that do odd things!

    Thread Starter eric brockman

    (@eric-brockman)

    Thanks again for your help, WPyogi. Now I have to figure out how to get my header items to line up on all the major browsers… but that’s for a new thread!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Trouble Shooting Validation errors’ is closed to new replies.