Created New Options for Image and Styling
-
You know how it goes, you start tinkering and the next thing you know…
I wanted an image centered above the form. I could add the image but couldn’t center because it would strip out what I added. Next thing you know, I started modifying code. That being said…
I have modified the widget.php file and the frontend.php file so that;
1. A new field for the image is displayed on the widget section. Upload an image using the WP Media section and copy the URL of the image. Then paste with img src tags into the form field.
2. The code used for displaying the widget for the vistors was significantly modifed to include;
a. Using a css layout for creating a table-like display of the form. This way, the submit button will be aligned below the email input field.
b. Added CSS identifiers so that most everything would be tweakable using CSS. This includes the widget area, the widgettitle, the text before and the text after.There is much more detail in the UPDATES-Read me.txt file in the zipped file. You’ll need to grab some css from that file and paste into your theme’s style.css to make it work.
You can grab the zipped file here…
newsletter-sign-up.zipFeedback welcomed.
- The topic ‘Created New Options for Image and Styling’ is closed to new replies.