Title: How to dynamically change generated WP code
Last modified: August 19, 2016

---

# How to dynamically change generated WP code

 *  [frontdesk](https://wordpress.org/support/users/frontdesk/)
 * (@frontdesk)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/how-to-dynamically-change-generated-wp-code/)
 * My website has a single page (“mydomain.com/contact”) that requires SSL, so I
   use .htaccess to force HTTPS for that one page. It works fine, but some IE versions
   will give a warning message because of ‘nonsecure items’ being commingled in 
   the HTML output.
 * In this case the guilty items are the inline, WP-generated links for my theme,
   stylesheets, javascript files, etc., that were generated with a “HTTP” prefix
   instead of “HTTPS”.
 * I figure that I could insert some “is_page” code to check if I am on my “…/contact”
   page, and then loop to replace the offending “HTTP” with “HTTPS”.
 * Does anyone have any suggestions where I should insert that code, and what such
   a loop might look like?

The topic ‘How to dynamically change generated WP code’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [frontdesk](https://wordpress.org/support/users/frontdesk/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/how-to-dynamically-change-generated-wp-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
