WordPress.org

Ready to get started?Download WordPress

Forums

updating themes (4 posts)

  1. carltown
    Member
    Posted 8 years ago #

    I'm using the default theme and made some modifications to add some advertising to sidebar.php using html. It seems to work fine. I'm told I shouldn't modify this theme (somewhere in the instructions it says this). Yet the codex seems to give the implication you can modify them. Even looks like people write their own themes. What is correct?

  2. TechGnome
    Moderator
    Posted 8 years ago #

    Well, the general consenes is that you shouldn't modify it... BUT, what is suggested is to make a copy of the theme, give it a new name, then modify the copy. The reason for this is so that if you hork up the coding or something, you can switch it back to the default and not lose anything. This is known as "falling back to the default" - a safety net if you will. Also, if you need to copy over to undo some changes, you haven't lost the original files.

    -tg

  3. techwench
    Member
    Posted 8 years ago #

    Of course you can and should modify themes. That's what they're there for.

    What you shouldn't modify is the WP core files. Basically, anything outside of the wp-content directory. Not that it's a bad thing to modify the core, it's just a pain in the arse if you upgrade. Because you'll have to modify everything all over again.

  4. moshu
    Member
    Posted 8 years ago #

    Well, you can find posts around here telling the newest person not to start modifying the Default... because it's quite complicated if you don't understand how it works.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags