General: Template Edit
-
I am editing my theme in dreamweaver. I can add html links on my front page, but how do i edit the theme/index.php. Do I edit in DW as well?
-
Please review Stepping into Templates and Template Hierarchy.
Resource:
Editing FilesI am editing my theme in dreamweaver.
Already I can see a problem here.
Don’t use fancy editors for WordPress themes. Use text editors, like the gods of the web intended. 😉
Use text editors
… and they’re free. Try Notepad++ or PSPad.
Too Funny. My husband is a software developer and HE made me use DW because of the FTP interface with my hosting site. I think he just got tired of answering me. You techies crack me UPPPPPP. I DON’T live In your WORLD. Scream Screech!!!!!! I am just trying to muddle through without asking HIM stupid questions. I CANT win!!! So… how do I do the edits in notepad? OTTO YOU CRACKED ME UP with your post
how do i edit the theme/index.php
Just open it up (in any text editor) and make whatever changes you want. What kind of edits are you trying to do?
So… how do I do the edits in notepad?
Errr.. you load the file into Notepad, edit it, save it, and put it back on your site. I recommend using Filezilla as an FTP client.
It’s not as hard as you think, I doubt you’ll need to bother your husband. 😉
These will help:
http://codex.ww.wp.xz.cn/Theme_Development
http://codex.ww.wp.xz.cn/Editing_Filesadam’s recommendation of PSPad is doubly a good one here as it comes with a built-in ftp client.
ok HERE go$s
1.
2. for the contact tab: how to add contact information
3. for the about page where do I edit this? (can i edit this from my WP Admin page?
4. how do I change the flickr photos?
5. BIG BIG!!!Where do users log in/register/post? Is there a special spot this magically appears?THANK YOU THANK YOU Gracias>>>Blah Blah Blah- U guys are GEMS!
You’ll need to give a URL to answer some of those. As for the rest:
To edit the about page, go to Manage->Pages in your WP admin.
To get to your WP admin, add /wp-admin/ onto your blog URL.
To post, go to Write->Post.
Check out the “docs” link at the top of this page for articles about getting started with WP.
adam:
Thanks for the help and the time you took to give it.
URL for what?
~~~jla
URL to your blog. Without seeing your flickr and contact tabs, those two questions are tough to answer.
Easy there. I do accounting. I am also very absorbed trying to figure out this pspad you suggested. Do you need bookkeeping? I’ll be right there!
Adam~~Note that there are 3 tabs- Home, Archives, Contact
I am looking to edit the information on these pages.
~~jla
Ahh. That’s a bit of an incomplete theme you’ve got there. Without telling you, the author assumes that you will open up the theme files and modify as needed. Most themes don’t do that to you.
I followed the “salmon” link in your blog’s footer and downloaded a copy.
If you’re really attached to your theme, here’s some tips for making it work for you. But you might consider browsing http://themes.wordpress.net/ for a more user-friendly theme.
Here goes.
First, you can’t edit what the “archives” and “contact” links point to. They don’t point to anything. Even the “home” link doesn’t point to anything, which is just silly for the theme designer to have done that. What to do:
In the theme, open up header.php. Look for this:
<ul> <li><a style="background-position: left bottom;" href="#"><span style="background-position: right bottom;">Home</span></a></li> <li><a href="#"><span>Archives</span></a></li> <li><a href="#"><span>Contact</span></a></li> </ul>Each
<li><a ... >...</a></li>holds one of those three links. First, make the “home” link point to the front of your blog, as is customary:<ul> <li><a style="background-position: left bottom;" href="<?php bloginfo('url'); ?>"><span style="background-position: right bottom;">Home</span></a></li> <li><a href="#"><span>Archives</span></a></li> <li><a href="#"><span>Contact</span></a></li> </ul>Now, go into your admin and go to Write->Page and create a page called contact. When you’re done, go to Manage->Page and click the link to view the page you just made. Copy that page’s URL, and put it where I wrote CONTACT URL below:
<ul> <li><a style="background-position: left bottom;" href="<?php bloginfo('url'); ?>"><span style="background-position: right bottom;">Home</span></a></li> <li><a href="#"><span>Archives</span></a></li> <li><a href="CONTACT URL"><span>Contact</span></a></li> </ul>There’s more. Before I keep typing, I’m going to ask whether you want to deal with all this, or whether you would rather find a more user friendly theme. You’ll have to follow a similar process to change the flickr badge and other things. Plus, the theme isn’t widgetized, which it really should be.
So let me know whether you want to proceed with this. I won’t be around later, but someone else might continue.
Oh My. I am glad that you took the time to look into this for me. I am absolutely not attached to anything that requires that much work, although I am going to keep your notes, which seem like a good summary of what I might need to know for PHP. <br><br> How can I avoid downloading an incomplete theme in the future?
The topic ‘General: Template Edit’ is closed to new replies.