• Hey everyone. Can someone please suggest what they think is the best and easiest way to edit your Theme besides using “Theme Editor”.

    Thanks.

Viewing 15 replies - 1 through 15 (of 17 total)
  • well, if you know what you are doing, then go ahead and just use a text editor like notepad or wordpad…

    otherwise, I’d suggest just makeing a second blog to be your test site, if you have that capability.

    Kahil is right. There is no “best” way to do it in the Theme Editor. It is not even a good way to do it – especially if you want some major edits. I consider the Theme Editor useful for small typos and stuff like that, not for making serious changes to your theme.
    Another testblog or a local install is the way to go.

    Thread Starter allover

    (@allover)

    Yes, I do have a local/testblog setup. So, it sounds like I should uses something like Notepad and just copy and paste my changes into the Theme Editor and that will work?

    I’ve been using the Theme Editor but only mainly in the “Style.css” section. What are those other categories for?

    Thank you.

    Which other “categories”? Other than style.css? None of them are categories.
    And no, not copying over – edit in notepad and FTP. To be able to edit in THeme Editor you have to change the permissions on the template files which makes your blog totally vulnerable to hackers.
    And I think the best thing for you would be to start here:
    http://codex.wordpress.org/Blog_Design_and_Layout

    Thread Starter allover

    (@allover)

    I still have to use FTP even if my blog is setup locally on my pc? Hackers???

    There are other sections like “footer” “header” and “sidebar” etc. i theme editor, that’s what I was talking about.

    I guess I just don’t know how to edit in Notepad. I will check out your link. Thank you.

    You are mixing things here, my friend.
    Why should you use the Theme Editor on a local install? You edit the files on your computer and you see the result instantly. Don’t you?
    A decent editor (Notepad++ or PSPad) is much better than anything else: they have code highlighting and a lot of goodies 🙂

    I provided that link exactly because I realized you don’t understand (yet) the theme system used in WP. Browse the Codex, read about the Themes and Templates, how they work together etc.

    Thread Starter allover

    (@allover)

    Hmm, Yes I am a newbie to all of this. So all of my questions seem really easy to you I’m sure. 🙂 Well, I am using the Theme Editor because I want to make changes to my template. That’s what it’s for right?

    I don’t know how to edit in NotePad. How do I get the source code into it, and what are the code highlighting and goodies you are talking about.

    I really appreciate your help. 🙂

    You said you have a local install – for me that means a XAMPP (or something similar) on your computer and a live WP blog locally.
    Now opening a template file (e.g. the sidebar.php) of the local installation in a text editor and saving the changes will give you the possibility to see your changes immediately (by hitting the refresh button, of course).
    You don’t need to get the “source code” into the Notepad or whatever you are using. Like in any program you go > File > Open > find the template file of yopur local install and open it. Edit it. Save it. See the result.

    This is NOT WP-specific knowledge… If you use any kind of editor, you have to be able to find a file on your computer to edit it.

    Thread Starter allover

    (@allover)

    Gosh, this is so confusing. It would help if I knew html also. But I hardly do, and I am just learning everything as I go. When I open a php file it just looks like a bunch of gibberish to me. I’m not sure what to change.

    So, when I change it, I save it as an html file to see the results???

    LOL. Do you have MSN Messenger?????????

    I have (MSN) but only my son can have it.
    The forum is the way to get support.

    Look, if you don’t know html, you don’t know how to edit a file, you don’t have a local install – then why on the earth would you want to mess around with your theme?
    (If you see gibbberish you do NOT have a local installation, you just have the files on your computer.)

    To be able to edit a WP theme you will have to know a bit more the basic HTML and CSS.

    I don’t repair my car because I don’t know what is under the hood. It is the same with code.

    Go and start here: http://www.w3schools.com/default.asp

    Thread Starter allover

    (@allover)

    We all have to start somwhere. There was a point when you also knew nothing about HTML. 🙂

    Thanks.

    I agree: there was a point when I didn’t know anything about HTML. The difference is – I didn’t want to modify a complicated script on my first day with HTML. I went and learnt the basics first…

    Thread Starter allover

    (@allover)

    That is you. People do things differently. 🙂

    Anyway, I really appreciate your help! I will read over the tutorials some more and figure it out eventually.

    Thanks again. 🙂

    It’ll be years before you can work on your website if you try to read the entire Codex and W3schools. Much better to just dive in, and learn as you go, that’s what everyone does. Just keep those documentation websites handy, and read 1 section at a time when you have a specific task you’re working on.

    Instead of the built-in theme editor (which also works), you alternately can edit the Template files (such as Sidebar.php) simply by opening them with Notepad or WordPad. You’ll find these files inside your /wordpress/wp-content/themes/ folder. Moshu also named Notepad++ as an editor-program that highlights the code in different colors, which makes it easier to understand. When you click Save it saves in the same format it is in, .php (which can just be viewed as text). Then you just replace the sidebar.php in your /theme/ with the file you’ve edited. At that point your latest alterations should appear live on your site. Check the site after every change, to see if it broke or worked.

    One file that you might want to learn/play with, is style.css — you can open and edit it the same way as above. This file contains CSS code, and can change the look of your site in many ways that you’ll learn one piece at a time.

    Always keep a backup copy of each file you’re editing.

    Thread Starter allover

    (@allover)

    Hey Dgold. Thanks for putting it into more perspective. Yes, I am just delving in and learing as I go, and to be honest with you in just a week I have learned tons!!! It is actually quite fun. Although I doesn’t sound like I know anything in here, I feel like I do. It’s just that all the terminology is confusing.

    I have blogtest that I’ve been playing around with, just using the Theme Editor in one window and then hitting the “View Site” link to see what changes took affect. It has been quite time consuming and frustrating as you an imagine. But, now I know what Moshu was talking about earlier as far as NotePad++. I am definitle going to check that out.

    I’ve been playing aroun with the style.css file for a whole week now, learning what changes effect what bit by bit. So I think I will get there.

    Hey thanks a lot for speaking in lamens terms. 🙂

    Oh, yes, I make backups everytime I find out something new.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Best way to edit Templates/Themes’ is closed to new replies.