Sub-article icons
-
Don’t know much about this but I am getting an error with the “+” and “-” icons for sub-articles. The link to the minus icon has the directory listing for the plus icon with the directory for the minus icon at the end. You can see why this happens in the code at the bottom from “wp-knowledgebase.php”. Here is the output:
<img src=”https://<site URL>/wp-content/plugins/wp-knowledgebase/template/images/kbe_icon-plus.png/template/images/kbe_icon-minus.png”>
So the original “+” icon works when the page is displayed, but when you click on it, you get the error above and the “+” icon remains. Click on it again and it tries to tack on the plus icon directory info, still will show the “+” icon.
I think I can fix this but wondering if this is in the original code or got in there with a setting I used.
jQuery('div.kbe_category > span.switch').click(function () { var tree_id = jQuery(this).parent().attr('id'); if (jQuery(this).hasClass('open')) { jQuery(this).parent().find('div:first').slideUp('fast'); jQuery(this).removeClass('open'); jQuery(this).html('<img src="<?php echo plugins_url('template/images/kbe_icon-plus.png',__FILE__) ?> kbe_icon-plus.png" />'); } else { jQuery(this).parent().find('div:first').slideDown('fast'); jQuery(this).html('<img src="<?php echo plugins_url('template/images/kbe_icon-plus.png',__FILE__) ?>/template/images/kbe_icon-minus.png" />'); jQuery(this).addClass('open'); }
- The topic ‘Sub-article icons’ is closed to new replies.