How to Create Child theme for Carrington Mobile Theme

Posted in Tech by:

How to Create Child theme for Carrington Mobile Theme

It is not advisable that you edit or any other theme directly to the parent theme. Today I want to share some guides on how you can create 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 . Please read other posts on carrington mobile themes as I have reading a lot of guides. Interestingly this is the theme our site tophits.ng is built with. And for this any customization related to 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://tophits.ng/Carrington-mobile-child/
Description: Carrington mobile Child Theme
Author: Tophits
Author URI: http://tophits.ng
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 .
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.
 

Need more information on How to Create Child theme for Carrington Mobile Theme ? Click LEARN More or FIND OUT MORE on image BELOW 👇

More from Carrington Mobile Theme

Check post from Tech category

Leave a comment

Author’s Suggestion
Top music

Tophits.ng – Naija Free MP3 UPLOAD AND downLoads

TopHits is a digital music, podcast, and video streaming service that gives you access to millions of songs, Gossips and other content from artists all over the world. Basic functions such as playing music are totally free, but you can also choose to upgrade to Premium.
We are #1 Nigerian latest music streaming at the moment.  There are no premium accounts for artists, and free accounts include unlimited storage, whether you have one song or one thousand.

How to upload a track on tophits.ng

To upload your music on tophits.ng please follow below guides. 

  1. Log in or create a free account on Tophits
  2. After you have created the account on tophits message the admin on WhatsApp  for your account to be upgraded (Your account must be upgraded before you can post a song.)
  3. After your account has been upgraded log in
  4. Click on Upload located closely to your profile picture on menu bar.
  5. Enter your song details(eg. Title, song description, cover or artwork, stream or your mp3, artist name, genre, etc.)
  6. Click submit(Once you are done click on submit and wait for admin approval)

NB: To make admin approval of your song faster on tophits please send direct message notifying him of your new pending track.