0
Welcome Guest! Login
0 items Join Now

SOLVED Not Loading CSS or JS

  • SOLVED Not Loading CSS or JS

    Posted 9 years 9 months ago
    • I just ran across an interesting issue today.

      I have Joomla! 3.4.3 installed with Salient template.

      I created a custom template layout for the home page, and set the menu link for Home to Gantry 5 --> Custom Page.

      I have the NoNumber Modals plugin, which takes any external URLs and loads them in a modal, rather than opening to a new page. It was discoved that the css and javascript for modals wasn't loading on the home page, but it was on every other page. As soon as I changed the link from Gantry 5 --> Custom Page to an article, the css and javascript was loading fine.

      It looks like there might be something in the Gantry 5 menu option that is preventing the loading of css and javascript?
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: SOLVED Not Loading CSS or JS

    Posted 9 years 9 months ago
    • Stallion Online Services, LLC wrote:
      I created a custom template layout for the home page, and set the menu link for Home to Gantry 5 --> Custom Page.

      I have the NoNumber Modals plugin, which takes any external URLs and loads them in a modal, rather than opening to a new page. It was discoved that the css and javascript for modals wasn't loading on the home page, but it was on every other page. As soon as I changed the link from Gantry 5 --> Custom Page to an article, the css and javascript was loading fine.

      It looks like there might be something in the Gantry 5 menu option that is preventing the loading of css and javascript?

      Hmm...odd as The Home page Default menu items for Callsito, Ambrosia and Salient demo RocketLauncher's all use the menu type "Gantry 5 Themes ยป custom" and there aren't any CSS or JS loading issues.

      I'll ask the devs about this as previously we've had some issues with Nonumber extensions.
  • Re: SOLVED Not Loading CSS or JS

    Posted 9 years 9 months ago
    • OK, I just installed the Quick Start packages for Calisto and Salient. The only change that I made was installing the Modals plugin from NoNumber. There is a conflict somewhere with the Gantry 5 >> Custom Page link, as I was able to replicate the same issue on the Quick Start packages. On any page that uses that menu link type, the modals plugin does not work, but if you go to a link using, for example, a Joomla article, the plugin does work.
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: SOLVED Not Loading CSS or JS

    Posted 9 years 9 months ago
    • Stallion Online Services, LLC wrote:
      OK, I just installed the Quick Start packages for Calisto and Salient. The only change that I made was installing the Modals plugin from NoNumber. There is a conflict somewhere with the Gantry 5 >> Custom Page link, as I was able to replicate the same issue on the Quick Start packages. On any page that uses that menu link type, the modals plugin does not work, but if you go to a link using, for example, a Joomla article, the plugin does work.

      I would suggest you contact the developer of the this 3rd party extension and inform them of the issue. We've worked with Peter before on a Gantry 5 issue.
  • Re: SOLVED Not Loading CSS or JS

    Posted 9 years 5 months ago
    • Hello,

      I am having the same issue when using the Gantry 5 custom page. It will not load the modals from Nonumber. So this is essentially not a nonumber issue if Gantry is not including code that always loads on every other page no matter the theme being used.

      We detect no scripting issues, just not getting the modal code in the head of the page, see below. So is there any way to know why this might be happening?

      one page is loading it:
      <base href="http://airtightnetworks.com/your-industry/education" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="author" content="Jay Cornell" />
        <meta name="generator" content="Joomla! - Open Source Content Management" />
        <title>Secure Cloud Managed WiFi for Schools</title>
        <link rel="stylesheet" href="/media/modals/css/bootstrap.min.css" type="text/css" />
        <link rel="stylesheet" href="/cache/widgetkit/widgetkit-930f2008.css" type="text/css" />

      and this page is not:
            <base href="http://airtightnetworks.com/products/wifi-cloud" />
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="generator" content="Joomla! - Open Source Content Management" />
        <title>Secure Cloud Managed WiFi</title>
        <link rel="stylesheet" href="/cache/widgetkit/widgetkit-930f2008.css" type="text/css" />
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: SOLVED Not Loading CSS or JS

    Posted 9 years 4 months ago
    • I don't have NoNumbers so I can't test this but I do believe its an issue so I've created a ticket to have this looked at.
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: SOLVED Not Loading CSS or JS

    Posted 9 years 4 months ago
    • This message contains only secure information that is visible to DanG, moderators and administrators
    • Laurent's Avatar
    • Laurent
    • Hero Rocketeer
    • Posts: 445
    • Thanks: 1

    Re: SOLVED Not Loading CSS or JS

    Posted 9 years 4 months ago
    • Hello same problem here with Nonumber modal
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: SOLVED Not Loading CSS or JS

    Posted 9 years 4 months ago
    • Laurent wrote:
      Hello same problem here with Nonumber modal

      An update on this issue:
      If the plugin [NoNumber] is not calling the bootstrap.framework behavior, then it's the plugin's fault, if it is then it's something on our end.

      I think an Atom specific for Joomla, with a set of common toggles to load jQuery, MooTools, Bootstrap (CSS and JS) is a good thing to have but the bottom line is it should be the extension triggering the use of whatever behaviors it needs (like happened with joomla/joomla-cms#6821) and if they do but somehow it conflicts or doesn't work with Gantry, we need to fix it.

      Have you tried Gantry 5.2.6 as the Outline -> Page Settings Tab has an Atom called "Javascript Frameworks" that might be of help.
    • The following users have thanked you: Laurent

    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 424
    • Thanks: 18

    Re: SOLVED Not Loading CSS or JS

    Posted 9 years 3 months ago
    • I concur with the earlier statements, no CSS/JS is being loaded. I don't think this is a boostrap issue, I think this is a template issue. I can't believe it has been 5 months and there is no fix. I personally still view Gantry5 as a beta product.

      I'd also like to point out that NoNumbers Modals offers a free version.
    • Last Edit: 9 years 3 months ago by Eoin.
    • Owner of Square Balloon

Time to create page: 0.088 seconds