Need to move stylesheets to head rather than footer

WordPress Event Management, Calendars & Registration Forums General Question Need to move stylesheets to head rather than footer

This topic contains 3 replies, has 2 voices, and was last updated by  Stephen Harris 10 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7938

    Hi, I’m trying to validate my site as best I can, but I’m getting a validation error:
    ” Element link is missing required attribute property.” for the line where the stylesheets are added in the footer.
    I found a solution on Stackoverflow which involves moving styles to the head. Anyway I can do that?

    Alicia St Rose
    #7953

    Hi Alicia,

    Stylesheets are loaded in the footer for performance reasons (i.e. they are only loaded when they are needed, and to know if they are needed, the plug-in needs to wait until the page’s mark-up has been generated). As such, I’d recommend just ignoring the invalidation error.

    However, if you do want to avoid stylesheets in the footer, you can disable the plug-in’s CSS (from general options) and then copy the contents of /css/eventorganiser-front-end.css (see https://github.com/stephenharris/Event-Organiser/blob/2.3.2/css/eventorganiser-front-end.css) and copy it into your theme’s style.css.

    Stephen Harris
    #7960

    I’d rather have better performance! Ignore, I shall!

    Thanks for a well thought out plugin!

    Alicia St Rose
    #7991

    Your welcome 🙂

    Stephen Harris
Viewing 4 posts - 1 through 4 (of 4 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.