Support » Theme: The Bootstrap » single.php not overidden by child theme

  • ljkeashly

    (@ljkeashly)


    Hi,

    I have made a child theme from the-bootstrap. All pages, the blog overview page are using my child theme, but when you click into a single post, it is using the-bootstrap theme instead of the child theme.

    I can not figure out why a single post would use the parent theme rather than the child theme, like all the other pages.

    Here is a child theme page: http://wordpress.line49.ca/blog/
    Here is the post page: http://wordpress.line49.ca/news1/

    Can anyone help figure out why single.php is using the-bootstrap version instead of the version in my child theme. None of the child theme css files are getting called either.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m assuming you have single.php in your child theme.

    I notice that it’s only single that shows this behavior. Other pages, etc. seem to work and pull in the correct format.

    On the page that works, you’re getting bootstrap.css from your child theme. On the page that doesn’t, you aren’t. My guess is, something is going wrong in the header generation. How are you building your header? Are you getting the header differently in single vs. the pages that are working?

    I overrode the parent bootstrap.css differently. I modified the parent theme to include a configuration option that tells it to get bootstrap (and js files) from the child theme. See these two pulls on Github if you’re interested. It may give you some ideas.

    https://github.com/obenland/the-bootstrap/pull/44
    https://github.com/obenland/the-bootstrap/pull/45

    Maybe that helps debug.

    Hi,

    I still haven’t been able to figure out what is causing the issue. I have single.php in my child theme, but it is not getting used, the parent’s single.php file is getting used. I cant figure out why the parent’s single.php file is being used instead of the child’s single.php file.

    I have tried taking everything out of the child’s style.css except for the top comment with the theme name and template. I have tried taking everything out of the child’s functions.php file. It still is using the parent theme for showing a single blog post.

    What in wordpress decides what theme to use and why would it decide to use a different theme on some pages when you only have the child theme activated.

    I have also found that a category page is using the parent theme, but an archive page is using the child theme.

    I really need to get this working, but I don’t know where to go from here.

    Any suggestions would be appreciated.

    Thank you.

    Hi,

    I finally found what was causing this issue. It is a plugin that was installed in the site: “GYS Themed Categories””.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘single.php not overidden by child theme’ is closed to new replies.