Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2008
    Posts
    14
    Plugin Contributions
    0

    red flag Changing page title

    How do I change "New Products for January" to a different heading?

    Thanks

    Traci

    http://www.shopcastore.com/

  2. #2
    Join Date
    Dec 2005
    Location
    Cincinnati Ohio
    Posts
    1,026
    Plugin Contributions
    13

    Default Re: Changing page title

    You would need to customize the defined constant for this ...

    A search on the text:
    New Products For

    in the Tools ... Developers Tool Kit ...

    utilizing the bottom input box would find this in your main language file:
    Located in includes --> languages --> english.php around line 500

    Code:
    define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
    Copying this to your templates and overrides directory would allow you to customize the text so that it doesn't include the name of the month in the module:
    Code:
      
    if ($new_products->RecordCount() > 0) { 
        if (isset($new_products_category_id) && $new_products_category_id != 0) { 
          $category_title = zen_get_categories_name((int)$new_products_category_id); 
          $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . ($category_title != '' ? ' - ' . $category_title : '' ) . '</h2>'; 
        } else { 
          $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . '</h2>'; 
        } 
        $zc_show_new_products = true; 
      }
    where it is inserting the name into the define of that constant ...

    Once changed, it will read the way you need it to read for your particular site
    PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
    Business Class Web Hosting - Linux and cPanel Powered

 

 

Similar Threads

  1. Changing the search bar title to a simple page title.
    By Skodster in forum General Questions
    Replies: 2
    Last Post: 20 Jul 2012, 08:23 PM
  2. Changing Title Page
    By Mad Cow in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Jan 2011, 11:20 PM
  3. Changing page 2 title
    By brock shumny in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 22 Jun 2009, 03:14 AM
  4. Changing page title
    By Linda5630 in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 13 Sep 2006, 09:25 PM

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