WordPress.org

Ready to get started?Download WordPress

Forums

Change Widget h2 to image (2 posts)

  1. jjkilpatrick
    Member
    Posted 5 years ago #

    Hi,

    I've been trying to replace the title of my different widgets to images.

    For instance changing the pages title to a image i've drawn.

    <li id="pages-4" class="widget widget_pages">
    <h2 class="widgettitle">Pages</h2>

      I'm not sure how to style this in my css.

      My site is http://memoiries.com/

      I'd like the widget titles to be similar to that of my logo.

      Could anyone help?

      Thanks

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Try:

    <li id="pages-4" class="widget widget_pages">
    <h2 class="widgettitle"><span>Pages</span></h2>

    and

    .widget_pages h2 {background:url(images/pages.jpg) no-repeat left top;}
    .widget_pages h2 span {display:block;position:absolute; top:-5000px;left-5000px;}

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags