Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: stupid question...

    Zen Cart automatically makes an <h1> heading for each page, using the category name, page name, etc. You are not supposed to have two <h1> tags on one page.

    However, if you want to change the tagline, you could wrap an if() test around the HEADER_SALES_TEXT define and provide alternate defines based on the category.
    Something like
    PHP Code:
    if ((int)$cPath ==12) {
      
    define('HEADER_SALES_TEXT''The Hustlelusion, Fashion Belts by Designer X!');
    }elseif((int)
    $cPath ==13) {
      
    define('HEADER_SALES_TEXT''The Hustlelusion, Mens Belts of High Quality Leather!');
    }elseif((int)
    $cPath ==14) {
      
    define('HEADER_SALES_TEXT''The Hustlelusion, Stretch Belts that fit you!');
    }else{
      
    define('HEADER_SALES_TEXT''The Hustlelusion, Fashion Belts, Mens Belts, Stretch Belts, and Leather Belts at an Affordable Price!'); 
    This will change the tagline based on the current top category.
    The last statement is a catchall for any page you do not have individually defined.

  2. #12
    Join Date
    Sep 2010
    Posts
    38
    Plugin Contributions
    0

    Default Re: stupid question...

    I tried the lower case h, didn't work. I saw gjh42's reply and thought maybe having the whole h1 tag was a mistake so i deleted it. still nothing shows next to the logo...

    btw gjh42 thanks for the nifty little trick! i might have to try it one day.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. stupid question
    By loproracecars in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 21 Apr 2010, 06:19 AM
  2. stupid question
    By him77 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Sep 2008, 07:42 AM
  3. stupid question...
    By c-howdy in forum General Questions
    Replies: 2
    Last Post: 8 Dec 2007, 02:29 AM

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