Title: Subcategory images
Last modified: August 30, 2016

---

# Subcategory images

 *  Resolved [skb](https://wordpress.org/support/users/skb/)
 * (@skb)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/subcategory-images/)
 * I’m not sure if this is because I’ve used a child theme or not but…
 * When I use a sub-category, the path for the + image seem to be looking in the
   wrong directory.
 *     ```
       <span class="switch">
       <img src="XXX/wp-content/themes/twentytwelve-child/kbe_images/kbe_icon-plus.png"/>
       </span>
       ```
   
 * rather than
    `url(XXX/wp-content/themes/twentytwelve-child/wp_knowledgebase/images/
   kbe_icon-plus.png)` Although, when I click on the broken image, it appears for
   a moment and then “breaks” again.
 * [https://wordpress.org/plugins/wp-knowledgebase/](https://wordpress.org/plugins/wp-knowledgebase/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/subcategory-images/#post-6410979)
 * If you’re using a child theme then the WP Knowledgebase template files (css, 
   images etc) should have been copied to the child theme on activation. So your
   first example is in fact correct behaviour… ie it’s looking in the right place
   for that image… the problem perhaps then becomes why isn’t the image there? Can
   you try deactivating and reactivating the plugin? This should force the plugin
   to copy across those template files again if they don’t already exist?
 *  Thread Starter [skb](https://wordpress.org/support/users/skb/)
 * (@skb)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/subcategory-images/#post-6410994)
 * Sadly, didn’t work. Not to worry, I’ll copy them manually. It’s not harming the
   operation of the plugin in any way, so it’s no big deal. Thanks for the plugin!
 *  Plugin Contributor [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/subcategory-images/#post-6410998)
 * No worries skb – yep manual is the way to go. Probably some permissions issue
   that prevented them copying…
 *  [craig_p](https://wordpress.org/support/users/craig_p/)
 * (@craig_p)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/subcategory-images/#post-6411106)
 * I have the same problem. But there is no directory in my site similar to what’s
   listed below. It simply doesn’t exist.
 * “/wp-content/themes/wpaid/kbe_images/”
 * But there **is** a directory with all images intact similar to below.
 * “/wp-content/themes/wpaid/wp_knowledgebase/images/”
 * The problem is the plugin doesn’t want to pull from the second option above, 
   but the first option, and does not find the images. What to do? Should I attempt
   to edit the plugin? Or create an entire directory manually for the plugin to 
   pull from?
 *  [craig_p](https://wordpress.org/support/users/craig_p/)
 * (@craig_p)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/subcategory-images/#post-6411107)
 * Never mind. I just manually created the directory “wp-content/themes/wpaid/kbe-
   images” and copied the plus and minus symbols into there and the site worked.
   I’ll just have to be careful if I ever upgrade because all these changes will
   be impacted.
 * All in all, I LOVE this plugin.
 *  Plugin Contributor [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/subcategory-images/#post-6411108)
 * Thanks for the update Craig. I’m actually working on a bit of a renovation to
   how this templating system works which should fix this (and related) problems
   in the future. I think the current way of trying to automatically copy the templates
   into the theme in the right place just isn’t working effectively. So I’m moving
   to a more manual method (similar to WooCommerce) whereby the plugin looks for
   the templates in the theme, and if not there, will instead fallback to using 
   the templates in the plugin directory. That way, users who want to customise 
   the design can manually copy the templates into the correct place in the theme,
   and it will be totally within their control. It will also ensure we don’t have
   overwrite problems on updates.
 * Anyway glad you like the plugin, and thanks for reporting back 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Subcategory images’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-knowledgebase_c56559.svg)
 * [WordPress Knowledge base & Documentation Plugin - WP Knowledgebase](https://wordpress.org/plugins/wp-knowledgebase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-knowledgebase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-knowledgebase/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-knowledgebase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-knowledgebase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-knowledgebase/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/subcategory-images/#post-6411108)
 * Status: resolved