X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Edit a Class file (https://forum.x-cart.com/showthread.php?t=68996)

mike@simcobox.com 04-07-2014 08:32 AM

Edit a Class file
 
I am trying to locate a class file but I cannot seem to file it. Is this the same as a css file?
Is there a way to search for the file? The name of it is productlDetails.

<td class="main"><div class="thumb_column"> <a href="home.php?cat=2"> <img src="skin/adapt/images/home-utility.jpg" alt="Plastic Utility Boxes - Saturn Series" width="112" height="82" /> </a> </div>
<div class="productDetails">
The code is above.
Can anyone tell me where to look for this file?
Thanks
Mike

totaltec 04-07-2014 09:11 AM

Re: Edit a Class file
 
Are you looking for the template that controls this section? Have you tried webmaster mode? If not find the tutorial in my signature.

I see you are using the Adapt skin, I have limited experience with this template.

mike@simcobox.com 04-07-2014 09:33 AM

Re: Edit a Class file
 
Hi
I know where the template file is and I am able to edit it. I am trying to adjust the cell sizes on a table within the template and it refers to class=productdetails. I need to find that class so I can fix the cell sizes. Is a css and class the same thing?
I will look at the tutorial
Thanks
Mike

totaltec 04-07-2014 09:39 AM

Re: Edit a Class file
 
Ah, I see you have a question about CSS. Yes, classes are used in CSS, Use Chrome, and right click on the element and choose inspect element.

This should pull up the developer tools. If you need to determine what CSS file is controlling this class, you might need to turn off "Use speed-up tool for CSS" in the general settings section of the admin. Then you can see exactly what CSS file is taking priority.

Good luck, let us know if you have any more questions.

Here is a decent explanation of classes: http://htmldog.com/guides/css/intermediate/classid/

mike@simcobox.com 04-07-2014 09:49 AM

Re: Edit a Class file
 
Hi
Okay I went to chrome And I see where it says <div class="productDetails">
My problem is I cannot find where to edit this in the admin. I want to edit the class I think?
Mike

totaltec 04-07-2014 10:14 AM

Re: Edit a Class file
 
Yes you do. Select this area in your inspector and look to the right, you should see the styles associated with it. Definitely watch this tutorial, near the end we start editing CSS files: http://youtu.be/5nkd7FPHMdA

mike@simcobox.com 04-07-2014 10:15 AM

Re: Edit a Class file
 
will do
Thanks
Mike

mike@simcobox.com 04-07-2014 01:13 PM

Re: Edit a Class file
 
Thank you
The video helped. I have the problem fixed.
Thank you
Mike
:D/ :lol: :mrgreen:

totaltec 04-07-2014 01:17 PM

Re: Edit a Class file
 
Glad you got it resolved. Sometimes a video is worth 10,000 words. :-)

mike@simcobox.com 04-07-2014 01:19 PM

Re: Edit a Class file
 
Yes I could not agree more. It got me looking in the right direction.


All times are GMT -8. The time now is 07:35 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.