Connected Internet Forum
July 04, 2009, 21:12:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the new Connected Internet Forum!
 
   Home   Help Search Login Register  
Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: How To Add Header Tabs To V0.9-1.1  (Read 8607 times)
0 Members and 1 Guest are viewing this topic.
Everton Blair
Get Paid To Surf
Administrator
Sr. Member
*****

Karma: +9/-1
Offline Offline

United Kingdom United Kingdom

Posts: 465



View Profile WWW
« on: February 28, 2007, 18:36:44 PM »

I haven't made much progress on creating version 1.2 so I've decided to give instructions here on how to add the header nav that you can see on my site.

  • Add new images

Add the images in the attached zip to the TypoXP Reloaded images folder called 'img'

  • Add tabs to style.css in your theme folder

Add the following lines to the bottom of your style.css file in the TypoXP Reloaded theme folder:

[/list]
Code:
/**********************************/

/* Navigation          */

/**********************************/

/*- Menu Tabs 6--------------------------- */

    #tabs6 {
      float:left;
      width:980px;
background: transparent url(img/typoxp-reloadedX-bg.gif) repeat-x fixed;
      font-size:93%;
      line-height:normal;
          border-bottom:1px solid #000;
      }

    #tabs6 ul {
          margin:0;
          padding:10px 10px 0 30px;
          list-style:none;
      }

    #tabs6 li {
      display:inline;
      margin:0;
      padding:0;
      }

    #tabs6 a {
      float:left;
      background:url(img/tableft6.gif) no-repeat left top;
      margin:0;
      padding:0 0 0 4px;
      text-decoration:none;
      }

    #tabs6 a span {
      float:left;
      display:block;
      background:url(img/tabright6.gif) no-repeat right top;
      padding:5px 15px 4px 6px;
      color:#FFF;
      }

    /* Commented Backslash Hack hides rule from IE5-Mac \*/

    #tabs6 a span {float:none;}

    /* End IE5-Mac hack */

    #tabs6 a:hover span {
      color:#FFF;
      }

    #tabs6 a:hover {
      background-position:0% -42px;
      }

    #tabs6 a:hover span {
      background-position:100% -42px;
      }

      #tabs6 #current a {
              background-position:0% -42px;
      }

      #tabs6 #current a span {
              background-position:100% -42px;
      }

  #tabs6 .current_page_item a {
              background-position:0% -42px;
      }

      #tabs6 .current_page_item a span {
              background-position:100% -42px;
      }

  #tabs6 #current {
              background-position:0% -42px;
      }

      #tabs6 #current span {
              background-position:100% -42px;
      }

  #tabs6 .current_page_item {
              background-position:0% -42px;
      }

      #tabs6 .current_page_item span {
              background-position:100% -42px;
      }

  • Add The Tabs you want to header.php in your theme folder

near the end of your header.php file you should see:

Code:
<body>
<div id="container">

Directly below this is where you need to add the tags.  the tabs need to be wrapped in div and a ul like below - basically it's just a 'list'.  e.g.

Code:
<div id="tabs6">                 
                       <ul>
<li><a href="/Subscribe/" title="Subscribe Now"><span>Subscribe</span></a></li>
<li><a title="Home Page" href="<?php bloginfo('siteurl'); ?>"><span>Home</span></a></li>
<li><a href="/about/"><span>About</span></a></li>
<li><a href="/archives/"><span>Archives</span></a></li>
<li><a href="/forum" target="_blank"><span>Forum</span></a></li>
                    </ul>
                </div>
    Will create tabs for subscribe, home, about, archives, forum.  You can add as many tabs as you like.


If you have any problems then post them here.
Logged

beldorian
Newbie
*

Karma: +0/-0
Offline Offline

United States United States

Posts: 19


View Profile WWW
« Reply #1 on: March 04, 2007, 23:44:55 PM »

Hey there Everton - Thanks for posting this, I have been anxious to try to add something like this to the site.  Keep up the great work!
Logged
beldorian
Newbie
*

Karma: +0/-0
Offline Offline

United States United States

Posts: 19


View Profile WWW
« Reply #2 on: March 05, 2007, 00:41:09 AM »

Was able to get the tabs up & running without too much trouble.  I did miss the img.zip file at first though, but once I downloaded it, the tabs went in just fine.

I have some code to modify the alt for the tabs if folks are interested, feel free to get in touch with me at admin at bloglyne dot com
Logged
Everton Blair
Get Paid To Surf
Administrator
Sr. Member
*****

Karma: +9/-1
Offline Offline

United Kingdom United Kingdom

Posts: 465



View Profile WWW
« Reply #3 on: March 05, 2007, 06:51:53 AM »

I have some code to modify the alt for the tabs if folks are interested, feel free to get in touch with me at admin at bloglyne dot com

What did you change?
Logged

beldorian
Newbie
*

Karma: +0/-0
Offline Offline

United States United States

Posts: 19


View Profile WWW
« Reply #4 on: March 05, 2007, 13:37:44 PM »

How do I add the code: box so that I can print the code in a post?
Logged
Everton Blair
Get Paid To Surf
Administrator
Sr. Member
*****

Karma: +9/-1
Offline Offline

United Kingdom United Kingdom

Posts: 465



View Profile WWW
« Reply #5 on: March 05, 2007, 18:55:39 PM »

How do I add the code: box so that I can print the code in a post?
just wrap it in <code> </code> on your blog
Logged

beldorian
Newbie
*

Karma: +0/-0
Offline Offline

United States United States

Posts: 19


View Profile WWW
« Reply #6 on: March 07, 2007, 01:24:40 AM »

Here is the code I modified for the tabs - you will notice the differences in the
Code:
<a title="">
areas - it is nothing much, but it can be a quick and easy way to provide a more personal touch.

Hope this adds something of value.


Code:
      <div id="tabs6">                 
         <ul>
            <li><a title="Subscribe to <?php bloginfo('name'); ?>" href="/and-he-thought-you-should-subscribe-now/"><span>Subscribe</span></a></li>
            <li><a title="<?php bloginfo('name'); ?> Home" href="<?php bloginfo('siteurl'); ?>"><span>Home</span></a></li>
            <li><a title="About <?php bloginfo('name'); ?>" href="/about/"><span>About</span></a></li>
<!-- link busted don't know why <li><a title="<?php bloginfo('name'); ?> Archives" href="/archives/"><span>Archives</span></a></li> -->
            <li><a title="<?php bloginfo('name'); ?> Forum" href="/forum" target="_blank"><span>Forum</span></a></li>
         </ul>
      </div>
Logged
Pages: [1] 2 3 4   Go Up
  Print  
 
Jump to:  

tests and reviews Headset ReviewsPrice comparison at dooyoo Rightmove
Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.06 seconds with 20 queries.