Advertisement:

Author Topic: after renaming the theme folder i am redirecting to bender theme PLEASE HELP  (Read 1135 times)

Sanvi

  • Newbie
  • *
  • Posts: 10
Dear All,
i am again here to disturb you  ;D :D
i am renaming my theme folder name (theme name to my name) but after renaming the theme folder i am redirecting to bender theme please help me i want to rename the theme folder i want to rename my theme folder name
Thanks

teseo

  • Hero Member
  • *****
  • Posts: 6169
Hi,

At the very least you need to modify your theme index.php. And then there's a lot of translations still pointing to your original theme name, i.e.

Quote
__('Select a category', 'bender')

Regards

Sanvi

  • Newbie
  • *
  • Posts: 10
I have already changed the name of the theme in index.php
and also renamed the theme folder but still not resolved i am redirecting to bender theme.
please help i want my existing theme after rename the theme folder name.

teseo

  • Hero Member
  • *****
  • Posts: 6169
???

Sorry, don't know what's happening to you.


oc-content/themes/[theme_folder]/index.php:

Code: [Select]
return array(
             'name'        => 'bender'

Make sure your new name doesn't contain any spaces.

Regards

fog

  • Hero Member
  • *****
  • Posts: 1062
Hi, if you followed all instructions from teseo and not works yet, is because in other circumstances, you only renamed it, but the preference value is the same for bender or other theme not exists anymore (bender, per example). So, maybe your bender now is from gui folder, because osclass not find the saved preference theme, and return bender theme by default.

1 -  Choose bender first on admin as preference and save it (if not exists bender anymore, you need put the bender theme there again and make sure is the preference theme saved).

2-  After, choose your new renamed theme as preference and save it. If not works, is because your changes of index.php are wrong or incomplete.

See the correct example for modify index.php of a clone of bender theme for other theme name. ie: "mytheme":

Code: [Select]
<?php
/*
Theme Name: mytheme
Theme URI: http://osclass.org/
Description: mytheme
Version: 3.0.0
Author: Osclass
Author URI: http://osclass.org/
Widgets:  header, footer
Theme update URI: mytheme
*/

    
function bender_theme_info() {
        return array(
             
'name'        => 'mytheme'
            
,'version'     => '3.0.0'
            
,'description' => 'mytheme'
            
,'author_name' => 'Osclass'
            
,'author_url'  => 'http://osclass.org'
            
,'locations'   => array()
        );
    }

Another attention you need is the name of the functions of your new bender renamed. You need rename all functions of your new theme renamed, or you will have problems with duplicate functions with same name on orginal bender theme.

Regards

Sanvi

  • Newbie
  • *
  • Posts: 10
ok today is holiday so i will try these steps tomorrow and then inform you asap.

Thanks for the support  :)

Sanvi

  • Newbie
  • *
  • Posts: 10
(RESOLVED)
« Reply #6 on: December 14, 2015, 07:38:57 am »
THANK YOU SO MUCH YOU BOTH ARE SUCH A ANGEL FOR ME THANK YOU SO MUCH AGAIN  :) :) :) :) :) :)
ISSUE HAS BEEN RESOLVED AND I AM USING THE THEME AFTER RENAMING EVERYTHING.  :) :) :D :D


But One Thing If i am installing the theme by login to admin panel its not uploading showing error says (No File Uploaded)
after installing the theme by Cpanle its working fine..
can you give me any suggestion to make Eligible to install the theme by login to admin dashboard?
Thanks  :)

Aficionado

  • Guest
----removed by author----
« Last Edit: December 14, 2015, 12:38:30 pm by Aficionado »