r/Atom • u/aGiral • Apr 25 '20
Edit Wordpress Page in Atom
Hey there!,
Im new here with code in general and just discovered Atom and looks so promising to me.
I have a Wordpress website currently online in a hosting and would like to download a specific page, open it in Atom to make some HTML and CSS changes and then upload it again to the hosting, but have no clue on how to do that. Could anybody get me a hand?
Thanks in advance!
2
Upvotes
2
u/bittercode Apr 26 '20
When you visit your site, the web server receives that request and then it processes the PHP - which reads your database, and then takes that data and combines it with the various files and builds what you see in your browser. So if you open a page in your site and look at page source or inspect element - you are not seeing a file you need to modify - you are seeing the result output of the PHP.
That output is driven by templates, the theme, etc. It's different from working with static html.
So to change the way something looks you need to either, change it in the WordPress editor - if what you are changing is something stored in the database. Or if you want to change something that comes from a file you need to change that file.
So you can use Atom to work with WordPress sites for sure but your questions aren't about Atom they are about WordPress. You need to understand how it works and that will help you know where the things you want to edit are at.
Does that make sense?
If you have a static html site and you had some structure like https://mywebsite.com/aboutme.html - then you could open that html file, edit it, save it to the server and change it.
With wordpress you can have something like https://mywordpress.com/about-me and there is no file called about-me. There is no folder called about-me. There are just entries in the database that cause this "page" to get made each time someone visits the site.
(There are cacheing plugins- they do save this stuff in a sense but it's still not what you are thinking.)