Title: Add php/html and javascript after my footer using a plugin
Last modified: August 20, 2016

---

# Add php/html and javascript after my footer using a plugin

 *  [GrahamW](https://wordpress.org/support/users/grahamw/)
 * (@grahamw)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/add-javascript-after/)
 * Hello, is there a way to add
 *     ```
       <div id='Email-System-PopUp'>
       	<div id='Email-System-Form'>
       		<?php if(empty($Email)){?>
       		<form action="" method="post" name="Settings">
       			<p>Please enter your email to signup to receive email notifications, and/or change notification settings</p>
       			<table width="520" border="0" cellpadding="5px">
       				<tr>
       					<td width="100" align="right"><big>Email:</big></td>
       					<td><input type="text" id="Email" name="Email" class="User_Registration" value='<?php echo htmlentities($Email); ?>' maxlength="50" /></td>
       				</tr>
       				<tr>
       					<td> </td>
       					<td><input type="submit" name="Settings" value="Submit" /></td>
       				</tr>
       			</table>
       		</form>
       		<?php } else { ?>
       	<form action="" method="post" name="Settings">
       		<table width="520" border="0" cellpadding="5px">
       			<tr>
       				<td align="right"><big>First Name:</big></td>
       				<td><input type="text" id="FName" name="FName" class="User_Registration" value='<?php echo htmlentities($FName); ?>' maxlength="20" /></td>
       			</tr>
       			<tr>
       				<td align="right"><big>Last Name:</big></td>
       				<td><input type="text" id="LName" name="LName" class="User_Registration" value='<?php echo htmlentities($LName); ?>' maxlength="20" /></td>
       			</tr>
       			<tr>
       				<td align="right"><big>Email:</big></td>
       				<td>
       					<input type="text" id="Email" name="Email" class="User_Registration" value='<?php echo htmlentities($Email); ?>' maxlength="50" />
       					<input type="hidden" id="ID" name="ID" class="User_Registration" value='<?php echo htmlentities($ID); ?>' maxlength="50" />
       				</td>
       			</tr>
       			<tr>
       				<td> </td>
       				<td>Receive Article Notifications: <input type="checkbox" name="Article" value="checked" <?php echo htmlentities($Article); ?> /></td>
       			</tr>
       			<tr>
       				<td> </td>
       				<td>Receive Promotional Notifications: <input type="checkbox" name="Promotional" value="checked" <?php echo htmlentities($Promotional); ?> /></td>
       			</tr>
       			<tr>
       				<td> </td>
       				<td><input type="submit" name="Settings" value="Save" /></td>
       			</tr>
       		</table>
       	</form>
       	<?php } ?>
       	</div>
       </div>
   
       <div class="darkenBackground" id="darkBackgroundLayer" onclick="ShowHideLogin();return false;"></div>
   
       <script type="text/javascript">
       $('#Email-System-PopUp').hide();
       $('#darkBackgroundLayer').hide();
       	var url = document.location.href;
   
       	if (url.indexOf('Email-System=Show') >= 0)
       	{
       		$('#Email-System-PopUp').show();
       		$('#darkBackgroundLayer').show();
       	}
       </script>
       ```
   
 * in the footer, with a plugin.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [GrahamW](https://wordpress.org/support/users/grahamw/)
 * (@grahamw)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/add-javascript-after/#post-2192413)
 * Hello I found the answer to my question, you use:
 *     ```
       function Add_Footer()
       {
       	//Add html here
       echo 'hello I\'m a footer';
       }
       add_action ( 'wp_footer','Add_Footer' );
       ```
   
 *  [jamesthegreat](https://wordpress.org/support/users/jamesthegreat/)
 * (@jamesthegreat)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/add-javascript-after/#post-2192652)
 * hi
 * I have a JSP/ASP scripts. My problem is the footer generated during the submit
   button is having extra space between the sender and “.”
    How can i modify the
   footer generated in my jsp scripts?
 * “NOTICE:
    This message may contain privileged/confidential information. If you
   are not the intended recipient of this email, please delete it immediately and
   notify the sender .”
 * <script language=”javascript”>
    <!– var click = 1; function OnCheckClickOnce(){
   if(click == 1) { click ++; document.thisForm.submit(); } else alert(“We are processing
   your request now. Please wait…”); } –> </script>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add php/html and javascript after my footer using a plugin’ is closed
to new replies.

## Tags

 * [footer](https://wordpress.org/support/topic-tag/footer/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [jamesthegreat](https://wordpress.org/support/users/jamesthegreat/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/add-javascript-after/#post-2192652)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
