• I’m huge fan of twenty sixteen WordPress theme. Just few mins ago, I updated my theme in the dream of that all bugs were be fixed. But, the simple one click on update increased my homework.

    Please tell me how to create a child theme, from next time.. I don’t want to loss anything after clicking on update button.

    1. Header.php file modification
    2. Schema markup (It would be great, if these thing will be precomes in all WordPress themes)
    3. Function.php custom code (Sorry, I didn’t used Functionality plugin. I accept my mistake. But what can I do? In the love of making site faster, I don’t like to use plugin on step by step for each things.
    4. I lost modification in footer.php file , I had modified credit links.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hi @thegulshankumar,

    To create a child theme you can visit a link given below:
    https://codex.www.ads-software.com/Child_Themes

    And in child theme you have to create a file named style.css and functions.php
    In style.css Theme Name can be Twentysixteen-child & Template name should be Twentysixteen because it is the name of parent theme.

    And Can u please post your site url?
    Thanks

    @thegulshankumar

    Have a look at this: Twenty Sixteen Child Theme

    This child theme will inherit all the functionality and styling of Twenty Sixteen. It’s ready for you to modify with out the worry of losing your modifications after the parent theme gets updated.

    I looked at the codex mentioned above. I am reluctant to create the child theme following the codex step-by-step process because I am not that technical. I could probably spend a few hours and get it done, but why should I when pmmueller (see above) has this simple plugin that will create the child theme?

    Questions: What am I missing? Why would anyone go through all those steps when they can simply download this man’s child theme plugin?

    It sounds so good. When something sounds too good to be true it usually is. No offense intended, pmmueller.

    If this man can create a Twenty-Sixteen Child Theme plugin why doesn’t WordPress create child themes for all their themes?

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    Thanks to all. Now I completely understood.

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    As far I could understood, Child theme is good for overriding style sheet or few templates. But, How can I manage schema markup, because I need to add in all major templates files such as header, index, pages, sidebar, etc.

    pmmueleer: “your account has been suspended” comes up when I try to go to your link

    A child theme is so simple to create. As the Codex says, create 2 files in your child theme folder, one called functions.php and the other, style.css. Copy the code given in the codex into each of these files, make sure you update the theme info to match the one you are making a child theme for, and then activate it. No more worries about changes to the original theme.

    It is important to note that in child themes template files like header.php and index.php can be copied into the child theme and updated as you wish. As for the functions.php file in the parent them, you cannot just copy it into the child theme and go, it won’t work. Because the child’s functions.php file is read before the parent’s functions.php, this complicates its usage in a child theme.

    All in all, if you are using a theme from the www.ads-software.com repository, do use a child theme of it. When the theme changes, as it inevitably will, you will not lose your changes and would only have to make updates to your child theme if something changes in the parent theme that you are changing in your child theme.

    Al

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    @pmmueller I had installed your theme, it was working fine. Inspired, I wanted to delete the complete theme via Appearance > Manage Theme and added own new child theme. After uploading theme, as I clicked activate it showing BLANK page. Note: I had copied and paste same function.php in my child theme. (If you think, this is a mistake, Please tell me what to do here). And, I had all few more templates files.

    I noticed one more serious problem that theme name was changing automatically in file manager. It was showing twentysixten-chid1 instead of just twentysixteen-child.

    Summary : I want to have basic schema markup added templates.
    I want to have basic function code added modified function.php
    That’s why I want to create a child theme.
    Please help me

    @guishan Kumar and @i am hungry
    Sorry, but it is not my theme. I only provided the link that unfortunately no longer works.

    @almcr
    It seems as if the account indeed isn’t available any longer, but it isn’t my account…

    And I know that it is simple to create a child theme, but “not-so-technical” beginners often find it helpful to start with a ready-made child theme (see “I am hungry” comment above). That’s why I provided the link that I literally had come across two minutes before reading the first post in this thread. I was only trying to help by creating a “link” between a question and an answer ??

    @guishan Kumar
    I am not sure what exactly you deleted, but you cannot simply delete the original Twenty Sixteen theme. A child theme only works, if the original theme is still in place. It is built on top of that, so to speak.

    I suggest that you thoroughly read the post from “almcr” above and then the section about Child Themes in the Codex and try again from there.

    @all
    A ready-made-child-theme gives “non-technical” users a little boost at the beginning and that’s why I copied the link and published it here.

    But: If you’re not at all familiar with the way WordPress themes are built and with writing HTML, CSS and a little PHP you will most probably run into problems when trying to modify the child theme.

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    I had visited your link same day when you had posted. Yeah. Now it is showing suspended. It’s completely okay. Today, I have created a child theme for my blog using a plugin.

    I just created child theme of Twenty sixteen with child themify plugin and activated it,
    I found nothing in editor of child theme there is no any header.php
    there is only a file name style.css,my question is how to create new file such has header.php, footer.php and many more..because i want to modify header and footer.Please help me I am newbi and i did not know any thing?

    Thread Starter Gulshan Kumar

    (@thegulshankumar)

    @sarawp It is very easy. For example, If you want to override header.php, just you have to place new header.php file in your child theme folder.

    All this is well and good but the problem I have is the child theme style.css is loading fine from tracking in chrome developer tool, but something else is overwriting what I set in the child theme style.css. I have checked everything in the other php files in the twentysixteen folder. I am not sure what is overwriting my settings. Help!

    Just to be more exact, I am trying to change just the color of the entry-title to purple to match the rest of the site (all the headers are purple in color with white text below). Using wordpress networked in iframes on the site for various articles, video, pictures and a blog.

    @pmmueller THANKS SOOOO MUCH! after several attempts, the link you provided (https://hyperlinkcode.com/blog/twenty-sixteen-child-theme/) for the child themes has renewed my enthusiasm to continue ??

    @dbora31 Thanx for letting us know that the link to the Twenty Sixteen Child Theme works again.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘How to a Create Child Theme of Twenty Sixteen?’ is closed to new replies.