Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Jul 2011
    Location
    New Jersey
    Posts
    98
    Plugin Contributions
    0

    Default Change the font color in Product Listing page

    Hello All,

    How can I change the font color in my product listing page? I added
    PHP Code:
    .productListing-data {
    color:white;

    And it doesn't work at all

    Here is my product listing page:
    http://www.oleklejbzon.com/campbells...=index&cPath=1

  2. #2
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Change the font color in Product Listing page

    Find these in your stylesheet and notice Ive changed the colour to #ffffff and aligned your item titles centered.

    a:visited {
    color: #ffffff;
    text-decoration: none;
    }

    a:hover, #navEZPagesTOC ul li a:hover, #navMain ul li a:hover, #navSupp ul li a:hover, #navCatTabs ul li a:hover {
    /*margin-left: -30px;*/
    color: #ffffff;
    }


    .itemTitle { text-align:center;}

  3. #3
    Join Date
    Jul 2011
    Location
    New Jersey
    Posts
    98
    Plugin Contributions
    0

    Default Re: Change the font color in Product Listing page

    Quote Originally Posted by dgent View Post
    Find these in your stylesheet and notice Ive changed the colour to #ffffff and aligned your item titles centered.

    a:visited {
    color: #ffffff;
    text-decoration: none;
    }

    a:hover, #navEZPagesTOC ul li a:hover, #navMain ul li a:hover, #navSupp ul li a:hover, #navCatTabs ul li a:hover {
    /*margin-left: -30px;*/
    color: #ffffff;
    }


    .itemTitle { text-align:center;}

    Thanks dgent! It now working perfectly :)

    another question on the product info page, can I move my product name, product price and product description below the first additional image, as well as below the last additional image? Make the text-align: center

    here is one of my product info pages: http://www.oleklejbzon.com/campbells...&products_id=9
    Attached Images Attached Images  

  4. #4
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Change the font color in Product Listing page

    Quote Originally Posted by wilson_li View Post
    Thanks dgent! It now working perfectly :)

    another question on the product info page, can I move my product name, product price and product description below the first additional image, as well as below the last additional image? Make the text-align: center

    here is one of my product info pages: http://www.oleklejbzon.com/campbells...&products_id=9
    Thats a bit tricky. What would be better is to have your first image as your main product image (and style it so its the size of the additional images and centered to match etc), then move your product title and price below the code for the main product image in your tpl_product_info_display.php file (remember I showed you last time) and also copy those bits of code below the end of the additional image code in the same file.

    So you will have a main image, then price and and title, additional images, and price and title again. You can centre them in your style sheet. {text-align: center;}

  5. #5
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Change the font color in Product Listing page

    Forgot to add, you need to change this in your style sheet too (Ive changed the colour to white)

    a:link, #navEZPagesTOC ul li a {
    color: white;
    margin-top: 10em;
    margin-bottom: 0px;
    /*margin-left: 5px;*/
    padding-top: 0px;
    padding-bottom: 0px;
    /*padding-right: 50px; */
    text-decoration: none;
    }

  6. #6
    Join Date
    Jul 2011
    Location
    New Jersey
    Posts
    98
    Plugin Contributions
    0

    Default Re: Change the font color in Product Listing page

    Quote Originally Posted by dgent View Post
    Thats a bit tricky. What would be better is to have your first image as your main product image (and style it so its the size of the additional images and centered to match etc), then move your product title and price below the code for the main product image in your tpl_product_info_display.php file (remember I showed you last time) and also copy those bits of code below the end of the additional image code in the same file.

    So you will have a main image, then price and and title, additional images, and price and title again. You can centre them in your style sheet. {text-align: center;}
    Thanks dgent, I have turned the default first image (showed in main product page) off in my stylesheet:

    PHP Code:
    #productMainImage {display:none;} 
    because I don't want it show in my product info page. So do I need to comment it?

    Then I edited my tpl_product_info_display.php file and add
    PHP Code:
    <div id="addImagecont">

    <!--bof Additional Product Images -->
    <?php
    /**
     * display the products additional images
     */
      
    require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
    <!--eof Additional Product Images -->

    </div>

    <!--bof Product Name-->
    <h1 id="productName" class="productGeneral"><?php echo $products_name?></h1>
    <!--eof Product Name-->



    <!--bof Product Price block -->
    <h2 id="productPrices" class="productGeneral">
    <?php
    // base price
      
    if ($show_onetime_charges_description == 'true') {
        
    $one_time '<span >' TEXT_ONETIME_CHARGE_SYMBOL TEXT_ONETIME_CHARGE_DESCRIPTION '</span><br />';
      } else {
        
    $one_time '';
      }
      echo 
    $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE '') . zen_get_products_display_price((int)$_GET['products_id']);
    ?></h2>
    <!--eof Product Price block -->

  7. #7
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Change the font color in Product Listing page

    Yes comment it back in, make it the same size in admin as your additional images, and then play with the position of the addititional image in the stylesheet to line up etc...

    Yes, that code you posted should work. If not, its just a matter of moving it around to suit. Very straightforward.

  8. #8
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Change the font color in Product Listing page

    Oh I see the problem, your main product image which you use on your listings isnt like your product images.

  9. #9
    Join Date
    Jul 2011
    Location
    New Jersey
    Posts
    98
    Plugin Contributions
    0

    Default Re: Change the font color in Product Listing page

    Quote Originally Posted by dgent View Post
    Yes comment it back in, make it the same size in admin as your additional images, and then play with the position of the addititional image in the stylesheet to line up etc...

    Yes, that code you posted should work. If not, its just a matter of moving it around to suit. Very straightforward.
    Thanks dgent, another question about the text-align, I located the product name, product price with Firebug. And it is clear that I need to add text-align: center to h1, and h2, so it would become:

    PHP Code:
    h1 {
        
    font-size1.5em;
        
    padding-right0px;
        
    colorwhite;
        
    margin-right0px;
        
    text-aligncenter;
        
    /*margin: 0.8em; */
        
    }

    h2 {
        
    font-size1.4em;
        
    colorwhite;
        
    text-aligncenter;
        } 
    The price, name are now centered but when I back the front page the front page description is centered I don't wanna my front page description to be centered is there any way to do that?

  10. #10
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Change the font color in Product Listing page

    Make a stylesheet called index_home.css and put this in it...

    h1 {
    font-size: 1.5em;
    padding-right: 0px;
    color: white;
    margin-right: 0px;
    text-align: left;
    /*margin: 0.8em; */
    }

    h2 {
    font-size: 1.4em;
    color: white;
    text-align: left;
    }


    ..and upload it to your templates/css folder.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Font color change in the categories listing
    By Marlake in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Jul 2010, 10:31 PM
  2. How to change the font and color of Product Title?
    By Klemens in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jul 2009, 07:00 PM
  3. change font color in category's product listing
    By yellowsub in forum Setting Up Categories, Products, Attributes
    Replies: 16
    Last Post: 19 Mar 2009, 06:33 AM
  4. Change Font color on Product Page
    By DieuxSoldat_04 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 28 Feb 2008, 04:41 AM
  5. How to change font color for Product Listing
    By Jbraz in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 23 Oct 2007, 03:21 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