How to add Page Title?

Discussion in 'HTML & Website Design' started by Arcos, Jan 11, 2010.

  1. #1
    Hi

    Can anyone please advice me on how to add a proper page title to this page?

    www.hiddentrails.co.uk

    The current page title comes from the Home on the menu bar!

    Any adivce appreciated

    Thanks
     
    Arcos, Jan 11, 2010 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    <title>Hidden Trails - your partner in world travel</title>
    Code (markup):
    cheers,

    gary
     
    kk5st, Jan 11, 2010 IP
  3. -Cash-

    -Cash- Active Member

    Messages:
    894
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    80
    #3
    This is your source code, you can set your title between <title> and </title>


    !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <base href="http://www.hiddentrails.co.uk/" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="robots" content="index, follow" />
    <meta name="keywords" content="horse riding holidays, adventure holidays, luxury holidays, Vietnam, Jordan, Mayanmar, Africa, Botswana, South Africa, India, Tibet, Bhutan, Nepal, Peru, Argentina, Costa Rica, Nicaragua" />
    <meta name="description" content="Hidden Trails - Your Partner in World Travel. Specialist holiday tour operator offering fabulous holiday destinations around the world in some of the most beautiful locations." />

    <title>Home</title>


    <link href="/feed/rss.html" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
    <link href="/feed/atom.html" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
    <link rel="stylesheet" href="/components/com_customproperties/css/customproperties.css" type="text/css" />
     
    -Cash-, Jan 11, 2010 IP
  4. kompyuter

    kompyuter Active Member

    Messages:
    116
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    What do you mean? Do you mean the meta title of the page title?
     
    kompyuter, Jan 11, 2010 IP
  5. BabBarDeL

    BabBarDeL Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I`m not sure if it`s so simple. Probabl you use a cms. If you use Joomla you can change it from Administrator Panel. If don`t tell us what you use. Maybe you need to change some php files - basicaly try to find something with <title> tag.
     
    BabBarDeL, Jan 11, 2010 IP
  6. mrpaisa

    mrpaisa Guest

    Messages:
    741
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Add page title
    home.php won't be static page. it will do everything index.php does expect that'll be used only for the homepage.which give you the opportunity to edit & to have those edit appear only on the homepage.
     
    mrpaisa, Jan 17, 2010 IP
  7. sliweran

    sliweran Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    what do you use to build your website. do you use CMS, blog, or else, such the coding of programming languages? actually you can edit index.php but be carefull.
     
    sliweran, Jan 19, 2010 IP
  8. mrpaisa

    mrpaisa Guest

    Messages:
    741
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    The title page is the first page of your paper...so it is important to have a well formatted title page that clearly present to your page.
    <html>
    <title> TITLE OF PAGE</title>
    <body>
    ........
    </body>
    </html>
     
    mrpaisa, Jan 21, 2010 IP
  9. biscayne

    biscayne Peon

    Messages:
    162
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Hi,,,

    using Title HTML tag for giving title for your website for ex.
    <title>..text...</title>

    I'm using this way....U try it...
     
    biscayne, Jan 21, 2010 IP
  10. 1945

    1945 Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    if you want you can use php to make tittle dinamis..
     
    1945, Jan 22, 2010 IP
  11. shaibibutt

    shaibibutt Member

    Messages:
    606
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #11
    shaibibutt, Jan 22, 2010 IP
  12. Keysoft

    Keysoft Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    The title should be inserted between head section
     
    Keysoft, Jan 23, 2010 IP
  13. siyashamsudeen

    siyashamsudeen Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    put ur page title in between <title> </title> code in ur html page.....
     
    siyashamsudeen, Jan 23, 2010 IP
  14. Allder Web Design

    Allder Web Design Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    <title>Title Page Here</title>
     
    Allder Web Design, Jan 23, 2010 IP
  15. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #15
    Oops, not quite right.

    I'm wondering just how many times this needs to be repeated after my first comment. Does no one read the thread?

    cheers,

    gary
     
    kk5st, Jan 24, 2010 IP
  16. m7md_cis

    m7md_cis Peon

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #16
    <html>
    <title>Title Title Title ...</title>
    <body>
    ...................................
    </body>
    </html>
     
    m7md_cis, Jan 24, 2010 IP
  17. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #17
    I do hope you're being facetious with your umpteenth repeat of the solution, and that your lack of a head element indicates you're aware the html recommendation makes the <head> and <body> tags optional. If you knew about those being optional, why make the body element explicit?

    I trust you're not using an xhtml DTD, as those element tags are not optional, and the title element as a child of html is invalid.

    cheers,

    gary
     
    kk5st, Jan 24, 2010 IP
  18. shaibibutt

    shaibibutt Member

    Messages:
    606
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #18
    Your website is virus defected :O :O
     
    shaibibutt, Jan 24, 2010 IP
  19. Lee168

    Lee168 Guest

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Page Titles in Joomla! 1.5
    If you've already worked with Joomla! 1.5, you know that page titles are handled differently than in version 1.0. In version 1.0, if you enabled dynamic page titles (see this article for an explanation), each page would have an html title of "Site Name - Page Title". For example, the HTML title of this page is "Cory Webb's How to Joomla! - How to Display Your Page Title in Your Template - Joomla! 1.5", where "Cory Webb's How To Joomla!" is the site name, and "How to Display Your Page Title in Your Template - Joomla! 1.5" is the page title.

    In Joomla! 1.5, dynamic page titles are used by default, and the site name is not displayed in the html title. For example, if this site were running in Joomla! 1.5, you could look up in the browser's window header and see that the html title just said "How to Display Your Page Title in Your Template - Joomla! 1.5". That makes things a bit easier in terms of getting access to the page title, but it causes another problem; your site name is not part of the html title. There is an SEF Patch that enables you to modify the HTML title, but I will show you a trick for doing this in your template. Think of this as 2 how-to's in 1.

    Accessing Your Page Title from Your Template
    There are 2 objects in Joomla! 1.5 that are extremely powerful and extremely useful for doing some advanced tricks in your template. The first object is JFactory, which is basically the gateway for accessing just about anything in the Joomla! API, and the second is JDocument, which gives you access to your document's properties. Your document is usually defined as the HTML output from Joomla!, but it could also be a PDF, XML/RSS, or raw output/text. In this case, we are only concerned with the HTML output.

    To access your page title, simply add the following code to the top of your template "index.php" file:


    <?php

    $mydoc =& JFactory::getDocument();
    $mytitle = $mydoc->getTitle();

    ?>

    That's it. That's all there is to it. Pretty simple, huh? Now, to display your page title within your template, you simply add the following code anywhere in your template "index.php" file that you wish to display the page title:


    <?php echo $mytitle; ?>

    That's all there is to it. Pretty easy.
     
    Lee168, Jan 26, 2010 IP
  20. Tuscan Chef

    Tuscan Chef Member

    Messages:
    99
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #20
    Here is my tip. I checked your site. Your title is a picture and not a text.
    This looses on keyword priority.
    This is how I worked my web site HTML. It's fantastic and you can position it with Komposer....
    CAPITAL LETTER IS WHAT YOU NEED TO CHANGE.


    <td style="height: 224px;" colspan="3" rowspan="1"> <img style="width: 1024px; height: 231px;" title="PICTURE TITLE" alt="OTHER TITLE OF PICTURE" src="PHOTO">
    <div style="position: absolute; width: 700px; top: 5px; left: 25px;">
    <h1 style="font-family: Verdana;"> TITLE SENTENCE </h1>
    </div>
    <div style="position: absolute; width: 700px; top: 50px; left: 25px;">
    <h2 style="font-family: Verdana;"> <big><big>SECOND TITLE SENTENCE</big></big> </h2>
    </div>
    </td>
     
    Tuscan Chef, Jan 28, 2010 IP