Forums

[resolved] How do I edit a file outside of WordPress (17 posts)

  1. dakranii
    Member
    Posted 3 years ago #

    I want to bring my main page down locally through ftp, make a change, then reload it. But I don't know where to find the file.

    It has to be easy, what am I doing to overlook it? I'm used to grabbing the index.html file out of the root directory and doing what I need to then putting it back. But I don't understand how wordpress works. Where is it storing the main page content??

  2. eikelben
    Member
    Posted 3 years ago #

    I am also looking for the answer to this question. Anyone?

  3. eikelben
    Member
    Posted 3 years ago #

    I am also looking for the answer to this question. Anyone?

  4. Ryan S
    Member
    Posted 3 years ago #

    wordpress stores the main page contents in the mysql database, not in any page or folder. Hence you can not edit it. Also, the index page viewed on your main page is not one in the root directory. It is the index.php page present in your themes directory. For example, if you are using default theme, the main page of your blog is /wp-content/theme/default/index.php

    You can check this tutorials to know how wordpress works. But for that you must have knowledge of php and sql (mysql)

  5. eikelben
    Member
    Posted 3 years ago #

    Alright, so i am a photographer and want to add a page to my site about a particular topic. Obviously i want this to contain all of the same page information (nav bar, header, etc.) along with the same styling. I have a basic knowledge of CSS and html - how would i create a new page from scratch? I understand all i need to do is call the style sheet, but what would i need to add into the html to include the nav bar? or is it just not that simple?

  6. jeremymccann
    Member
    Posted 3 years ago #

    ryan_accuwebhosting wrote: wordpress stores the main page contents in the mysql database, not in any page or folder. Hence you can not edit it.

    Is it possible edit a "post" in a text editor outside of wordpress then replace the current post?

    Thanks much.

  7. thisisedie
    Member
    Posted 3 years ago #

    You could copy the post from the edit screen in admin, paste into a PLAIN text editor, and then copy and paste the edited version over the original post. But why not just edit it in the admin area? And why do you say "post" as if you don't really mean a post?

  8. thisisedie
    Member
    Posted 3 years ago #

    @eikelben

    Go into the admin area and create the page...

  9. jeremymccann
    Member
    Posted 3 years ago #

    Sorry I didn't explain thoroughly.

    I have a blog http://www.symbolicstrategies.com. I currently have 6 posts.
    When I edit these post in wordpress I have to add a lot of extra little code to get proper paragraph breaks ect. Also I travel a lot I want to be able to edit my wordpress site even when I do not have internet connection.

    So what im trying to do is this;
    I want to find the file that contains a post on my server, download it to my desktop, open it in dreamweaver, edit it, save it, and replace the file on my server with the new file I have edited. Thank you for the assist. - J

  10. jeremymccann
    Member
    Posted 3 years ago #

    Sorry I didn't explain thoroughly.

    I have a blog http://www.symbolicstrategies.com. I currently have 6 posts.
    When I edit these post in wordpress I have to add a lot of extra little code to get proper paragraph breaks ect. Also I travel a lot I want to be able to edit my wordpress site even when I do not have internet connection.

    So what im trying to do is this;
    I want to find the file that contains a post on my server, download it to my desktop, open it in dreamweaver, edit it, save it, and replace the file on my server with the new file I have edited. Thank you for the assist. - J

  11. jeremymccann
    Member
    Posted 3 years ago #

    Sorry I didn't explain thoroughly.

    I have a blog http://www.symbolicstrategies.com. I currently have 6 posts.
    When I edit these post in wordpress I have to add a lot of extra little code to get proper paragraph breaks ect. Also I travel a lot I want to be able to edit my wordpress site even when I do not have internet connection.

    So what im trying to do is this;
    I want to find the file that contains a post on my server, download it to my desktop, open it in dreamweaver, edit it, save it, and replace the file on my server with the new file I have edited. Thank you for the assist. - J

  12. jeremymccann
    Member
    Posted 3 years ago #

    Sorry I didn't explain thoroughly.

    I have a blog http://www.symbolicstrategies.com. I currently have 6 posts.
    When I edit these post in wordpress I have to add a lot of extra little code to get proper paragraph breaks ect. Also I travel a lot I want to be able to edit my wordpress site even when I do not have internet connection.

    So what im trying to do is this;
    I want to find the file that contains a post on my server, download it to my desktop, open it in dreamweaver, edit it, save it, and replace the file on my server with the new file I have edited. Thank you for the assist. - J

  13. asechrest
    Member
    Posted 3 years ago #

    Someone more versed in this correct me if I'm wrong, but WordPress doesn't store posts and pages in "files," per se. It stores post and page and user data in the database and calls it from there.

    So if you make a post from your WordPress dashboard on Friday, then you travel over the weekend, you can't simply go into your server, find "the file" associated with Friday's post, and edit and reupload.

    The files you see on your server style and manipulate the data stored in the database (I think). You can't point to any single file that is "your homepage," or "page x." Your homepage uses header.php, footer.php, index.php, sidebar.php, function.php, etc., plus extracts data from the database. It's not simply a home.html file that you can edit, upload, and overwrite.

    You could probably hard-code something in one of the files which would then show up on your page, but that's a pretty ugly solution if you're going to be doing it regularly.

    @jeremymccann
    My question would be, if you have internet access to upload an edited file to your server, why not just connect to WordPress and create a new post or edit an existing one? Or prepare a post ahead of time with publish date in the future?

  14. thisisedie
    Member
    Posted 3 years ago #

    you can't simply go into your server, find "the file" associated with Friday's post, and edit and reupload.

    Absolutely correct. Everything is stored in the database.

    When I edit these post in wordpress I have to add a lot of extra little code to get proper paragraph breaks ect

    Then there's a problem and you need to fix it.

  15. jeremymccann
    Member
    Posted 3 years ago #

    @asechrest; Good question,

    I shoot film and video all over the world, so If I know I will be flying to... Lets say Africa to shoot a documentary on Sat. Where I know I will not have internet connection. Friday evening I want to be able to download a backup of my WP blog to my laptop and make all my edits while I am away then upload when I return.

  16. jeremymccann
    Member
    Posted 3 years ago #

    @thisisedie,

    When I edit these post in wordpress I have to add a lot of extra little code to get proper paragraph breaks ect

    thisisedie wrote, Then there's a problem and you need to fix it.

    I have had this issue with multiple blogs and a couple different themes.
    Any idea what this could be?

    Sorry guys I have found myself writing the same issue in to different forum threads we should move this over to

    - How do I edit a post outside of wordpress? Link Here>>

  17. asechrest
    Member
    Posted 3 years ago #

    @asechrest; Good question,

    I shoot film and video all over the world, so If I know I will be flying to... Lets say Africa to shoot a documentary on Sat. Where I know I will not have internet connection. Friday evening I want to be able to download a backup of my WP blog to my laptop and make all my edits while I am away then upload when I return.

    Well, I think your best bet would be to draft your post in a basic text editor in HTML, then copy/paste to the write post screen in HTML mode once you return. You know where your photos will be stored and you know (or can learn) the HTML needed to style the post, so you can prepare most of it ahead of time.

  18. dakranii
    Member
    Posted 3 years ago #

    I'm revisiting this topic I created after months of using and understanding WordPress now. What I was asking for in the original post, and what others are asking for, is not what WordPress is about.

    I was used to working on webpages written in html and editing them in Dreamweaver, as jeremymccann is saying. That's not what WordPress is.

    If that's how you want to create sites, you shouldn't be using WordPress, I don't believe. Asechrest described WordPress well.

    It's not page A, page B, page C, etc. It's a header, a footer, a sidebar or two, and a single php page that calls it all together. You have to use the WordPress admin page to do the work on your site...create pages, create posts, edit your header, sidebar(s), and footer.

    If you want to work offline, just write what you want in Wordpad or Notepad, then when you're online and you want to "upload" a post to your blog, click the "New Post" button from the admin section of your site, paste in your Wordpad or Notepad typed text, format as necessary and hit "Publish".

    If you use the HTML editor, then you can create the html in Dreamweaver if you want (keep in mind that while working in Dreamweaver you shouldn't and don't need to see the header, footer, or sidebar of your site, only the post or page you are working on), then past the code into the HTML editor after starting a "New Post".

    And know the difference between a PAGE and a POST in WordPress. A PAGE is a static page you create to store static information...about me, contact, etc. You create these by choosing "New Page" from the admin section of your site. A POST is a post that goes into your blog. By default your WordPress site should display posts on your main page, newest on top, 10 per page.

    I asked the original question when I didn't get what WordPress was or how it worked. Now I know and my question doesn't have an answer I see.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.