Custom CSS and Tracking

Home Forums GovIntranetters Custom CSS and Tracking

Viewing 7 reply threads
  • Author
    Posts
    • #1426
      will
      Participant

      Hi,

      I’ve tried adding custom CSS and Tracking code to the Intranet Settings page, but it will not save. Any ideas why this could be happening?

      Thanks

    • #1438
      will
      Participant

      Is anyone able to help me with the above please?, I have also noticed that the css appears to be off on the How do I template. please see attachment.

      Thank you in advanced.

      p.s this is a wicked theme, Ive been search for an intranet template like this for so long!

      Attachments:
      You must be logged in to view attached files.
    • #1456
      Luke Oatham
      Keymaster

      Hi Will

      I wonder if there is something in your custom CSS or Javascript that WordPress doesn’t like? Have you managed to save anything yet?

      Luke

    • #1457
      Luke Oatham
      Keymaster

      Hi Will
      I have the same problem, and was only able to commit changes to these fields by changing the Pod Field Type on general_intranet/Custom CSS code from Code (Syntax Highlighting) to Plain Paragraph Text. It’s not pretty, but it does allow you to save changes.

      I was originally able to put something in there and save it, but when I tried to modify the data or remove it, it would not save. Maybe it is a bug with Pods Code Syntax field.

      Also, in your screenshot, I had the same formatting issues, which was rectified when more categories were added (I think you need at least 6 for it to look like the demo)

      Hope this helps 🙂

      Attachments:
      You must be logged in to view attached files.
    • #1461
      will
      Participant

      Ive noticed that I do not have the google_tracking_code or custom_css_code listed on the pods.

    • #1462
      Luke Oatham
      Keymaster

      Hi Will

      Go to: Pods Admin > Edit Pods > Intranet Configuration (and see if the Google tracking code and Custom CSS code fields are at the bottom)

      Click on Edit for each one, change the Field Type to Plain Paragraph text, Click Update Field button underneath, then Save Pod in top right hand corner.

      They must be there somewhere if you can see them in the Intranet Config settings (the bit that doesn’t let us save)

    • #1463
      will
      Participant

      Brilliant, Thank you – thats sorted it.

    • #1538
      Luke Oatham
      Keymaster

      Hi,

      custom CSS works after your tip.

      But I still can’t save the google script – the page won’t allow it:

      <script>
      (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);
      ga(‘create’, ‘XX-XX184578-1’, ‘auto’);
      ga(‘send’, ‘pageview’);
      </script>

    • #1459
      will
      Participant

      Hello,

      Ive not been able to save anything as yet, I have disabled various plugins and tried but still no joy, I will try the solution lukett suggested and see how I go.

      The script I was trying to save was simply the Google tracking code, and the custom css was making the need to know box look more prominent

      Will

      • This reply was modified 9 years, 10 months ago by will. Reason: typo
Viewing 7 reply threads
  • You must be logged in to reply to this topic.