- Advertisement -
It is not advisable that you edit Carrington mobile theme or any other theme directly to the parent theme. Today I want to share some guides on how you can create carrington mobile theme child theme.
Wordpress is so vast that you can achieve anything you want even when the function is not available. I have chosen to provide you with all the guide you may ever need to edit carrington mobile theme. Please read other posts on carrington mobile themes as I have reading a lot of guides. Interestingly this is the theme our site daily4mative.com is built with. And for this any customization related to carrington mobile theme is so much simplified for you. Now read below on how you can create carrington Mobile child theme.
Follow below steps to Create child theme for Carrington Mobile
STEP 1. go through your cpanel and create a folder bearing the name of your child theme (carrington-mobile-child)
STEP 2. Inside this folder create a file style.css and add this codes /*
Theme Name: Carrington Mobile Child
Theme URI: http://playlist.daily4mative.com/Carrington-mobile-child/
Description: Carrington mobile Child Theme
Author: Tophits
Author URI: http://playlist.daily4mative.com
Template: carrington-mobile
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: carrington
*/
STEP 3. After this create another file and call it function.php and add <?php
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
function my_theme_enqueue_styles() {$parent_style = ‘parent-style’; // This is ‘carrington-style’ for the Carrington Mobile Theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/css/advanced.css’,
array( $parent_style ),
wp_get_theme()->get(‘Version’)
);
}
Thats all. Move over to your wordpress dashboard and activate it and any editing of files you do on it will reflect on front end. For example you can change the background of your site from there very easy by saying
bode {
backround: #ff0000;
}
With the above code added to the style.css you created it will override your former background and change it to red background.