Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • sb1888 Friend
    #1005080

    Hi,
    is it possible to configure JA Simply so I can use the template offline?
    I found Google API links at 5 php files but if I disable them I can’t get a view of my site. 🙁

    I think the problem is this:

      /**
       * Add custom style css
       */
      public function addCustomStyle () {
          $html = '';
          $google_fonts = preg_split('/\n/', $this->getParam('styleGoogleFonts'));
          foreach ($google_fonts as $font) {
              $font = trim($font);
              if(!$font) continue;
              $html .= '<link href="https://fonts.googleapis.com/css?family=' . ($font) . '" rel="stylesheet" type="text/css" >' . "\n";
          }

    found in helper.php.
    But I don’t have any idea to configure this to use local fonts.

    Thanks a lot

    Saguaros Moderator
    #1005295

    Hi,

    You can take a look at this discussion

    Regards

    sb1888 Friend
    #1005391

    Hmm thanks for your reply.
    I’ve changed the link-path to an local path and download PT Sans TTF-files and woff-files.
    Now I can view my site local and offline but only with another font…
    I think I get "Times New Roman" as default font.
    It is OK but it isn’t perfect. 😉

    Any edit in the simply template.css is difficult because the template.css is not formated correctly?
    My Notepad++ show me all parameters only in one very long line and I think it will be overwritten by any changes at joomla backend?

    Saguaros Moderator
    #1005731

    Hi,

    If you’d like to customize css on your site, I recommend you to put your custom css code into the file: ROOT/templates/ja_simpli (your default template)/css/custom.css (create this file if it doesn’t exist on your site).

    This file will help to keep your custom changes and not be lost when you update new version for template.

    Regards

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

This topic contains 3 replies, has 2 voices, and was last updated by  Saguaros 7 years, 9 months ago.

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