Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Posts
    67
    Plugin Contributions
    0

    Replacing HEADING_TITLE with Images

    Hi,

    I grabbed the 'About Us Page' contribution to make several new pages and everything is going well, but I want to replace the headings of the page with images from our current static site.

    I took a look at several of the pages included to create the about page and decided to make changes in the 'tpl_about_us_default.php'.

    I've commented out this line:

    <h1 id="aboutUsHeading"><?php echo HEADING_TITLE; ?></h1>

    and replaced it with this:

    <div id="bagsection"><img src="/images/tag_about.gif" alt="Radish Clutches" width="162" height="40"></div>

    I realize that I could use some CSS and insert a background image, but that would require putting some <span> tags around the <h1> tags to hide the text. I figured my way was faster.

    My concern is that the method I've chosen isn't the cleanest way of going about things. Does anyone know if I'm creating a headache for myself once the next version of ZenCart rolls out? (I'm currently running 1.3.5)

    Many thanks!

    Colin

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Replacing HEADING_TITLE with Images

    You are creating a headache.

    Define the constant HEADING_TITLE as the image in the Language file for the page.

  3. #3
    Join Date
    Jan 2006
    Posts
    67
    Plugin Contributions
    0

    Default Re: Replacing HEADING_TITLE with Images

    Thanks Kim!

    Originally I was going to make changes there, but I played rock-paper-scissors with myself and lost.

  4. #4
    Join Date
    Jan 2006
    Posts
    67
    Plugin Contributions
    0

    Default Re: Replacing HEADING_TITLE with Images

    Hi Kim,

    Sorry about the multiple questions for such a basic solution, but I'm trying to avoid any hassle in the future.

    Should I be making changes in the same place - the language files - for 'native' ZC pages (i.e. the contact us page)?

    Cheers,

    Colin

  5. #5
    Join Date
    Jan 2006
    Posts
    67
    Plugin Contributions
    0

    Re: Replacing HEADING_TITLE with Images

    Hi,

    Sorry about these continuing posts. I've been able to set header images for pages created with the 'About Us' contrib quite easily with Kim's heads up. I've also managed to insert the 'Contact Us' page in the contact_us define file (though they're not perfectly aligned to About Us and Locations pages)

    However, I'm running into a block when trying to create header images for individual categories.

    It's probably easier to see what I'm talking about here:

    http://www.radish.ca/index.php?main_page=index&cPath=5

    I would like to replace the text 'Collections' with an image. Further to that, I'd like to replace sub-categories like 'Fall Collection - 2006' with an image as well. Since these titles are all coming from a database, is this easily doable? Or would I have to go into the DB and insert the image path?

    Thanks again!

    Colin

  6. #6
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Replacing HEADING_TITLE with Images

    Since these titles are all coming from a database, is this easily doable? Or would I have to go into the DB and insert the image path?
    Sorry- not so easy. The categories menu is dynamically generated.

  7. #7
    Join Date
    Jul 2004
    Location
    Australia
    Posts
    51
    Plugin Contributions
    0

    Default Re: Replacing HEADING_TITLE with Images

    Define the constant HEADING_TITLE as the image in the Language file for the page.
    Can you please explain your instruction above for me?

    I want to have an title image for each of these pages: New, Featured, Specials. I tried going into:

    /includes/languages/english/specials.php
    /includes/languages/english/products_new.php
    /includes/languages/english/products_all.php

    and changed this:
    Code:
    define('HEADING_TITLE', 'new products');
    to this:
    Code:
    define('HEADING_TITLE', 'my_new_image.gif');
    but all that did was print those words "my_new_image.gif" as the new heading title for that page. Not sure what else to try... :)

    thanks!
    Jen

    Red Instead design. print. web. photography.

 

 

Similar Threads

  1. v151 replacing images with my own
    By cyberbaffled in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 2 Jul 2013, 05:57 AM
  2. Replacing Categories sidebar with images
    By teraysay in forum Basic Configuration
    Replies: 2
    Last Post: 2 Mar 2009, 08:02 PM
  3. Replacing Button images with custom...
    By liquidSpin in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Oct 2008, 10:07 PM
  4. Replacing category text with images
    By d'Anjou in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Apr 2008, 10:45 AM
  5. Replacing Links with Images
    By bfwdesigns in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 14 Sep 2006, 01:14 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