Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to modify(Remove) parent theme feature within child theme

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 82
    Comment on it

    Hello reader's, in this blog I discussed ablout "How to Modify(Remove) Parent Theme feature Within Child Theme".

    We all know that parent theme and child theme follow inheritance.
    The basic meaning of Inheritance is, child theme get the property of the parent theme. In other words, child theme get all the feature and functionality of the parent theme. If we can work on parent child theme we can write the code on the child theme not the parent theme.
    By default our child theme get all the functionality of parent theme, in case we want some extra functionality then we can write the code in our child theme.

    To remove or modify parent theme feature within child theme. There are two ways to modify your child theme:-

    1. functions.php
    2. style.css

    You have to write the below code into your functions.php file

    <?php 
    function remove-parent-theme-functionality() {
        remove-theme-support( 'post-formats' );
        remove-theme-support( 'post-thumbnails' );
        remove-theme-support( 'custom-background' );
        remove-theme-support( 'custom-header' );
        remove-theme-support( 'automatic-feed-links' );
    }
    ?>
    
    1. Style.css = You can write your onw css according to you.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: