Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2005
    Posts
    123
    Plugin Contributions
    0

    css problem Category Image + Text and Column layout HELP!

    Can someone please take a look at this (work in progress) http://www.valcarr.co.uk/website/ind...ndex&cPath=155

    I have the column category mod installed and I have also altered the stylesheet so that the category description wraps the category image - but it has also moved up 2 out of the 3 columns....

    To wrap the text I added the following to the stylesheet:

    #productListHeading {
    float:none;
    margin: 5px 0 15px 0;
    }

    #categoryImgListing {
    float:left;
    margin: 10px 10 10 0;
    padding: 10px 10px 10px 0;
    }

    Any ideas on how I can get the products to align?

  2. #2
    Join Date
    Sep 2007
    Posts
    219
    Plugin Contributions
    0

    Default Re: Category Image + Text and Column layout HELP!

    Hi twdhosting,

    I have not used this mod, BUT from looking at the source code produced you need to clear the top 2 div statements (categoryImgListing & categoryDescription).

    so either directly above or below
    PHP Code:
    <!-- BOFDisplay grid of available sub-categories, if any --> 
    you need to put
    PHP Code:
    <br class="clearBoth" /> 
    If you don't know where this is in your code you can easily find it by searching for "BOF: Display Grid" in Admin > Tools > Developers Toolkit

  3. #3
    Join Date
    Mar 2005
    Posts
    123
    Plugin Contributions
    0

    Default Re: Category Image + Text and Column layout HELP!

    Excellent! Works like a dream - thanks.

    For anyone else who has the same trouble and finds this thread the file you need to edit is: /includes/templates/template_default/templates/tpl_index_categories.php

    Just add the code RuFuS posted like this:

    <div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description; ?></div>
    <?php } // categories_description ?>
    <br class="clearBoth" />
    <!-- BOF: Display grid of available sub-categories, if any -->

    on line 64.

    Thanks once again

    Tony

  4. #4
    Join Date
    Jul 2007
    Posts
    44
    Plugin Contributions
    0

    Default Re: Category Image + Text and Column layout HELP!

    Quote Originally Posted by twdhosting View Post
    Excellent! Works like a dream - thanks.

    For anyone else who has the same trouble and finds this thread the file you need to edit is: /includes/templates/template_default/templates/tpl_index_categories.php

    Just add the code RuFuS posted like this:

    <div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description; ?></div>
    <?php } // categories_description ?>
    <br class="clearBoth" />
    <!-- BOF: Display grid of available sub-categories, if any -->

    on line 64.

    Thanks once again

    Tony
    Hi Tony

    I changed according to what you've stated above, just added this line, but it doesn't work on my side. Is there anything else I need to change beside just adding this line? how about the CSS codes you added above? are they necessary?

    thanks,
    nataliajoe

  5. #5
    Join Date
    Jul 2007
    Posts
    44
    Plugin Contributions
    0

    Default Re: Category Image + Text and Column layout HELP!

    Hi,

    I just found the answer. Not only I need to edit tpl_index_categories.php with that line, I also need to add the same line to tpl_index_product_list.php. also, the css code for #categoryImgListing is needed too.

    thanks!

  6. #6
    Join Date
    Jul 2007
    Posts
    44
    Plugin Contributions
    0

    Default Re: Category Image + Text and Column layout HELP!

    Hi Tony

    I visited your site, and wondering how you link your Cards & Gifts to a page that lists down all your categories like this page http://www.valcarr.co.uk/index.php?m...ndex&cPath=155 ?

    My Categories links to a Site Map instead of a category page, and I am not sure what is my path to edit the link. will appreaciate if you can share how you find that link...

    thanks!
    nataliajoe

 

 

Similar Threads

  1. Category image and category name text align problem.
    By marknew in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 21 Sep 2012, 03:02 AM
  2. Column Layout in IE - Pushing Product Image and Attributes Across
    By limelites in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Feb 2010, 07:39 PM
  3. Setting an image column and text column in Product Info page?
    By monkeypeach in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Sep 2008, 04:19 AM
  4. Sidebox - Category layout and image
    By tom2u in forum Basic Configuration
    Replies: 0
    Last Post: 1 Aug 2007, 06:50 PM
  5. product info: a two-column layout with Main/addt'l image and prod. description?
    By dumoti in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Nov 2006, 08:24 AM

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