*

abdul

  • ***
  • 216 posts
Child theme not working
« on: May 16, 2020, 07:21:25 AM »
Hi as per your blog article https://osclasspoint.com/blog/osclass-create-child-theme-b21  I did all the changes, but still, I am facing an issue on-site.
could you please check that where is the issue?

this is the code I pasted in function.php

Code: [Select]
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')

error; It was reflecting on the page header http://prntscr.com/shrdqs
using gamma theme

Marked as best answer by frosticek on May 16, 2020, 12:42:06 PM
*

MB Themes

Re: Child theme not working
« Reply #1 on: May 16, 2020, 08:45:28 AM »
You need <?php and ?> tags in php file
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

abdul

  • ***
  • 216 posts
Re: Child theme not working
« Reply #2 on: May 16, 2020, 09:00:18 AM »
You need <?php and ?> tags in php file

Done Thank you