Thread: Floating Images

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Apr 2006
    Posts
    265
    Plugin Contributions
    0

    Default Re: Floating Images

    Those yellow-background pop-up boxes are the images' title tags. In order to get rid of them, you'll need to remove the titles from the image elements.

    The easiest way I can think of to fix this is in your includes/functions/html_output.php file, comment out this line (around line 201):

    PHP Code:
          $image .= ' title=" ' zen_output_string($alt) . ' "'
    BrandTim

  2. #12
    Join Date
    Aug 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Floating Images

    Thank you, I did make the changes there but still getting the alt titles, will have to look for more places where this might be coded, maybe in a global or default area?

    Again though, thank you, your, and everyone's assistance has been greatily appreciated!!!

  3. #13
    Join Date
    Apr 2006
    Posts
    265
    Plugin Contributions
    0

    Default Re: Floating Images

    Important: Leave the ALT tags. You want to remove the TITLE tags.

    The Image Handler mod must be using it's own piece of code to make the image HTML. In your Developer's Tool Kit, search for 'title'. Look for code similar to the one above. As you find the code, remove the title tag, and see if that fixes it. If not, restore the code and move on to the next one. It's a little tedious, but you'll definitely find it this way.

    BrandTim

  4. #14
    Join Date
    Sep 2007
    Location
    Singapore
    Posts
    18
    Plugin Contributions
    0

    Default Re: Floating Images

    Quote Originally Posted by schnieber View Post
    Thank you, I did make the changes there but still getting the alt titles, will have to look for more places where this might be coded, maybe in a global or default area?

    Again though, thank you, your, and everyone's assistance has been greatily appreciated!!!
    Hi Schnieber,

    Try this:
    Open your /includes/functions/html_output.php

    Watch out for line from 120 to 127

    PHP Code:
        $image '<img src="' zen_output_string($src) . '" alt="' zen_output_string($alt) . '"';

        if (
    zen_not_null($alt)) {
          
    $image .= ' title=" ' zen_output_string($alt) . ' "';
        } 
    Change to:

    PHP Code:
        $image '<img src="' zen_output_string($src) . '" alt="' zen_output_string($alt) . '"';

        if (
    zen_not_null($alt)) {
          
    $image .= ' title=""';
        } 
    And watch out for line from 196 to 203

    PHP Code:
        $image '<img src="' zen_output_string($src) . '" alt="' zen_output_string($alt) . '"';

        if (
    zen_not_null($alt)) {
          
    $image .= ' title=" ' zen_output_string($alt) . ' "';
        } 
    Cheng to:

    PHP Code:
        $image '<img src="' zen_output_string($src) . '" alt="' zen_output_string($alt) . '"';

        if (
    zen_not_null($alt)) {
          
    $image .= ' title=""';
        } 
    Regards
    Cheng King Xiang

  5. #15
    Join Date
    Sep 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Floating Images

    I just wanted to say thanks guys for detailing this problem and solution.

    i had no idea what the problem was until i read this.


 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Floating Sideboxes
    By REVIVEIT in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Jun 2012, 04:49 AM
  2. Script for floating the large image over smaller images on product info page
    By sjk1000 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Mar 2010, 10:17 PM
  3. Floating images in IE7
    By deathman in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Nov 2008, 03:51 PM
  4. 2 images floating in header how?
    By eisot in forum Addon Templates
    Replies: 4
    Last Post: 19 Jun 2007, 10:24 AM
  5. Floating Home
    By johnga in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 1 Jul 2006, 05:12 PM

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