*

Smithtech

  • ****
  • 219 posts
Child Theme for Gamma
« on: January 22, 2021, 12:54:11 AM »
I want to create a child theme for Gamma so that my modifications will not vanish after update; but it doesn't seam to be working. I have followed the steps in doc and the blog but none of them yielded results.
Could you please assist me create a functional child theme?
Is it possible to provide the core files for the child theme so that I can download and build on it? Because I have followed the documentation and the blog but it didn't work.
Thank you

*

MB Themes

Re: Child Theme for Gamma
« Reply #1 on: January 22, 2021, 10:41:11 AM »
@support
If you would follow steps in docs, it would work.
What exactly have you done and what were your steps?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: Child Theme for Gamma
« Reply #2 on: January 22, 2021, 11:31:54 AM »
I have tried several means. This is one of them.

I created a folder with the child theme's name
Created index.php in the child theme's folder with this model

/*
  Theme Name: Child theme name
  Theme URI: http://www.osclass.org/
  Description: This is the Osclass CHILD bender theme
  Version: 1.0
  Author: Osclass team
  Author URI: http://www.osclass.org/
  Parent Theme: gamma
*/


I copied function.php from gamma theme into child themes folder

I didn't include screenshot.
Tried to preview theme but it returns This page isn't working

*

MB Themes

Re: Child Theme for Gamma
« Reply #3 on: January 22, 2021, 11:52:27 AM »
@support
https://osclasspoint.com/blog/osclass-create-child-theme-b21

I cannot find any information about copying functions.php into child theme
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: Child Theme for Gamma
« Reply #4 on: January 22, 2021, 11:57:50 AM »
I did that as well.
It didn't work.

this code of the function.php is now echoing on under navbar

function gam_child_custom_css() {
 osc_enqueue_style('style-child', osc_current_web_theme_url('css/style-child.css'));
}

osc_add_hook('header', 'gam_child_custom_css')

« Last Edit: January 22, 2021, 12:03:47 PM by support »

*

MB Themes

Re: Child Theme for Gamma
« Reply #5 on: January 22, 2021, 12:23:27 PM »
@support
You have entered php code between <?php ?> tags right?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: Child Theme for Gamma
« Reply #6 on: January 22, 2021, 06:56:59 PM »
Thank you very much.

It came now but can't get the translations

*

MB Themes

Re: Child Theme for Gamma
« Reply #7 on: January 22, 2021, 07:16:40 PM »
There was topic about child theme translations on forums.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots