Forums / General Questions / Using Firebug to make changes.....

Using Firebug to make changes.....

Locked

Views: 9,404

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
1 Dec 2008, 5:16 PM
#1
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Using Firebug to make changes.....

I'm finally getting the hang of using firebug to find where codes are located and make changes to things. What I don't know now though is how to save those changes and upload them to the server from there.

Also, I just realized that the changes I made to my specific page will not necessarily change on all product pages, correct? If not, how would I find where to go to make it appear this way on all product pages that are created?

Me + Zen = Truehart Treasures

1 Dec 2008, 5:23 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Using Firebug to make changes.....

Remember that the changes you make while using Firebug are OFF-LINE changes.

For example, when working with CSS, You need to COPY the new code you create, open the css file on your server, and PASTE in the changes.

What I usually do is copy the entire off-line stylesheet, and create a NEW stylesheet.css. Then I back-up the original stylesheet on the server and FTP the new one.

1 Dec 2008, 5:40 PM
#3
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Using Firebug to make changes.....

fairestcape:

Remember that the changes you make while using Firebug are OFF-LINE changes.

For example, when working with CSS, You need to COPY the new code you create, open the css file on your server, and PASTE in the changes.

What I usually do is copy the entire off-line stylesheet, and create a NEW stylesheet.css. Then I back-up the original stylesheet on the server and FTP the new one.

Ahhhh yes, that's right! I'm a little confused about what you are saying regarding backing up the original and FTPing a new one though.

I have found my stylesheet in filezilla. Are you saying that I should now create a directory under that and paste the new CSS from firebug? Or open that stylesheet and paste the new css from firebug directly into it? Then how would I save it? Or are you suggesting saving the current CSS stylesheet into a word document or something similar?

Sorry for my ignorance. I'm really trying to figure this out!

Me + Zen = Truehart Treasures

1 Dec 2008, 5:48 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Using Firebug to make changes.....

When you open Filezilla (or any FTP program) you will see TWO display panes.

In a default situation ONE of these panes displays folders and files on your LOCAL computer, and the other shows the files on the REMOTE computer.

The point about backing up is academic... I'm in the habit of making sure that BEFORE I commit any edits to a file (and that may include a completely NEW file) I make a backup of the original. So if I make a stupid mistake (like FTP a *.css file in Binary instead of ASCII), then I have a backup of the original...

... One thing you learn quite quickly when fooling with php files is to make backups BEFORE you tinker... (in my case, through bitter personal experience!)

1 Dec 2008, 5:59 PM
#5
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Using Firebug to make changes.....

Got it. Thanks =)

Me + Zen = Truehart Treasures

1 Dec 2008, 6:10 PM
#6
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Using Firebug to make changes.....

What am I doing wrong here? I made the changes in firebug, but I made them in the HTML. I thought that if I then clicked to the stylesheet that would keep those changes. I uploaded the new stylesheet, but it didn't change the things I did in the HTML portions :huh:

Me + Zen = Truehart Treasures

1 Dec 2008, 6:13 PM
#7
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Using Firebug to make changes.....

You must use a PLAIN TEXT EDITOR to edit CSS and PHP files. You are not editing "HTML".

There are some good FREE Plain Text Editors on the WWW.

Such as CRIMSON EDITOR and NOTEPAD++ (not notepad, but notepad++)

1 Dec 2008, 6:26 PM
#8
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Using Firebug to make changes.....

fairestcape:

You must use a PLAIN TEXT EDITOR to edit CSS and PHP files. You are not editing "HTML".

There are some good FREE Plain Text Editors on the WWW.

Such as CRIMSON EDITOR and NOTEPAD++ (not notepad, but notepad++)

Oh goodness, there's SO much to think about!

So the HTML on firebug is useless?

Going to download one of those now and see what I can do with it....

Me + Zen = Truehart Treasures

1 Dec 2008, 6:33 PM
#9
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Using Firebug to make changes.....

Ok, now I'm TOTALLY confused! Does this not work with the firebug at all? Do I copy and paste something from FB into the CE and go from there? HOW do I use these together?

Me + Zen = Truehart Treasures

1 Dec 2008, 8:05 PM
#10
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Using Firebug to make changes.....

  1. Using your FTP program, download a copy of your stylesheet to your local computer. Rename it to something (like stylesheet.old).

  2. Using Firefox and Firebug, make your changes.

I don't use Firebug. I have the web developer addon. I think they're about the same.

  1. right click on the stylesheet in Firebug. You'll get a little popup menu. Click on "select all". Everything in the stylesheet window will be highlighted. Press ctrl and c (letter c) on your keyboard at the same time.

  2. Open a new file with either Notepad++ or Crimson Editor.

  3. Paste what you copied into it (press ctrl v (the letter v)).

  4. Save the file as stylesheet.css

  5. upload (FTP) it to your website and overwrite the stylesheet.css that you downloaded in step 1.

Your changes should be permanent.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

1 Dec 2008, 8:38 PM
#11
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Using Firebug to make changes.....

Thank you for the very clear, step by step instructions!

I want to make sure I'm clear though. The changes I'm making, I'm making in the HTML of Firebug. When I then switch to the CSS page, it seems that the changes I've made so not "hold". How then do I get them to stay?

I do have the Web Developer as well, but I was able to catch on to the firebug more easily which is why I've been working with that one. If the web developer would be better I can certainly try that, but the way fairestcape made it sound I could not use either of those....

Me + Zen = Truehart Treasures

1 Dec 2008, 9:26 PM
#12
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Using Firebug to make changes.....

I'm not familiar with Firebug. Making changes in the html is pretty much useless since Zen Cart is php which builds the html pages on the fly depending on what the user requests.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

1 Dec 2008, 11:07 PM
#13
mamat avatar

mamat

Zen Follower

Join Date:
Nov 2008
Posts:
222
Plugin Contributions:
0

Re: Using Firebug to make changes.....

afo:

I'm not familiar with Firebug. Making changes in the html is pretty much useless since Zen Cart is php which builds the html pages on the fly depending on what the user requests.

Would I be able to do this with the web developer? I've been searchnig google for some easy answers on how to use it but so far I'm not having a whole lot of luck.

Me + Zen = Truehart Treasures

2 Dec 2008, 1:25 AM
#14
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: Using Firebug to make changes.....

IF you're looking to make changes to the layout or whatever, the HTML source code is useless. As stated above, the pages generated from php files and the output is in HTML.

So, messing with the HTML will do you no good. What you shoud do is load a copy of Zen cart to your local computer, using xampp or something similar. Find the php or stylesheet files that you want to change/edit, save, and open a browser to see your changes. That way you are not messing with the "live" shop in the web server.