Author Topic: Saratoga - Force widescreen CSS on one page?  (Read 636 times)

0 Members and 1 Guest are viewing this topic.

Offline RickNY

  • Contributor
  • ***
  • Posts: 116
    • College Hills Weather - Farmingville, NY
Saratoga - Force widescreen CSS on one page?
« on: September 05, 2016, 11:03:27 AM »
On my site, I allow the uese of the theme switcher to change the theme color, but I have CSSettings_mode set to 2 to prevent changing between narrow and wide.. I have CSSwideOrNarrowDefault set to narrow.  I'm in the process of trying to get Jim McMurry's WXSIM Forecast Comparison script going on my page, and I would like just that page to use the widescreen css, along with whatever color theme the user has selected.. I'm drawing a blank at the moment -- can someone tell me where & how to do that on just that one page?

Thanks,
Rick

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Saratoga - Force widescreen CSS on one page?
« Reply #1 on: September 05, 2016, 12:15:42 PM »
On that one page, just change
Code: [Select]
include("top.php");
to
Code: [Select]
$SITE['CSSscreen'] = str_replace('narrow','wide',$SITE['CSSscreen']);
include("top.php");
and that should change it for just that page.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline RickNY

  • Contributor
  • ***
  • Posts: 116
    • College Hills Weather - Farmingville, NY
Re: Saratoga - Force widescreen CSS on one page?
« Reply #2 on: September 05, 2016, 12:23:19 PM »
Perfect.. Thanks Ken!