Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 08:00 am EDT

Geeklog Forums

Meta Tag Help Needed


Status: offline

Tech_Z

Forum User
Junior
Registered: 01/14/08
Posts: 30
Location:Soquel, California
Hi I need a little help with updating my header.thtml I read this post http://www.geeklog.net/faqman/index.php?op=view&t=40 and it states we should add a small and to the punch meta tag there in the header. I'm not quite sure if this was written for GL 1.4.1 or if i'm just a noob.
Anyhow this code is what the post says to add I just don't know where it goes
Text Formatted Code
<meta name="description" content="Geeklog is an opensource content management system.">
Take this and place it in the <head> section of the header.thtml

If this is my header.thml code where would I place it?

Text Formatted Code
<!-- Start of header.thtml -->
    <div id="gl_container">
        <div id="gl_header">
            <div class="header-flag-n-search">
<?php global $_USER; if (isset($_USER['uid']) && $_USER['uid'] > 1) { ?>
                        <a href="{site_url}/usersettings.php?mode=edit">
                            <img src="{layout_url}/images/myaccount.png" alt="{lang_myaccount}" title="{lang_myaccount}"{xhtml}></a>                        <a href="{site_url}/users.php?mode=logout">
                            <img src="{layout_url}/images/logout.png" alt="{lang_logout}" title="{lang_logout}"{xhtml}></a>&nbsp;
<?php } else { ?>
                        <a href="{site_url}/users.php?mode=new">
                            <img src="{layout_url}/images/newuser.png" alt="{lang_newuser}" title="{lang_newuser}"{xhtml}></a>                        <a href="{site_url}/users.php?mode=login">
                            <img src="{layout_url}/images/login.png" alt="{lang_login}" title="{lang_login}"{xhtml}></a>&nbsp;
<?php } ?>
                <form method="get" action="{site_url}/search.php">
                    <div>
                        <input id="header-textbox" type="text" name="query" maxlength="255" value="Search" title="Search" onfocus="if (this.value=='Search')this.value='';" onblur="if(this.value=='')this.value='Search';"{xhtml}><input type="hidden" name="type" value="all"><input type="hidden" name="mode" value="search"{xhtml}>
                    </div>
                </form>
            </div> <!-- end of header-flag-n-search  -->
            {logo_block}
        </div> <!-- end of gl_header -->

        <div id="gl_menu">
            <ul>
                {menu_elements}
            </ul>
        </div> <!-- end of gl_menu -->

        <div id="gl_wrapper">
            <div id="{gl_content}">
                <div class="welcomeanddate-text">
                    <span class="gl_user-menu">
<?php global $_USER; if (isset($_USER['uid']) && $_USER['uid'] > 1) { ?>
                        <a href="{site_url}/users.php?mode=logout">{lang_logout}</a><br{xhtml}>
                        <a href="{site_url}/usersettings.php?mode=edit">{lang_myaccount}</a>
<?php } else { ?>
                        <a href="{site_url}/users.php?mode=login">{lang_login}</a><br{xhtml}>
                        <a href="{site_url}/users.php?mode=new">{lang_newuser}</a>
<?php } ?>
                    </span>
                    <p>
                        <a href="{site_url}">{welcome_msg}</a><br{xhtml}>
                        {datetime}
                    </p>
                </div>
<!-- START OF CONTENT AREA -->
                <a name="content-start" id="content-start"></a><!--for screenreaders -->
                {content}
<!-- End of header.thtml -->
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
<meta> tags go into the <head> section of an HTML document. Your header.thtml should have one - just check the provided header.thtml of the Professional theme.

bye, Dirk
 Quote

Status: offline

Tech_Z

Forum User
Junior
Registered: 01/14/08
Posts: 30
Location:Soquel, California
Whoa I just realized the chameleon theme header.thtml differs from the professional. It was there the whole time.

thanks, Dirk
 Quote

All times are EDT. The time is now 08:00 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content