7 replies to this topic
#1
Posted 17 November 2012 - 03:05 PM
Hi I've added this to pagelines customize and it doesn't seem to work:
add_action('wp_enqueue_scripts', 'filg_get_js');
function filg_get_js() {
wp_enqueue_script("jquery");
}
add_action('wp_head', 'ie_redirect');
ie_redirect() {
<?
if ( preg_match("/MSIE/",$_SERVER['HTTP_USER_AGENT']) )
header("Location: ' );
exit;
<?php
}
add_action('wp_enqueue_scripts', 'filg_get_js');
function filg_get_js() {
wp_enqueue_script("jquery");
}
add_action('wp_head', 'ie_redirect');
ie_redirect() {
<?
if ( preg_match("/MSIE/",$_SERVER['HTTP_USER_AGENT']) )
header("Location: ' );
exit;
<?php
}
#2
Posted 17 November 2012 - 03:05 PM
#3
Posted 17 November 2012 - 09:19 PM
For an internet explorer redirect script this is what I ended up using.
I placed this in the head section under Custom Code.
The key was creating an html page OUTSIDE of wordpress for the page that it redirects too.
Hope this helps someone!
<!--[if IE]>
<script type="text/javascript">
<!--
window.location = "
//-->
</script>
<![endif]-->
I placed this in the head section under Custom Code.
The key was creating an html page OUTSIDE of wordpress for the page that it redirects too.
Hope this helps someone!
<!--[if IE]>
<script type="text/javascript">
<!--
window.location = "
//-->
</script>
<![endif]-->
#4
Posted 17 November 2012 - 09:20 PM
#5
Posted 18 November 2012 - 09:58 PM
Hi,
Unfortunately, we don't have a means of validating your code. You'd need a developer/programmer to do that. We do offer Pros to help via
Hopefully one of them can help you identify any problems.
Unfortunately, we don't have a means of validating your code. You'd need a developer/programmer to do that. We do offer Pros to help via
Hopefully one of them can help you identify any problems.
#6
Posted 18 November 2012 - 10:50 PM
Hey the above worked. You can close this.
If anyone needs to use it, they can.
If anyone needs to use it, they can.
#7
Posted 18 November 2012 - 10:55 PM
No problem. Glad it worked!
#8
Posted 18 November 2012 - 10:55 PM
The topic was marked as resolved.
Also tagged with one or more of these keywords: Resolved
Resolved
PageLines Framework →
Technical Support →
Anything Boxes And Polylang Language Filtering ProblemStarted by janpeeters , 01 Dec 2012 |
|
|
||
Header In Banner AlignmentStarted by bankrollbuilder , 28 Nov 2012 |
|
|
||
Resolved
PageLines Framework →
Customizations →
2 Hero UnitsStarted by starlit , 28 Nov 2012 |
|
|
||
Tabs Do Not Align HorizontallyStarted by hutruk , 28 Nov 2012 |
|
|
||
Resolved
PageLines Framework →
Customizations →
Reduce Margin In Contact FormStarted by texasx , 27 Nov 2012 |
|
|










