Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    8
    Plugin Contributions
    0

    Default Adding images beside text in centered sidebox

    I want to add a "sale" image I have beside the title for the specials for July box. So basically I want the title to look like this:

    <img src="sale" /> Monthly Specials for July <img src="sale" />.

    Any way to add this in? Thanks guys

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Adding images beside text in centered sidebox

    You need to edit a php file.

    Find: includes/modules/YOURTEMPLATE/specials_index.php

    If this file does not exist you need to create it as an override. In includes/modules/ create a new folder with the name of your template. So, now you have includes/modules/YOURTEMPLATE/

    Now find the file includes/modules/specials_index.php and copy it into /includes/modules/YOURTEMPLATE/

    So, now you do have:

    includes/modules/YOURTEMPLATE/specials_index.php

    Now edit it as follows. Find the line:

    Code:
      if ($specials_index->RecordCount() > 0) {
        $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_SPECIALS_INDEX, strftime('%B')) . '</h2>';
        $zc_show_specials = true;
    You need to put the html for your images in the following places:

    Code:
      if ($specials_index->RecordCount() > 0) {
        $title = '<h2 class="centerBoxHeading">ImageHere' . sprintf(TABLE_HEADING_SPECIALS_INDEX, strftime('%B')) . 'ImageHere</h2>';
        $zc_show_specials = true;
    The html code for the image will look something like:

    <img src="../images/pixel_trans.gif" width="1" height="1" align="left" border="0">
    but evidently different!

  3. #3
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Adding images beside text in centered sidebox

    Or do it the easy way!

    Find includes/languages/YOURTEMPLATE/english.php

    GO to about line 503 you'll see somthing like:

    Code:
      define('TABLE_HEADING_SPECIALS_INDEX', 'Monthly Specials For %s');
    Where it says 'Monthly Specials for %s' - you can add whatever you want inside the ' and the '.

    So, you can put the html for the images in there.

    Sorry to have found a confusing way of doing it first time around

 

 

Similar Threads

  1. v139h Footer text is centered, but not centered in the footer block
    By brush4hire in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 May 2012, 03:17 PM
  2. adding image beside footer banner
    By bluelightnin6 in forum General Questions
    Replies: 1
    Last Post: 25 Feb 2012, 06:15 PM
  3. Need a little help on vertically centered text in sidebox heading?
    By tolefairy in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 2 May 2008, 07:31 AM

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