Results 1 to 9 of 9
  1. #1
    Senior Member Paul Murray's Avatar
    Join Date
    Sep 2010
    Location
    Manchester
    Posts
    902
    Thanks
    9
    Thanked 20 Times in 18 Posts

    Head tags 'n' stuff

    Currently I'm working on a page template for my blog that will act as the landing page and will feature a JQuery slideshow. Since I'm using Wordpress, I have left the get_header() call in the template as it includes my navigation and such like.

    What's the best way of linking to scripts and the CSS for this one page? Should they ideally be added to the head tag? I don't see the point in linking to content that will only be used on one page.

  2. #2
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    I believe you can make a stand-alone template that acts as a home page only. Then you could link the script into that rather than including it in the header file.

  3. #3
    Senior Member Paul Murray's Avatar
    Join Date
    Sep 2010
    Location
    Manchester
    Posts
    902
    Thanks
    9
    Thanked 20 Times in 18 Posts
    A stand-alone template as in a separate index page, or a template that's used through Wordpress (which is the method I'm employing now).

    Do the links absolutely have to be included inside the head tags or can I just link to them outside the tags on that particular page? What would happen if I added extra head tags just to the template file?

  4. #4
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Javascript doesn't have to go in the head tags. In fact many people recommend they go before the closing body tag because it makes pages load faster. Just watch out if it uses document.write to insert part of the page's content as you may then have trouble.

    CSS links should go before the closing head tag.

    You shouldn't add extra head tags either. That just doesn't make any sense.

  5. #5
    Senior Member Paul Murray's Avatar
    Join Date
    Sep 2010
    Location
    Manchester
    Posts
    902
    Thanks
    9
    Thanked 20 Times in 18 Posts
    Thanks, that's just what I needed to know.

  6. #6
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Quote Originally Posted by Paul Murray View Post
    Thanks, that's just what I needed to know.
    You are welcome.

    One day I'm gonna wean you lot off Wordpress. The template logic is just fundamentally flawed in my opinion

  7. #7
    Senior Member Paul Murray's Avatar
    Join Date
    Sep 2010
    Location
    Manchester
    Posts
    902
    Thanks
    9
    Thanked 20 Times in 18 Posts
    I really hate web design though. I enjoy the coding side and the final outcome but the hassle of making everything compatible across multiple platforms and browsers just fills me with dread. Then there's ensuring everything loads quickly (and correctly), and let's not forget SEO.

    If I could make do without a blog I'd happily forget Wordpress and pay for a unique, custom design.

  8. #8
    Moderator Corrosive's Avatar
    Join Date
    May 2010
    Location
    Bristol, UK
    Posts
    980
    Thanks
    18
    Thanked 27 Times in 20 Posts
    Fair comments. The CMS we use is very flexible indeed and no diving into the guts of the CMS to make things work. You basically port in a plain HTML/CSS based design, split it into chunks for easy updating and then apply your templates to the content. ModX >> Content Management System, Framework, Platform and More | MODX my saviour in web design!

    Cross-browser is a bitch though and no CMS will stop you having to do that. Getting it right is a balance between knowing the pitfalls from experience and accepting that there will always be subtle differences and working out what you can and can't live with.

    All good fun huh?

  9. #9
    Member
    Join Date
    Oct 2011
    Location
    Liverpool
    Posts
    88
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by Corrosive View Post

    Cross-browser is a bitch though
    Ditto that - we just had to make a complex online aplication render perfectly in IE6 for a council. We were using IE tester at first which we've had good mileage from in the past but it doesn't always play ball and render like a standalone ie6 so in the end we set up virtual machines with xp and ie6 on them. :icon_Wall: Just felt so painful and pointless.

Similar Threads

  1. In what order should I learn this stuff?
    By bigdave in forum Website Design Forum:
    Replies: 10
    Last Post: 11-25-2011, 05:56 PM
  2. Meta Tags Analyzer
    By djb in forum SEO & Online Marketing Forum:
    Replies: 1
    Last Post: 11-12-2010, 03:46 PM
  3. Sticks his head over the desk then dives back under it!!!
    By Hansam Design in forum Introduction Forum:
    Replies: 1
    Last Post: 03-19-2010, 12:57 PM
  4. Legal stuff
    By Molly Moon in forum Graphic Design Forum:
    Replies: 6
    Last Post: 08-03-2009, 08:13 PM
  5. Head wall banging
    By dogsbody in forum Printing & Print Design Forum:
    Replies: 8
    Last Post: 04-30-2009, 02:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •