Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • mx5gr Friend
    #163784

    Due to requirements, we need to have our template compatible for all popular browsers. However, due to our template’s design, there is a slight different behavior in some elements due to different CSS interpretation.

    Is there a way to define a CSS file for either Firefox and/or Chrome within the framework, much in the same way as template-ie7.css & template-ie8.css ?

    Saguaros Moderator
    #392743

    you copy this file: pluginssystemjat3base-themesdefaultblockshead.php to the templates/JA_TEMPLATE/blocks folder

    then open that file and find:


    <?php JHTML::stylesheet ('', 'templates/system/css/general.css') ?>

    then replace:
    [PHP]
    <?php JHTML::stylesheet (”, ‘templates/system/css/general.css’) ?>
    <?php if( T3Common::getBrowserSortName() ==’chr’) : ?>
    <?php JHTML::stylesheet (”, ‘templates/JATEMPLATE/css/chrome.css’) ?>
    <?php endif; ?>
    [/PHP]

    note: you must to replace ‘templates/JATEMPLATE/css/chrome.css’ by your css path

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 13 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum