*

Jmystic

  • **
  • 8 posts
  • Hit me up for collaborations.
CSS costomization not working in Child theme
« on: October 31, 2023, 12:19:32 PM »
Hello Team,

I need help with this please. I've followed the instructions on this blog post https://osclasspoint.com/blog/osclass-create-child-theme-b21 but when I add customization to the style-child.css, it doesn't reflect on my site.

I think i missed a step because I still don't know where to add this code <link href="https://my-website/oc-content/themes/epsilon/css/style-child.css" rel="stylesheet" type="text/css" />

Should it be added on the epsilon head.php file? And is this be why my customization isn't reflecting?

Also I noticed the category icons on my homepage isn't showing. How do I fix this please?
A female developer constantly looking to grow and always ready to help those with the same mission ;)

*

MB Themes

Re: CSS costomization not working in Child theme
« Reply #1 on: October 31, 2023, 02:55:51 PM »
This is the step:
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')

It's also expected you use latest Osclass version.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots