WordPress.org

Support

Support » Themes and Templates » bug in Categories print in sidebar (with typo), how to fix?

bug in Categories print in sidebar (with typo), how to fix?

  • can somebody help me out with this:

    link with picture

    developing site:
    http://johnvandorst.com/temp/

    Please note in the red circle how the category links show ” at the end, that are really part of an imperfect class decoration; the final ” character is now printed at the end of the category name.

    Where can i correct this typo? In which .php file from WordPress?

    Note it is not in my theme files, this is why the pic shows Kubrick default theme).

Viewing 5 replies - 1 through 5 (of 5 total)
  • Ok I am stumped. Can you help me understand why are you showing a screen shot of a kubrick theme and linking to something that looks totally different and doesn’t present the issue? 🙂

    That aside I would wager issues in the sidebar are going to be in sidebar.php

    Ooops! You’re quite right, sorry.

    I’ve changed theme back again to Kubrick so that my problem is visible.

    Thank you for noticing this.

    It’s not in the sidebar, because that simply has:

    <li id="categories">
    				<h3><?php _e( 'Categories', 'sandbox' ) ?></h3>
    				<ul> <?php wp_list_categories('title_li=&show_count=0&hierarchical=1') ?> </ul>
    			</li>

    nothing strange going on here, no?

    or, the code in the default theme:
    <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>

    if you hover your mouse over those links you can see it says

    Show all posts under <span class=

    My guess is you have an improperly closed span in there somewhere but I don’t have the entire sidebar.php code in front of me so I can’t say where it might be.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘bug in Categories print in sidebar (with typo), how to fix?’ is closed to new replies.
Skip to toolbar