Title: Customize the Code for a Widget
Last modified: August 19, 2016

---

# Customize the Code for a Widget

 *  [kennyk3](https://wordpress.org/support/users/kennyk3/)
 * (@kennyk3)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/)
 * I’m trying to change the heading of a Widget in my sidebar to a graphic at:
 * [http://synapticsuccess.com/](http://synapticsuccess.com/)
 * Just wondering where to find the code for the widget. It’s the Membership Login
   details. I’m trying to add a graphic for the heading similar to the “Resources”
   heading.
 * Thanks!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/customize-the-code-for-a-widget/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/customize-the-code-for-a-widget/page/2/?output_format=md)

 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1196796)
 * That’s a default WP widget. Its in /wp-includes/default-widgets./php.
 * I’d copy the code and paste it into a plugin or into your functions.php file 
   and edit that, and save yourself some update headaches.
 *  [Kevin S](https://wordpress.org/support/users/kevinsubba/)
 * (@kevinsubba)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1196798)
 * Login to your WordPress Admin area then under Appearance find Editor option. 
   From Theme Files menu find sidebar_left.php or files related to slidebar and 
   search for <h3>Register to Access Now</h3> and replace it with Image you want
   to put.
 * —
    [**signature moderated** Please read the [Forum Rules](http://wordpress.org/support/topic/68664?replies=6)]
 *  Thread Starter [kennyk3](https://wordpress.org/support/users/kennyk3/)
 * (@kennyk3)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1196802)
 * Hey apljdi,
 * Thanks for the response. How can I find the specific code for the membership 
   login details within default-widgets.php
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1196813)
 * Its called WP_Widget_Meta, about line 280.
 *  Thread Starter [kennyk3](https://wordpress.org/support/users/kennyk3/)
 * (@kennyk3)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1196833)
 * apljdi,
 * I don’t think that’s the same widget. This one is specifically for the Wishlist
   Membership Plugin. I can’t find it anywhere
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1196849)
 * Then it should be in /wp-content/plugins/<wishlist> or a subdirectory.
 *  Thread Starter [kennyk3](https://wordpress.org/support/users/kennyk3/)
 * (@kennyk3)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1196910)
 * I’ve looked through everything in the plugin files. I can’t find anything. It’s
   pretty frustrating. The code’s gotta be somewhere…
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1196914)
 * Noone going to offer the CSS solution then? 🙁
 *     ```
       #wishlist-member h3 {
       	background:transparent url('http://synapticsuccess.com/images/resources.jpg')no-repeat top center;
       	text-indent:-1000px;
       	height:46px;
       	border:none;
       }
       ```
   
 * Update the background image to reflect the image you want to use, i used the 
   above as an example..
 *  Thread Starter [kennyk3](https://wordpress.org/support/users/kennyk3/)
 * (@kennyk3)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1196923)
 * t31os_
 * That worked great. The only problem is, I need it to have two different headings.
   One for when the user is logged in and one when the user is not logged in.
 * Any ideas?
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1196929)
 * CSS isn’t going to be able to do that for you, CSS only handles the visual side
   of things..
 * Unless you apply that CSS in the head area of your theme’s header.php, then you
   can wrap a condition around it..
 *     ```
       <style type="text/css">
       #wishlist-member h3 {
       <?php if ( is_user_logged_in() ) { ?>
       	background:transparent url('http://synapticsuccess.com/images/resources.jpg')no-repeat top center;
       <?php } else { ?>
       	background:transparent url('different-image.jpg')no-repeat top center;
       <?php } ?>
       	text-indent:-1000px;
       	height:46px;
       	border:none;
       }
       </style>
       ```
   
 * Or something to that degree…
 * That’s purely a CSS solution (with exception to the minor PHP), ideally you need
   to be digging into the plugin or widget code and doing the changes there…
 *  Thread Starter [kennyk3](https://wordpress.org/support/users/kennyk3/)
 * (@kennyk3)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1196970)
 * t31os_,
 * You’ve been a huge help. I may have to use that in my header.php.
 * That’s what’s so frustrating. I just can’t seem to find the code I need to change.
   I’ve looked in all the plugin files, I’ve searched all the widget.php files. 
   I just don’t know where else to look…
 * Thanks for all the help. If you have any other suggestions, I’d love to hear 
   them!
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1197006)
 * Use an application that can search for text -within- files..
 * Plonk a copy of the plugins folder on your desktop (Or wherever). If on mac, 
   there’s various grep options (i’m not a mac user), and on windows there are free
   apps such as Text Crawler.
 * Search the files you’ve copied for strings of text you need to find..
 * Example could be:
 *     ```
       <h3>Register to Access Now</h3>
       ```
   
 * Or if that doesn’t turn up results then maybe just..
 *     ```
       Register to Access Now
       ```
   
 * Since it’s a paid for plugin i can’t download it to check for you, but it’s simple
   enough to do (with the right tools).
 *  [mrbluesummers](https://wordpress.org/support/users/mrbluesummers/)
 * (@mrbluesummers)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1197208)
 * This is just what I was looking for- how to edit the default widgets that come
   with WordPress. Thanks Apljdi!
 *  [Skip Savage](https://wordpress.org/support/users/skip-savage/)
 * (@skip-savage)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1197210)
 * I think the Wishlist Member code is encrypted. Searching it for the target text
   didn’t work. I wanted to change the punctuation in the widget and make a minor
   wording change to match the rest of my site, but have been stymied. Perhaps in
   a future release users will have this option.
 *  [drdivina](https://wordpress.org/support/users/drdivina/)
 * (@drdivina)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/#post-1197215)
 * I can’t recommend WishList. I have it. It installed easily – but the whole point
   of WishList is being able to charge members and have them register. For 2 months
   I struggled with WishList asking for support – and their response was only to
   send me all the information I had already tried based on the videos and .pdf 
   books they had. Nothing was working and they weren’t stepping in to assist me
   with real help. So I hired a tech guy – and he saw the problem. Finally WishList
   provided the code, but after 2 months of struggling and literally begging them
   to help me, and spending $360 for a tech guy to figure it out, I CANNOT RECOMMEND
   WISHLIST! Their support was abysmal and basically none existent and the fact 
   that I could not sell my product or get my product up for over 2 months costs
   me thousands of dollars of revenue. (My package goes for $1,497). Next time I
   buy something that has better support.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/customize-the-code-for-a-widget/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/customize-the-code-for-a-widget/page/2/?output_format=md)

The topic ‘Customize the Code for a Widget’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)
 * [Wishlist Member](https://wordpress.org/support/topic-tag/wishlist-member/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 8 participants
 * Last reply from: [agrp](https://wordpress.org/support/users/agrp/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/customize-the-code-for-a-widget/page/2/#post-1197237)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
