Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007
    Posts
    72
    Plugin Contributions
    0

    Default Adding code to <head> tags in ezpages

    Hi,

    I want to add a few items within the <head> tags on a single ezpage. These aren't needed on other pages so don't want to add it to my overall site header.

    [FONT=Courier New]<script src="scripts/mootools.v1.11.js" type="text/javascript"></script>
    <script src="scripts/jd.gallery.js" type="text/javascript"></script>
    <link rel="stylesheet"...[/FONT]
    [FONT=Courier New][/FONT]
    [FONT=Courier New]Is this possible?[/FONT]
    [FONT=Courier New][/FONT]
    [FONT=Courier New]thanks,
    Don[/FONT]

  2. #2
    Join Date
    Nov 2006
    Posts
    105
    Plugin Contributions
    0

    Default Re: Adding code to <head> tags in ezpages

    There is a way to do it. I believe you can just check for the base page value, and then create a PHP "if" statement.

    Either do a search in this forum for "determine current url" or Google something like "PHP determine URL".

    Each EZPage has a specific chapter, so just do the comparison in the HTML header section.

    <?PHP

    if (url='XXX') {

    echo '<script> blah blah blah'
    }

    ?>
    DMFelder | Visit GreatApparelForYou.com for Chicago Direct to Garment printing and Chicago Screen Printing and for Funny Tees and shirts go to gafy.com. We also have Eco-Friendly Printing services.

 

 

Similar Threads

  1. Adding Code to HEAD and BODY tags?
    By redpanda in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 3 Nov 2021, 12:02 PM
  2. v151 Adding script between <head> tags
    By Togfather in forum General Questions
    Replies: 2
    Last Post: 29 Jul 2014, 06:07 AM
  3. non-english head tags goes out of <head></head>
    By Jerry5763837 in forum General Questions
    Replies: 5
    Last Post: 5 Jun 2012, 02:21 PM
  4. I need to place some code between the HEAD tags..
    By Scott_C in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Dec 2009, 05:16 AM
  5. Editing html in <head> </head> tags ??
    By nepton in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jul 2006, 05:33 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
  •  
disjunctive-egg