So what if you want to change the RSP default theme? You go into the theme folder and change the HTML or CSS to how you want. But the next time RSP updates the theme you lose your all your changes This is the wrong way to do it. So how do i do it the right way? Here's how, you need to make a child theme by following the instructions below.
1) Decide on your new theme name, better to keep it lowercase and all one word. For this example I am going to use amazinghost
2) Create a new folder in wp-content/themes and call it 'amazinghost'
3) Create a new file in the folder called 'style.css' containing the following text
** This code allows you to build/extent the business satellite theme, if you are using another theme such as Next Level just replace the theme you are extending
Now for example you want to change the logo or replace the telephone number with your own custom number, you need to edit the header.php file. So you copy the header.php file into your new child theme ie wp-content/themes/amazinghost/header.php
Next you edit the header file within your theme to contain the changed HTML which you want to display. So where it says
We change it to
This will now display the telephone number as 0800 123 4567 (ID:your store id)
You can also use this to change the logo. Take off the live chat support (maybe you have your own solution) and make changes to the theme which will not be overwritten if the main theme changes!
1) Decide on your new theme name, better to keep it lowercase and all one word. For this example I am going to use amazinghost
2) Create a new folder in wp-content/themes and call it 'amazinghost'
3) Create a new file in the folder called 'style.css' containing the following text
Code:
/* Theme Name: Amazing Host Theme Theme URI: http://www.amazinghost.com Description: Theme for Amazing Host Author: Amazing Host CEO Author URI: http: //www.amazinghost.com Template: business-satellite Version: 0.1.0 */ @import url("../business-satellite/style.css");
Now for example you want to change the logo or replace the telephone number with your own custom number, you need to edit the header.php file. So you copy the header.php file into your new child theme ie wp-content/themes/amazinghost/header.php
Next you edit the header file within your theme to contain the changed HTML which you want to display. So where it says
Code:
<div id="header_phone"> <span class="rpwp_arial">+</span><?php if (function_exists('rp_support_phone')) echo substr(rp_support_phone(), 1); ?> <span class="small">(ID:<?php echo $GLOBALS['rp_info']['store_id'];?>)</span> </div>
Code:
<div id="header_phone"> 0800 123 4567 <span class="small">(ID:<?php echo $GLOBALS['rp_info']['store_id'];?>)</span> </div>
You can also use this to change the logo. Take off the live chat support (maybe you have your own solution) and make changes to the theme which will not be overwritten if the main theme changes!
Comment