Viewing 2 replies - 1 through 2 (of 2 total)
  • if you want to hard code it look for

    function wp_widget_recent_entries($args) {}

    in

    wp-includes/widgets.php

    Thread Starter sheridanpassell

    (@sheridanpassell)

    Thanks. My knowledge is very basic, so how do I alter the following to put a jpeg in place of the title?

    function widget_recent_entries($args) {
    extract($args);
    $title = __(‘Recent Posts’, ‘widgets’);
    $r = new WP_Query(‘showposts=10’);
    if ($r->have_posts()) :
    ?>
    <?php echo $before_widget; ?>
    <?php echo $before_title . $title . $after_title; ?>

    <?php echo $after_widget; ?>
    <?php
    endif;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to swap widget title for an image?’ is closed to new replies.