Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37
  1. #11
    Join Date
    Mar 2011
    Location
    Netherlands
    Posts
    85
    Plugin Contributions
    0

    Default Re: Images missing "ALT" text

    Quote Originally Posted by RescoCCC View Post
    You would edit:

    @RescoCCC, I applied the changes you suggested but after that my
    logo was'nt there anymore, so I have changed it all back as it was.

    ceesdk

  2. #12
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Images missing "ALT" text

    <!--<div id="logo"></div>--> this is your problem. Images called for out of the style sheet do not have alt text.



    Put your logo in your templates images folder and name it logo.gif
    Remove this <!--<div id="logo"></div>-->

    and add this.

    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

    how to add alt names to my images here

    PS your alt text was not missing as you never added it
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Play with it long enough and you will break it.

  3. #13
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Images missing "ALT" text

    Then edit this

    #logoWrapper {
    /*background-image : url(../images/header_bg.jpg);
    background-repeat : repeat-x;
    */
    background-color : #ffffff;
    width : 1100px;
    height : 148px;
    }

    It baffles me as to why you would add image to the logo wrapper

    All you needed to do was edit the logo.gif that was already there and make changes to the size in your includes/languages/english/your_template/header.php
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Play with it long enough and you will break it.

  4. #14
    Join Date
    Mar 2011
    Location
    Netherlands
    Posts
    85
    Plugin Contributions
    0

    Default Re: Images missing "ALT" text

    Quote Originally Posted by usernamenone View Post
    Then edit this

    #logoWrapper {
    /*background-image : url(../images/header_bg.jpg);
    background-repeat : repeat-x;
    */
    background-color : #ffffff;
    width : 1100px;
    height : 148px;
    }

    It baffles me as to why you would add
    I am sorry to "baffles you", what ever it means, but I am not a php programmer and just trying to use Zen-cart. Which I like to do, only sometimes I need a little help !

    I also need help with a printing problem printing the invoices. My logo is to small on the print (see attachment) and I can't find the
    file or place to change the width on the print.

    regards, ceesdk
    Attached Images Attached Images  

  5. #15
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Images missing "ALT" text

    I am sorry to "baffles you", what ever it means, but I am not a php programmer and just trying to use Zen-cart. Which I like to do, only sometimes I need a little help !

    This is a xhtml not php

    there are wrappers and inside those are content. You chose to use the wrapper to insert an image.... not the #logo style. (which by the way only needed to be removed from the rest of the styles and singled out)..... works but not the way to be done.

    admin>includes>languages>english.php


    define('HEADER_ALT_TEXT', 'Admin Powered by Zen Cart :: The Art of E-Commerce');
    define('HEADER_LOGO_WIDTH', '200px');
    define('HEADER_LOGO_HEIGHT', '70px');

    I find it best to use only white background with simple text as to not use a bunch of ink to print invoices out........... They just need to know it came from you.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Play with it long enough and you will break it.

  6. #16
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Images missing "ALT" text

    It baffles me as to why you would add image to the logo wrapper
    Uh, that's the way Zen Cart codes a header image. In the #logoWrapper.

  7. #17
    Join Date
    Mar 2011
    Location
    Netherlands
    Posts
    85
    Plugin Contributions
    0

    Default Re: Images missing "ALT" text

    Quote Originally Posted by usernamenone View Post
    Then edit this

    #logoWrapper {
    /*background-image : url(../images/header_bg.jpg);
    background-repeat : repeat-x;
    */
    background-color : #ffffff;
    width : 1100px;
    height : 148px;
    }
    After your suggested changes my logo/banner is gone and I have only a white space.

  8. #18
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Images missing "ALT" text

    Quote Originally Posted by ceesdk View Post
    After your suggested changes my logo/banner is gone and I have only a white space.
    That's what the /* in front of background-image: url(../images/header_bg.jpg); does.

  9. #19
    Join Date
    Mar 2011
    Location
    Netherlands
    Posts
    85
    Plugin Contributions
    0

    Default Re: Images missing "ALT" text

    Quote Originally Posted by usernamenone View Post

    admin>includes>languages>english.php


    define('HEADER_ALT_TEXT', 'Admin Powered by Zen Cart :: The Art of E-Commerce');
    define('HEADER_LOGO_WIDTH', '200px');
    define('HEADER_LOGO_HEIGHT', '70px');

    I find it best to use only white background with simple text as to not use a bunch of ink to print invoices out........... They just need to know it came from you.
    Well , I like to have some better appearance on the invoice, so I have the following in admin>includes>languages>english.php :

    define('HEADER_ALT_TEXT', 'Airlinersbuyweb.com :: Buying Aircraft pictures on Canvas');
    define('HEADER_LOGO_WIDTH', '1100px');
    define('HEADER_LOGO_HEIGHT', '148px');
    define('HEADER_LOGO_IMAGE', 'logo.jpg');

    cees

  10. #20
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Images missing "ALT" text

    Quote Originally Posted by ceesdk View Post
    After your suggested changes my logo/banner is gone and I have only a white space.
    That is because you did not follow the rest of the directions

    !--<div id="logo"></div>--> this is your problem. Images called for out of the style sheet do not have alt text.



    Put your logo in your templates images folder and name it logo.gif
    Remove this <!--<div id="logo"></div>-->

    and add this.

    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Play with it long enough and you will break it.

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. How do I write alt="" text for my site Logo Image?
    By SandraSD in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 9 Feb 2011, 07:21 PM
  2. Adding the "ALT" text under images.
    By mariuskem in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Jan 2009, 02:26 PM
  3. Replies: 1
    Last Post: 27 Jan 2009, 09:17 PM
  4. Change "ALT Tags" on images
    By directpc in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 May 2008, 01:27 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