Filtering the content
-
Your function for the_content wasn’t swapping out my protocols properly, so I wrote it to be like this:
public function the_content($content) { $content = preg_replace('#https?://#', '//', $content ); return $content; }
Now it works perfectly.
I don’t know how to force my homepage to https though, any ideas?
- The topic ‘Filtering the content’ is closed to new replies.