Rebranding Kallyas

There were a few requests from clients wanting to know how to re-brand (whitelabel) Kallyas theme, so we thought we should put together an article describing step by step this process.

If you want to know more about WordPress themes or child themes, here are two tutorials written by the WordPress team that will take you through the whole process of creating a theme or a child theme:

If you are not familiar to how WordPress themes work, I strongly recommend you to go and read a bit about it so what I’m about to say below won’t sound “too strange” or “overly complicated” to you.

Manually rename Kallyas theme:#

The first thing you need to do when re-branding Kallyas is to rename the theme directory. At the moment, its name is “kallyas” and it can be found in the “/wp-content/theme” directory. The path to it, would be {website_root}/wp-content/themes/kallyas. Let’s rename it to MyFancyTheme, so you would need to change the theme’s current directory name from “kallyas” to “MyFancyTheme“.

The next thing you need to do is to edit the theme’s stylesheet file, named style.css, which can be found in the theme’s directory. The path to it would be {website_root}/wp-content/themes/style.css. Edit it with your favorite text editor (Notepad or Sublime are text editors); it should look like this:

/*
Theme Name: Kallyas
Theme URI: http://kallyas.net/
Description: A Highly customizable theme with page builder and unlimited colors.
Author: Hogash
Author URI: http://themeforest.net/user/hogash
Version: 4.0.11.1
Tags: dark, light, left-sidebar, right-sidebar, fluid-layout, custom-background, custom-colors, custom-header, custom-menu, editor-style, full-width-template, theme-options, translation-ready
License: GNU General Public License
License URI: license.txt
Text Domain: zn_framework
*/

You will need to change this line:

Theme Name: Kallyas

to this:

Theme Name: MyFancyTheme

You will also need to change the Author and the Author URI sections too.

After doing all the changes, please go to Kallyas options > Advanced, hit the “Refresh Page builder data” button and then hit the “Save” button. It’ll refresh with the new paths.

 

Rebranding the Child theme:#

If you plan on using a child theme, then you will also need to change the child theme’s directory name from “kallyas-child” to “MyFancyTheme-child“.

Now, edit the child theme’s style.css file. It should look like this:

/*
Theme Name: Kallyas Child Theme
Theme URI: http://kallyas.net/demo/
Description: Child theme for the Kallyas theme
Author: Hogash
Author URI: http://themeforest.net/user/hogash
Template: kallyas
Version: 4.0.11.1
Tags: dark, light, left-sidebar, right-sidebar, fluid-layout, custom-background, custom-colors, custom-header, custom-menu, editor-style, full-width-template, theme-options, translation-ready
Text Domain: zn_framework
*/

You will now need to change this line:

Theme Name: Kallyas Child Theme

to this:

Theme Name: MyFancyTheme Child Theme

 

Another important thing to update is the parent template, so change this line:

Template: kallyas

to this:

Template: MyFancyTheme

 

If you’ve read the article about child themes ( https://codex.wordpress.org/Child_Themes ) you will remember that “Template” will refer to the parent theme’s directory name and not the parent theme’s name.

Now, you can open the child theme’s functions.php file and replace any occurrence of the word kallyas with one of your liking.

 

Changing the Kallyas logo in Kallyas options UI:#

To change the Kallyas options logo, all you need to do is to place an image admin_logo.png in /child-theme/images/ folder.

 

Removing all occurrences of “Kallyas Help”:#

To do this, please copy and paste the code below into the child theme’s functions.php file.

function remove_help_links() {
 echo '<style type="text/css">
   .zn-admin-helplink,
   .zn_option_container[data-optionid="video_link"],
   .zn_option_container[data-optionid="docs_link"],
   .zn_option_container[data-optionid="otherlinks"],
   .zn_option_container[data-optionid="otherlinks"],
   .zn_option_container.zn-custom-title-md { display:none;}
   </style>';
}
add_action('admin_head', 'remove_help_links');