So this has been a known issue with this particular theme for a year and a half and it’s still not resolved. In short, here’s the main issues that contribute to poor behaviour when this is used as a parent theme:
1. The theme uses get_stylesheet_uri()
in the parent theme to load its stylesheet. While this would be the expected practice for a standalone theme, when used as a parent, it causes an issue where we can’t dequeue and re-enqueue the child stylesheet in an appropriate order.
2. The stylesheet is enqueued without passing a version parameter. This means that unless I manually change the parent’s functions.php
file and pass time()
as a parameter, I can’t cachebust when behind a CDN.
The entirety of the issues revolving around the bad enqueueing practice for this theme can be resolved by updating line 138 of functions.php
to read wp_enqueue_style( 'style-css', get_template_directory_uri() );
Why?
Because this allows us properly override the stylesheet in a child theme, cachebust the stylesheet at will, and when manually altering the enqueue order in a child theme, it’s not loading the child theme’s stylesheet twice.
As it currently is written, the child theme will load CSS twice because the parent theme is overextending its scope and using the wrong function to pull the stylesheet from the active theme, rather than the parent theme’s directory.
It’s a simple fix, it conforms to the expected behaviour for parent themes and all around makes things easier for developers using your theme as a parent.
Am I missing something blatant here? This seems pretty obvious to me.
]]>I have a functions.php file in my child theme. The link to the style.css file is not present in the pages when I add the functions.php file to my child theme. I had to copy the functions.php file from the bootstrap-canvas-wp directory to the child theme directory to get the style.css link to appear.
Please advise.
]]>Hello,
I used this theme to build my child theme and it was working fine. However with the latest update I can not access my site and get the following error.
Fatal error: Class ‘wp_bootstrap_navwalker’ not found in /home1/boisecoo/public_html/wp-content/themes/bcctheme/header.php on line 82
how can I fix this error? here is my site https://boisecookingcompany.com/
thanks,
Lisa
i am trying to add an additional/custom widget to a child theme of bootstrapcanvaswp in the child’s functions file but so far I had no success. can anybody point me in the right direction or paste some code here? Thank you!!!
]]>Buenas tardes! este theme es compatible con la ultima version de WP? es un theme limpio 100% personalizable? Algun soporte en Github?
]]>How can I make the front page show unlimited number of posts?
]]>Hello,
I have a category tree that is 3 levels deep, but the menus seem to only go as far as the first level, then ignore anything deeper than that. Here’s an example of my tree:
LEVEL 0
level 1
level 2
level 2
level 3
level 2
and here’s what’s been shown on the menu:
LEVEL 0
level 1
Changing the ‘depth’ argument in wp_nav_menu() where the menu appears doesn’t seem to work. What am I missing please?
]]>Hi, I love your theme. It has been very smooth to customize.
I am wondering how I can change the nav so that you can access submenu by mouseover/hover instead of having to click.
Thank you
]]>Hi, great canvas, thanks. When I create a child theme my post titles have completely disappeared on the index page. Do you have any idea why? I have some custom CSS, but nothing relating to titles, and have not edited the parent theme at all.
Thanks.
]]>Hello,
is it possible that you change the order of the css, so that the style.css is enqueued after the blog- and bootstrap-css?
Now it′s a little bit annoying because if I make a child-theme my style.css is loaded before blog- and bootstrap-css and I can′t overwrite things without an extra body-class or !important.
Thanks,
Jan
This theme is nice but how can I add an image for the logo?
]]>