I am using most of the plugins in WordPress for AMP, but it does not allow custom javascript in AMP.
Is there any way for that?
Please help me if anyone faces that kind of issue.
Thanks
Author written JavaScript is not allowed via the AMP specification. You'll need to execute your JavaScript with an amp-iframe instead.
From the "How AMP Works" page:
AMP pages can’t include any author-written JavaScript. Instead of
using JavaScript, interactive page features are handled in custom AMP
elements. The custom AMP elements may have JavaScript under the hood,
but they’re carefully designed to make sure they don’t cause
performance degradation.
Related
Divi is a wordpress theme https://www.elegantthemes.com/gallery/divi/. It contains a video module https://www.elegantthemes.com/gallery/divi/documentation/video/ that allows you to add the URL of your video and then view it on your website. Currently it supports Youtube, Vimeo, etc. however does not support Wistia. Without going into detail Wistia is the only option I can use, and therefore my aim is to create a plugin that adds this functionality. However I'm going into the unknown and want further direction. My first objective would be to look into the theme code and find out how the theme is adding this functionality for Youtube, Vimeo, etc. Exactly how would I find the code? And then why wouldn't this functionality have been added to begin with? Would they have just left it out, or would it be another reason that might be preventing me from adding the functionality?
Every single include/embed/attachment etc. that loads from an external source, into Your app is done trough the usage of an API which Your source provides.
You won't be able to find much in their code since this is probably being done trough some custom shortcodes or hooks. In both situations, this requires custom modifications from their developers in order for the Westia API to work with the DIVI builder.
In Your particular case, Westia do provide an API but if DIVI didn't include that yet, I presume that this is because of the fact that Westia is a Niche video hosting provider, not a public one like Youtube / Vimeo. Therefore, I think that You should contact their support for more information on that issue.
You can try to embed your desired wisita video trough a custom object of some kind.
So in this case, You can go trough this thread right here by Elegant themes, and after you get acquainted with the methods to do so, head over to WISTIA's embedding options page and find out what fits your site best.
I've used ListBoxField before and it works awesomely in the CMS however when I've added it to my site it's quite basic. Is there any simple way to add the CSS / JavaScript to page on my site?
I can't remember if ListBoxField uses chosen or not but check it out at https://harvesthq.github.io/chosen/. It offers a pretty similar experience. You should be able to include chosen js and css files on the front end and then follow the documentation to get it going.
Re this post: https://stackoverflow.com/questions/3914510/wysiwyg-editor-without-iframe
Can someone explain why a lot of WYSIWYG editors use an IFRAME?
What are the good reasons for using an IFRAME?
The most important reason is that it provides isolation from the page to the content, so it's possible to apply different stylesheets, use baseHref for images, edit a whole page including the headers...
Is it possible, with the new Facebook commenting system to restyle them? I only need two 'simple' changes: :link colour & a font change.
I have been reading the docs & have tried out some tests to no avail.
http://developers.facebook.com/docs/reference/fbml/comments_(XFBML)/
I have also read this blog post that says that it's not possible anymore, BUT I know there are sites that still custom css - I just cannot get mine to work..
Is it possible?
Those documents are for the old FBML implementation of the comments box, the current docs are at https://developers.facebook.com/docs/reference/plugins/comments/
Have you any examples of sites customising the plugin? It shouldn't really be possible since it's served from an iframe, it's possible those sites are implementing their own comments logic
I'm fairly new to using Aptana, but I'm wondering if it supports a feature that I used to use a lot in Dreamweaver, where you could create a page template, i.e. the header and footer of a page that would stay the same for each page on a website, leaving only the content to be coded.
I found this feature really useful as you only needed to change code once for it to propagate to all pages.
I've searched for this feature in Aptana, but I'm not sure on the exact terminology.
Not currently. There have been requests for it, but it has not yet been implemented:
https://aptana.lighthouseapp.com/projects/35272/tickets/2140-allow-for-dreamweaver-like-templates