Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Idea or Suggestion Header Change Question

    I just want two lines in the middle of header. No logo or background images. However, when you hover header area, I want it to link to home page.

    Is this possible?

  2. #2
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Header Change Question

    in you languages folder your language.php in my case it would be english.php add this code somewhere that you will remember.

    define('HEADER_HOME_LINK', 'Home');// home can be whatever text you want it to be as long as the 'and' is there.

    Then where you want you link in your header add this code

    <?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_HOME_LINK; ?></a>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Play with it long enough and you will break it.

  3. #3
    Join Date
    Jan 2011
    Posts
    196
    Plugin Contributions
    0

    Default Re: Header Change Question

    Thank you! This works.

    However, what if I want two lines that contains the same link? Each line has it's own class so I can customize the appearance....

    Quote Originally Posted by usernamenone View Post
    in you languages folder your language.php in my case it would be english.php add this code somewhere that you will remember.

    define('HEADER_HOME_LINK', 'Home');// home can be whatever text you want it to be as long as the 'and' is there.

    Then where you want you link in your header add this code

    <?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_HOME_LINK; ?></a>

  4. #4
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Header Change Question

    I'm not sure exactly what you want to do but this may help

    <?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_HOME_LINK; ?> Then you could switch to html after the php code and before the link ends and it will all be the same link</a>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Play with it long enough and you will break it.

 

 

Similar Threads

  1. A Header Question
    By Smittysholdings in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Aug 2010, 03:31 AM
  2. Header Question
    By sunwest in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 11 Dec 2009, 06:40 PM
  3. Change header to flash header
    By bettsaj in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Jul 2009, 01:59 PM
  4. header question
    By sped1530 in forum General Questions
    Replies: 1
    Last Post: 6 Jul 2008, 04:55 AM
  5. Another Change Header on Category Question
    By TinaS in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Apr 2007, 09:18 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR