Results 1 to 3 of 3

Stylesheets Per Page

This is a discussion on Stylesheets Per Page within the Templating, CSS, Design forums, part of the osCmax V2.5 Forums category; I have been looking at a lot of information on using stylesheets per page but it all seems outdated. I ...

      
  1. #1
    Member suntech's Avatar
    Join Date
    Jul 2010
    Posts
    62
    Rep Power
    3


    Default Stylesheets Per Page

    I have been looking at a lot of information on using stylesheets per page but it all seems outdated.
    I am using the fallback-html (started from) and cant seem to find the right info. All the code I am finding to do this is wrong or outdated. Im not sure if there is a new way to do it since 2.5.
    Any help would be great.
    Tim
    Last edited by suntech; 07-16-2012 at 01:59 PM.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    20,753
    Rep Power
    573


    Default Re: Stylesheets Per Page

    Per page stylesheets should still work fine. This feature has not been modified or changed.

    This still applies:
    http://wiki.oscdox.com/custom_per_page_style_sheets
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Member suntech's Avatar
    Join Date
    Jul 2010
    Posts
    62
    Rep Power
    3


    Default Re: Stylesheets Per Page

    Problem is when I try to do this last step:



    • Make sure this bit of code is in the head section of your main_page.tpl.php.

    Replace this:


    <?php if (bts_select('stylesheets', $PHP_SELF)) { // if a specific stylesheet exists for this page it will be loaded ?> <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheets', $PHP_SELF)); // BTSv1.5 ?>"> <?php } ?> <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','stylesheet.css')); // BTSv1.5 ?>"> With this:

    <?php if (bts_select('stylesheets', $PHP_SELF)) { // if a specific stylesheet exists for this page it will be loaded ?> <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheets', $PHP_SELF)); // BTSv1.5 ?>"> <?php } else { ?> <link rel="stylesheet" type="text/css" href="<?php echo (bts_select('stylesheet','stylesheet.css')); // BTSv1.5 ?>"> <?php } ?>

    That code is not in that file in fallback-html

Similar Threads

  1. [Mod Installation] index page redirect to cookies enable page - Force Cookie Use - False
    By bluecrome.smita in forum Custom Mods and Hacks
    Replies: 0
    Last Post: 02-02-2012, 04:11 AM
  2. Stylesheets loading in the body of a page = Stylesheet Loader
    By thowden in forum Templating, CSS, Design
    Replies: 0
    Last Post: 08-01-2011, 07:35 PM
  3. Stylesheets Not Displaying On Clean Install
    By jmdesign in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 07-15-2009, 08:17 AM
  4. (Probably) Simple Stylesheets Question
    By TheSmrtguy in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 09-06-2004, 07:25 PM
  5. Modification of StyleSheets.CSS
    By AJ in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 02-17-2003, 06:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •