Need help adding one piece of html code into my site

Discussion in 'HTML & Website Design' started by daabomb2002, May 29, 2007.

  1. #1
    i have got my H1 and H2 meta tags ready to go here:



    <H1>Unblock Myspace</H1>
    <P>Unblock Myspace, Myspace Proxy Unblock</P>
    <HR>
    <H2>Unblock Myspace</H2>
    <P>Unblock Myspace, Myspace Proxy Unblock</P>




    But i can't seem where to put this code in my template. The h1 and h2 fonts,color etc is all setup in the main.css style sheet. But i don't want to use the stylesheet.



    I opened the header.tpl file and I placed the code above under the "head" tag and it works fine,but then when you browse to my website,the H1 text is showing right at the bottom of the page with a whitebackground.
    How can I make the H1 text invisible and not displayed to website visitors?


    Second question,where do i put the code. do i put it under this tag:




    <head>



    or do i put it under this tag

    </head>
    <body>



    or under this tag:



    <div id="page">
    <div id="advert">
    {include file="advert.tpl"}



    or under this tag:



    </div>
    <div id="header">
    <a href="{$smarty.const.DOC_ROOT}/"><img src="{$smarty.const.FULL_TEMPLATE_PATH}/images/logo.gif" alt="{$smarty.const.DIRECTORY_TITLE|escape|trim}" /></a>

    </div>
     
    daabomb2002, May 29, 2007 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What are you using that is using the Smarty template system?

    And just so you know, they're not meta tags, they're heading tags.

    H1, H2, H3, H4, H5 and H6 are heading elements, and belong in the BODY section of a Web page. META is a meta element, and belongs in the HEAD section of a Web page.
     
    Dan Schulz, May 29, 2007 IP
  3. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #3
    What's the url?
     
    nabil_kadimi, May 30, 2007 IP
  4. daabomb2002

    daabomb2002 Peon

    Messages:
    431
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    my url is www.linkdumptube.com


    can you view my source code on my site and post here exactly where i put the h1 and h2 tags please.

    Thanks


     
    daabomb2002, May 30, 2007 IP
  5. luckybee

    luckybee Peon

    Messages:
    151
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hiding text is looked down by search engines. I suggest you put those in the actual meta tags. If you don't want it to be displayed using "display:none" is CSS hides an element.
     
    luckybee, May 30, 2007 IP