Skip to main content

CSS - Widget Title Icons, 64px, 32px & 16px

CSS Widget Title Background Image

Follow the steps below to add a custom icon to the title of a widget.

Requirements

Dimensions of your icon (height & width)

How It Works

The technique adds padding to the left of the widget title and inserts a background image. You get the advantage of having a custom image for each widget.

Instructions

  1. Copy (ctrl-c) and paste (ctrl-v) the CSS code provided below into the bottom of your commmunity's Advanced Theme Editor (located in the Control Panel under THEME).
  2. Upload your icon image to your community image gallery
  3. Get the "Image Path" by copying the image download link (i.e. Firefox - right click > Copy Link Location)
  4. Paste the Image Path into the CSS code so that it replaces the text "IMAGE_PATH_HERE" - Example Image Path: http://www.igloosoftware.com/download/gallery/icons/calendarpng?attachment=1
  5. Click "Publish" to save your changes

Copy The Code Below: 16px Icon

Copy The Code Below: 32px Icon

Copy The Code Below: 64px Icon

Applying Your New Icon To A Widget

  1. Edit page
  2. Edit the widget you want the icon to be applied to
  3. In the pop-up window select the Appearance tab

    HTML Widget Appearance tab

  4. Add the class name to the class field i.e. widget_title_icon
  5. Update and publish your page

How Does It Look?

widget_title_icon_16

Ahhhh! A wee little icon...

widget_title_icon_32

A bigger icon, it works.

widget_title_icon_64

Well now that's just getting a little big, don't you think?

0 Comments

Would you like to comment?

You must be a member. Sign In if you are already a member.

 
  • 228 views
  • 2 versions
  • 0 comments
  • 2 followers
     
Avg. Rating:
Rating: 5out of5Igloo.Common.ObjectUserInfo
Post Date:
December 6, 2011
Posted By:
Gary Larocque
Versions:
v.2

Viewed 228 times