Forums

No CSS/Javascript in a specifical page/post/home (5 posts)

  1. DanyHokage
    Member
    Posted 2 years ago #

    how can i do that?

  2. Edward Caissie
    Member
    Posted 2 years ago #

    I would suggest using page templates that call specific header templates.

    See these codex links for more information:
    http://codex.wordpress.org/Pages#Page_Templates
    http://codex.wordpress.org/Function_Reference/get_header

  3. DanyHokage
    Member
    Posted 2 years ago #

    well, some addons insert css/javascript into all pages... but i don't need in my home... so how can i delete this code?

  4. Edward Caissie
    Member
    Posted 2 years ago #

    If you are referring to active widgets in your sidebar adding JavaScript and/or CSS to your header then you may need to look at specific sidebar templates in the same fashion as I recommended above.

    Here is another codex page for your reading pleasure:
    http://codex.wordpress.org/Function_Reference/get_sidebar

    Although your original question implied a much more simpler issue.

  5. DanyHokage
    Member
    Posted 2 years ago #

    in
    <head>
    a lots of plugins insert some CSS or Javascript that they don't need... so i want to choose who can be in homepage and who cannot be there

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags