Advertisement:

Author Topic: Help needed in creating osclass bender child theme  (Read 971 times)

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Help needed in creating osclass bender child theme
« on: July 25, 2017, 02:36:02 pm »
Hello,
I've read this https://doc.osclass.org/How_to_create_a_child_theme

I've created bender-child folder in oc-content/themes/

I've copied all the content of the bender folder into the new bender-child folder (As I have so many modified files in bender...)

I've modified in the index.php child's theme:

/*
Theme Name: Osclass CHILD Bender Theme
Theme URI: http://osclass.org/
Description: This is the Osclass CHILD bender theme
Version: 3.1.4
Author: Osclass
Author URI: http://osclass.org/
Parent Theme: bender
*/

But I can't see the child theme in osclass admin......
« Last Edit: July 25, 2017, 02:39:51 pm by marius-ciclistu »

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Help needed in creating osclass bender child theme
« Reply #1 on: July 25, 2017, 05:46:30 pm »
I never used child themes, but i don't think that you will see the child theme in admin. If you modify the child theme you see the modifications in front end?

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Help needed in creating osclass bender child theme
« Reply #2 on: July 25, 2017, 07:32:43 pm »
As it is not activated, no:) I want to use child theme because I've modified it alot and, as it is in the case of other opensources, after update the child theme is not modified, but I gues it's not possible in osclass' regard. I saw another 2 posts 1-2 years old around with no replies.

PS. or should I see the mods only by creating a child theme of the current theme?
« Last Edit: July 25, 2017, 07:37:12 pm by marius-ciclistu »

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Help needed in creating osclass bender child theme
« Reply #4 on: July 25, 2017, 11:06:11 pm »
Thank you.
So bender_child or benderchild should be the folder not bender-child.
That put the child in admin.
Now the problem is that on preview the page is blank:)

EDIT.
It seems functions.php must not be copied entirely but must contain only the new added functions.
After reading the threads until the end I decided to not use child theme :)) To many modifications needed...

Thank you, I didn't found that topic before I posted this topic.
« Last Edit: July 25, 2017, 11:23:26 pm by marius-ciclistu »

cartagena68

  • issues
  • Hero Member
  • *
  • Posts: 1198
Re: Help needed in creating osclass bender child theme
« Reply #5 on: July 25, 2017, 11:40:28 pm »
i just tried and is working
Create a folder named bender_child
Inside this folder create an index.php whith this code
Code: [Select]
<?php
/*
Theme Name: bender_child
Description: bender child
Version: 1.0
Author: you
Author URI: http://yousite.com
Parent Theme: bender
*/
?>

copy the file you want to modify from bender to bender_child folder
Modify the file
activate the bender child from oc-admin
you should see the changes

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Help needed in creating osclass bender child theme
« Reply #6 on: July 25, 2017, 11:54:02 pm »
In my case bender theme is almost a new theme so I must copy all the files sass css etc.
For me, it doesn't worth creating child theme in these conditions as it gives me new issues to resolve.

Footer, main.css etc need additional coding in order for this to work and I prefer not to.
« Last Edit: March 26, 2018, 07:30:34 pm by marius-ciclistu »