• How do I include code in my widget titles? I need to have spans wrapped around english and spanish versions of the same title.

    ie.
    <span class="english">Category</span><span class="spanish">Categorías</span>

    I’ve already tried this in sidebar.php:
    <?php wp_list_categories('show_count=1&title_li=<h2><span class="english">View Trucks by Category</span><span class="spanish">Ver Camiones por Categor&iacute;a</span></h2>'); ?>

    Not just for the category widget, there is recent posts and a textbox. Thanks.

  • The topic ‘Add code into widget titles?’ is closed to new replies.