Joomla seems to be removing links to external CSS from the source code. How to stop this?

  • Profile Image
    mbycsd
    Asked on April 27, 2015 at 07:35 PM

    Hello, 

    Joomla is removing the links to the CSS stylesheets.  I may need to download the stylesheets and insert them in the index.php file.

    I think I have JCE set correctly:  http://www.screencast.com/t/SFHk0ArFq

    Do you know why it might be deleting the  links?  

     

    sw

  • Profile Image
    Ben
    Answered on April 27, 2015 at 07:41 PM

    Based on the screenshot of your setting the CSS code should be accepted, but this is a link to an external CSS code, which is why it might be removing it.

    Please do try to replace those 3 link elements

    <link target="_blank" href="http://d2g9qbzl5h49rh.cloudfront.net/static/formCss.css?3.2.6889" rel="nofollow noopener" rel="nofollow" rel="stylesheet" type="text/css" />

    <link type="text/css" rel="stylesheet" target="_blank" href="http://d2g9qbzl5h49rh.cloudfront.net/css/styles/nova.css?3.2.6889" rel="nofollow noopener" rel="nofollow" />

    <link type="text/css" media="print" rel="stylesheet" target="_blank" href="http://d2g9qbzl5h49rh.cloudfront.net/css/printForm.css?3.2.6889" rel="nofollow noopener" rel="nofollow" />

    with this code instead:

    <style type="text/css">
       @import url("http://d2g9qbzl5h49rh.cloudfront.net/static/formCss.css?3.2.6889");
       @import url("http://d2g9qbzl5h49rh.cloudfront.net/css/styles/nova.css?3.2.6889");
       @import url("http://d2g9qbzl5h49rh.cloudfront.net/css/printForm.css?3.2.6889");
    </style>

    This utilizes the CSS code on your page to query for the CSS code on a different URL so it should work.

    Do let us know how it goes.

  • Profile Image
    mbycsd
    Answered on April 28, 2015 at 12:52 AM

    Thank you, yes, using @import solved the styling problem.  

    Now there are a couple of issues with the styles.

    http://screencast.com/t/zjEq3sUAHT

    The Field Required warning label stays up even after there is data in the field.

    The Hour: label is two lines instead of one.

    If you could take a look at those two items, then I think I am ready to use the new form.

    Thank you once again.

    Here's the link to the form on my test site:  http://mbyctest1.cloudaccess.net/social/1856-jotform-event-form-test-2015-04-27.html

    sw

  • Profile Image
    ashwin_d
    Answered on April 28, 2015 at 02:47 AM

    Hello mbycsd,

    Though your latest question is related but it is a different questions. I have moved it to a new thread and you will be answered here:  http://www.jotform.com/answers/560229 

    Thank you!