Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Category Description image not displaying properly

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-25-2009, 03:44 PM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default Category Description image not displaying properly

Using x-cart 4.2.1 with DIV layout... my problem is regarding images in category descriptions... when I add an image to the category description the image seems to float outside the description area... the image falls into the product list area... pushing product info (thumbnails, desc, price, ect.) to the left... I tried editing subcategories.tpl

Code:
{if $current_category.description ne ""} <div id="subcat-desc" style="display:block;"><p class="subcategory-descr">{$current_category.description}</p></div> {/if}

...without luck... any ideas?


also noticed... editing .subcategory-descr in main.css does not effect the <p> layout at all... however... variables set when embedding style="" to <p> in the template show up... ???... any ideas? perhaps the css is called from another file???
Reply With Quote
  #2  
Old 10-25-2009, 06:51 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Category Description image not displaying properly

What skin are you using? Different skins use different stylesheets.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 10-27-2009, 06:05 AM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default Re: Category Description image not displaying properly

don't recall which skin I installed... it was an orange one with a header, nav column, and main content area... is there a way to check?
Reply With Quote
  #4  
Old 10-27-2009, 07:30 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Category Description image not displaying properly

OK, that is "light and lucid". If it is/was 3 columns your stylesheet is main.css. If it is 2 columns then you also will have a stylesheet named altskin.css. In addition, there are stylesheets for the various web browsers out there, but usually these don't need to be messed with (but still be aware of them).

The bit of code you posted does not look like it is from the original file as it has "style="display:block;" as part of the .tpl instead of adding it to the "subcat-desc" style in the stylesheet. Anyway, look for the style associated with what you are working on in main.css (and altskin.css if you are using it as well). Sometimes it takes a little digging, but it is much better than altering the .tpl.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 10-27-2009, 07:54 AM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default Re: Category Description image not displaying properly

firebug will help you see which styles are applying to any element on the page, and in which files they are in,
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
  #6  
Old 10-27-2009, 11:59 AM
  Hyperdelicious's Avatar 
Hyperdelicious Hyperdelicious is offline
 

Senior Member
  
Join Date: Sep 2002
Location: In the Middle of Nowhere
Posts: 138
 

Default Re: Category Description image not displaying properly

Quote:
The bit of code you posted does not look like it is from the original file as it has "style="display:block;" as part of the .tpl instead of adding it to the "subcat-desc" style in the stylesheet.

I added the DIV w/id=subcat... I was attempting to encapsulate the P tag that holds $current_category.description (the category description)... hoping to contain the description and image(s) inside a block style DIV... without luck.

Quote:
Anyway, look for the style associated with what you are working on in main.css

I have located main.css... and tried applying my changes there to class .subcategory-descr... again without luck.

Could the issue be related to the use of a WYSIWYG text editor... I checked the source code and there seems to be an extra code in there and the image is defined as input???
Here's a sample of what the browsers page source is displaying:

Code:
<p class="subcategory-descr"></p><p> <input alt="Bike " src="http://www.mybikesite.com/en/files/header-pics/road-bikes.jpg" type="image" vspace="8" width="225" align="left" height="201" hspace="8">Road bike plays to your strengths whether you▓re a short-run sprinter, a climbing specialist or a long-haul time trialist. If road racing is your game, you won▓t find anything better for all-around speed than our road bikes.</p>

note: the category description wasn't even placed inside the designated paragraph tag???
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:52 PM.

   

 
X-Cart forums © 2001-2020