Overwrite template page (3 posts)

  1. cionzi
    Posted 3 years ago #

    Hi, I'm using Gamepress theme and I'm trying to personalize permanently the home page. I've modified page.php as I need. The BIG problem is that when the theme needs an update the files .php will be overwritten and every time I update the theme I have to personalize page.php again. In Drupal, for example, I can create files of this type: node--page.php: every time I update the theme page.php is overwritten by my own file node--page.php and the personalization remains. Does a similar opportunity exists for wp to? Thanks sooooo much!


  2. W.P. Ginfo
    Posted 3 years ago #

    Hi Chiara,

    1. make a backup of your site, every time you're making changes!!


    2. Don't make any changes to a theme itself. Instead make the changes to a childtheme. Should the author of your original theme update the theme, your changes will not be overwritten. Your site with your adaptations will remail intact.
    (see: http://codex.wordpress.org/Child_Themes )

    Install and use 'one click child-theme' to create a childtheme for you. [no syntax errors!]

    3. Use FTP to access the files of your site and it's childtheme.
    Use NOTEPAD++ or proper EDITOR [not wordprosessor] to edit css and php.
    4. Make the changes in the CHILDtheme!
    - copy php files / css-file(s) of the original theme [as required] to the childtheme directory and edit them as required.

  3. cionzi
    Posted 3 years ago #

    Thanx!! I'll try asap!


Topic Closed

This topic has been closed to new replies.

About this Topic