Quantcast
Channel: Flame Scorpion » WordPress tutorials
Viewing all articles
Browse latest Browse all 10

How to directly edit WordPress themes

$
0
0

There are a lot of things that can be changed in WordPress from the administration panel: themes, plugins, content, links, widgets to appear on sidebar, and so on.  Wordpress has also the options to edit plugins and themes directly, by editing the template or plugin files. But this feature is probably used very rarely because everything you see there is code, and the code is a problem to many people.

Let’s say you have only a minor issue to change, like the copyright footer text,  or the tag for the page title, but you have no clue how to do this. I will explain you how wordpress use template files to render different pages of your website.

When you go to “Appearance”-> “Editor”, a text editor will open with the style.css of the active template you use. In the right of the screen you can see a list with all template files.

The style.css file is the one where the global styles are defined, if you never heard of css it might be a little confusing for you, but if you want only to change the copyright footer text it is fine.

header.php, footer.php and sidebar.php are global file templates, that will show on every page. So if you want to change copyright text select the footer.php from right and then search for the text you want to replace. When you are done press “Update”. Simple, right ?

If you spend some time to look around you will fing that is pretty easy to change things around there, or to delete things that you don’t want to appear anymore.

On your blog you have different type of pages, blog listing page, single blog post page, archive page, normal pages, and others. If a template file is missing, the index.php file will be used to render the website. The most important pages are:

  • page.php – this file is used to render pages created trough administration panel
  • home.php – this is the blog posts list – it is usually omitted and let index.php to handle blog post list
  • single.php – this file will render a single blog post
  • archive.php – this file will render archives, categories, tag pages, if their respective files are not present, tag.php, categories.php.

There are many others files that you can use to differentiate wordpress pages, to make you a complete idea you can have a look at a picture from Digging into wordpress .

If you still find it difficult to edit a theme or you need some advanced edits, you should get a freelancer to get your job done. I recommend you to use the largest freelancing website.


Viewing all articles
Browse latest Browse all 10

Trending Articles