The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Add code into widget titles? (1 post)

  1. Laura Fischer
    Posted 6 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.

    <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