Custom CSS and Tracking
Home › Forums › GovIntranetters › Custom CSS and Tracking
Tagged: custom css, not saving, settings
- This topic has 8 replies, 4 voices, and was last updated 9 years, 10 months ago by Luke Oatham.
-
AuthorPosts
-
-
31 Dec 2014 at 14:45 #1426willParticipant
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
-
1 Jan 2015 at 20:24 #1438willParticipant
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. -
2 Jan 2015 at 23:00 #1456Luke OathamKeymaster
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
-
3 Jan 2015 at 04:00 #1457Luke OathamKeymaster
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. -
3 Jan 2015 at 10:04 #1461willParticipant
Ive noticed that I do not have the google_tracking_code or custom_css_code listed on the pods.
-
3 Jan 2015 at 10:10 #1462Luke OathamKeymaster
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)
-
3 Jan 2015 at 10:17 #1463willParticipant
Brilliant, Thank you – thats sorted it.
-
2 Feb 2015 at 19:57 #1538Luke OathamKeymaster
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> -
3 Jan 2015 at 09:54 #1459willParticipant
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, 12 months ago by will. Reason: typo
-
-
AuthorPosts
- You must be logged in to reply to this topic.