WordPress.org

Ready to get started?Download WordPress

Forums

Add code into widget titles? (1 post)

  1. Laura Fischer
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic