Zen Cart Logo
Forums / General Questions / Exclude content in header on SSL pages

Exclude content in header on SSL pages

Locked

Views: 977

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
19 Jan 2009, 3:53 PM
#1
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
516
Plugin Contributions:
2

Exclude content in header on SSL pages

In the header I need to add something similar to what is below, however I do not what the code to load on pages that are SSL, can that be done?

<!-- Start Custom -->

<script type="text/javascript">var pr_style_sheet="http://custom_link";</script> <script type="text/javascript" src="http://custom_link"></script> <!-- End Custom -->

I thought something like this may work however I can not get it to work, any help would be great!

<!-- Start Custom -->
<?php if ($request_type == 'NONSSL') {
<script type="text/javascript">var pr_style_sheet="http://custom_link";</script>
<script type="text/javascript" src="http://custom_link"></script>?>
<!-- End Custom -->
20 Jan 2009, 1:15 AM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,286
Plugin Contributions:
39

Re: Exclude content in header on SSL pages

Like this.. You almost had it ... you missed the second part:

[B]<?php if ($request_type == 'NONSSL') { ?>[/B]
<script type="text/javascript">var pr_style_sheet="http://custom_link";</script>
<script type="text/javascript" src="http://custom_link"></script>
[B]<?php } ?>[/B]

~Melanie

21 Jan 2009, 4:32 PM
#3
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
516
Plugin Contributions:
2

Re: Exclude content in header on SSL pages

Thanks!