0
Welcome Guest! Login
0 items Join Now

Tutorial - How to Add Custom CSS File

  • Re: Tutorial - How to Add Custom CSS File

    Posted 8 years 5 months ago
    • Yes I'll definately look at that.
      I noticed that when I try to create a new article and link it to an existing menu item the article inherits the template/layout of the demo article. How do I create a new article with a blank page instead of inheriting the article template layout? Thanks so much for your help with all of this too..
  • Re: Tutorial - How to Add Custom CSS File

    Posted 7 years 2 months ago
    • Hey, I try that on a Olde version of gantry and it´s works.
      style1.css - #rt-header .rt-container {height:200px; background: url(../images/header/header_960x200.png) !important;}
      the result you can see at: musik-bim.de
      now I try on gantry 5 hydrogen
      custom.css - #g-header .g-container {background: url(../../images/header_960x200.png) !important;}
      and the result 2017.musik-bim.de/ nothing to see.

      can you help me?
      Many thanks in advance
      Ricardo
    • Be the change you wanna see in the world! Gandi
    • Philipp's Avatar
    • Philipp
    • Jr. Rocketeer
    • Posts: 32
    • Thanks: 1

    Re: Tutorial - How to Add Custom CSS File

    Posted 6 years 7 months ago
    • Hi!

      I Updated to J!3.7.4.

      Whitepage with error:

      Error displaying the error page: An exception has been thrown during the rendering of a template ("parse error: gantry-theme://scss/custom.scss on line 1").: An exception has been thrown during the rendering of a template ("parse error: gantry-theme://scss/custom.scss on line 1").



      When I rename the custom.scss for example to nouse_custom.scss the frontend works but of course without my
      changes.

      When I turn the debugging on:


      Twig_Error_Runtime thrown with message "An exception has been thrown during the rendering of a template ("parse error: gantry-theme://scss/custom.scss on line 1")."

      Stacktrace:
      #40 Twig_Error_Runtime in C:\xampp\htdocs\oekoteam\media\gantry5\engines\nucleus\templates\page.html.twig:73
      #39 Leafo\ScssPhp\Exception\ParserException in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\leafo\scssphp\src\Parser.php:131
      #38 Leafo\ScssPhp\Parser:throwParseError in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\leafo\scssphp\src\Parser.php:169
      #37 Leafo\ScssPhp\Parser:parse in C:\xampp\htdocs\oekoteam\libraries\gantry5\classes\Gantry\Component\Stylesheet\Scss\Compiler.php:404
      #36 Gantry\Component\Stylesheet\Scss\Compiler:importFile in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\leafo\scssphp\src\Compiler.php:1480
      #35 Leafo\ScssPhp\Compiler:compileImport in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\leafo\scssphp\src\Compiler.php:1542
      #34 Leafo\ScssPhp\Compiler:compileChild in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\leafo\scssphp\src\Compiler.php:1285
      #33 Leafo\ScssPhp\Compiler:compileChildrenNoReturn in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\leafo\scssphp\src\Compiler.php:295
      #32 Leafo\ScssPhp\Compiler:compileRoot in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\leafo\scssphp\src\Compiler.php:194
      #31 Leafo\ScssPhp\Compiler:compile in C:\xampp\htdocs\oekoteam\libraries\gantry5\classes\Gantry\Component\Stylesheet\ScssCompiler.php:107
      #30 Gantry\Component\Stylesheet\ScssCompiler:compileFile in C:\xampp\htdocs\oekoteam\libraries\gantry5\classes\Gantry\Component\Theme\ThemeTrait.php:238
      #29 Gantry\Framework\Theme:css in C:\xampp\htdocs\oekoteam\libraries\gantry5\classes\Gantry\Component\Content\Block\HtmlBlock.php:85
      #28 Gantry\Component\Content\Block\HtmlBlock:getStyles in C:\xampp\htdocs\oekoteam\libraries\gantry5\classes\Gantry\Framework\Document.php:62
      #27 Gantry\Framework\Document:registerStyles in C:\xampp\htdocs\oekoteam\libraries\gantry5\classes\Gantry\Framework\Document.php:34
      #26 Gantry\Framework\Document:registerAssets in C:\xampp\htdocs\oekoteam\libraries\gantry5\classes\Gantry\Framework\Base\Platform.php:201
      #25 Gantry\Framework\Base\Platform:finalize in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Template.php:675
      #24 Twig_Template:getAttribute in C:\xampp\htdocs\oekoteam\cache\gantry5\rt_xenon\twig\11\11d5967336854ca4f3e49f383188fa6dd5319c3b3023dab4a9c3bf939b759eba.php:245
      #23 __TwigTemplate_74d4f182e156b4bcdcdeadf211991f9df902a64a4bf579d93dbd42d7c9d77b78:block_page_footer in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Template.php:215
      #22 Twig_Template:displayBlock in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Template.php:174
      #21 Twig_Template:displayParentBlock in C:\xampp\htdocs\oekoteam\cache\gantry5\rt_xenon\twig\aa\aa51ac9bc1b2cffa5ab8db426a0fd11088135b9a712a2bf81de40a41adcd1f7e.php:32
      #20 __TwigTemplate_af9cf1db5de52dd58d3fee364488485c627621b693a9ed3ad1b153416cdc1233:block_page_footer in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Template.php:215
      #19 Twig_Template:displayBlock in C:\xampp\htdocs\oekoteam\cache\gantry5\rt_xenon\twig\11\11d5967336854ca4f3e49f383188fa6dd5319c3b3023dab4a9c3bf939b759eba.php:139
      #18 __TwigTemplate_74d4f182e156b4bcdcdeadf211991f9df902a64a4bf579d93dbd42d7c9d77b78:doDisplay in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Template.php:432
      #17 Twig_Template:displayWithErrorHandling in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Template.php:403
      #16 Twig_Template:display in C:\xampp\htdocs\oekoteam\cache\gantry5\rt_xenon\twig\aa\aa51ac9bc1b2cffa5ab8db426a0fd11088135b9a712a2bf81de40a41adcd1f7e.php:24
      #15 __TwigTemplate_af9cf1db5de52dd58d3fee364488485c627621b693a9ed3ad1b153416cdc1233:doDisplay in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Template.php:432
      #14 Twig_Template:displayWithErrorHandling in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Template.php:403
      #13 Twig_Template:display in C:\xampp\htdocs\oekoteam\cache\gantry5\rt_xenon\twig\88\8881831747c2ebca22701d21a8772bb5476aab2dbe5e080c4629e47513f9b348.php:24
      #12 __TwigTemplate_99f9425ba526e9cdb19c4b095f2a6e419d700e907bfbcfc8f19b43acc11f89d6:doDisplay in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Template.php:432
      #11 Twig_Template:displayWithErrorHandling in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Template.php:403
      #10 Twig_Template:display in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Template.php:411
      #9 Twig_Template:render in C:\xampp\htdocs\oekoteam\libraries\gantry5\vendor\twig\twig\lib\Twig\Environment.php:362
      #8 Twig_Environment:render in C:\xampp\htdocs\oekoteam\libraries\gantry5\classes\Gantry\Component\Theme\AbstractTheme.php:162
      #7 Gantry\Component\Theme\AbstractTheme:render in C:\xampp\htdocs\oekoteam\templates\rt_xenon\index.php:23
      #6 require in C:\xampp\htdocs\oekoteam\libraries\joomla\document\html.php:653
      #5 JDocumentHtml:_loadTemplate in C:\xampp\htdocs\oekoteam\libraries\joomla\document\html.php:715
      #4 JDocumentHtml:_fetchTemplate in C:\xampp\htdocs\oekoteam\libraries\joomla\document\html.php:530
      #3 JDocumentHtml:parse in C:\xampp\htdocs\oekoteam\libraries\cms\application\cms.php:1102
      #2 JApplicationCms:render in C:\xampp\htdocs\oekoteam\libraries\cms\application\site.php:777
      #1 JApplicationSite:render in C:\xampp\htdocs\oekoteam\libraries\cms\application\cms.php:271
      #0 JApplicationCms:execute in C:\xampp\htdocs\oekoteam\index.php:49





      Any Ideas?

      Regards Pipo
    • Philipp's Avatar
    • Philipp
    • Jr. Rocketeer
    • Posts: 32
    • Thanks: 1

    Re: Tutorial - How to Add Custom CSS File

    Posted 6 years 7 months ago
    • Help would really be appreciated!

      Hope to hear from you soon.

      Regards,
      Philipp

Time to create page: 0.088 seconds