Advertisement:

Author Topic: Error modifying theme Osclass  (Read 399 times)

abdelbassit

  • Newbie
  • *
  • Posts: 1
Error modifying theme Osclass
« on: July 15, 2014, 01:50:29 pm »
Hello,

I'm trying to modify theme osclass, but when I try to upload the zip file to my website gives me error "There was a problem adding the theme".
The changes I've made are:

In index.php.

<?php
/*
Theme Name: My Own Modern Theme
Theme URI: http://chri.eshost.es/Osclass/
Description: This is my custom version of modern theme
Version: 1.0
Author: Me
Author URI: http://chri.eshost.es/Osclass/
Widgets: header,footer
Theme update URI:
*/

    function mymodern_theme_info() {   //<--- this es important to modify
        return array(
             'name'        => 'My own Modern Theme'
            ,'version'     => '1.0'
            ,'description' => 'This is my own modern theme'
            ,'author_name' => 'Me'
            ,'author_url'  => 'http://chri.eshost.es/Osclass/'
            ,'locations'   => array('header', 'footer')
        );
    }

?>

to modify the theme I unzip the modern_3 theme, I do the changes then I compressed the file again.

Thanks