Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default new sidebox change text to *.gif

    Hi there,
    I've created a new sidebox called Good to know.
    I've created a header (gif file) for it called goodtoknowhead.gif

    How do I change the text currently displayed to use my custom image?

    Hope this makes sense!!

    Thanks

    Maxy
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  2. #2
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: new sidebox change text to *.gif

    Ok I got the image working for the good to know heading.
    I forgot to add the image to my template file and update the stylesheet headings.php file.

    Somehow the text "Good to Know" is below the sidebox image. Even though it's not visible it's there and it's making any page I place under the good to know heading be out of alignment.

    Do you know how I can get rid of the text?
    I was given instructions for a similar issue in another thread but this is really doing my head in. I just can't work it out.

    please help!!

    Maxy
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	text visible.jpg 
Views:	64 
Size:	14.4 KB 
ID:	8741   Click image for larger version. 

Name:	no text visible.jpg 
Views:	60 
Size:	10.9 KB 
ID:	8742  
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: new sidebox change text to *.gif

    Use the Images for Titles mod from Free Addons for your sidebox heading. That automatically handles the headings where you have images properly named and leaves the rest alone.

    Or you can change the define for your new sidebox title to be the image instead of text:
    PHP Code:
    define('YOUR_SIDEBOX_TITLE'zen_image(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/your_sidebox_image.gif''Your Sidebox Heading')); 
    Save the image file in /includes/templates/your_template/buttons/english/.

  4. #4
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: new sidebox change text to *.gif

    Quote Originally Posted by gjh42 View Post
    Use the Images for Titles mod from Free Addons for your sidebox heading. That automatically handles the headings where you have images properly named and leaves the rest alone.

    Or you can change the define for your new sidebox title to be the image instead of text:
    PHP Code:
    define('YOUR_SIDEBOX_TITLE'zen_image(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/your_sidebox_image.gif''Your Sidebox Heading')); 
    Save the image file in /includes/templates/your_template/buttons/english/.

    Hi there,
    where do i find define('YOUR_SIDEBOX_TITLE', zen_image(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/your_sidebox_image.gif', 'Your Sidebox Heading'))

    I searched for zen_image(DIR_WS_TEMPLATE . 'buttons/' . in Admin> dev tools but it didn't show up!!
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: new sidebox change text to *.gif

    You won't find it. You need to find the existing define for whatever the custom sidebox title is and change it similar to the example. I can't write it exactly for you because I don't know your sidebox id, image filename, etc.

    Use Tools > Developers Toolkit to find the file where the current sidebox title text is defined.

  6. #6
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: new sidebox change text to *.gif

    Thank you!!

    I think I've found it :)
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

 

 

Similar Threads

  1. Need to Change Sidebox Header Text
    By spiralmedia in forum Basic Configuration
    Replies: 1
    Last Post: 21 Jan 2010, 06:44 PM
  2. How do I change sidebox text / wording
    By LadyMorgana in forum General Questions
    Replies: 7
    Last Post: 3 Nov 2008, 01:19 PM
  3. Change zen cart defined icon.gif to text?
    By nev in forum General Questions
    Replies: 0
    Last Post: 1 Jun 2008, 11:02 PM
  4. Change the Manufacturers sidebox to text links
    By hipmaster in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 10 May 2006, 02:29 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