madebydaniel
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to get events from the default audio player?After some more research, I came across this:
$('audio').on('play', function(){ console.log("play"); });
You can then console the array and dive in:
$('audio').on('play', function(){ var file = $(this); console.log(file); });
Then you can try pulling out what you need like so:
$('audio').on('play', function(){ var file = $(this)[0][currentSrc]; console.log(file); });
I’m sure there are better ways, but this is the best I’ve came up with so far.
Forum: Fixing WordPress
In reply to: How to get events from the default audio player?I have the exact same question/issue.
Forum: Themes and Templates
In reply to: [Spasalon] Strange 'Read More' Text in headerI also had this problem. After inspecting my source and doing a little hunting, I think I may have discovered the cause, at least mine.
I am using my own theme, but this was my first time introducing the yoast plugin. I suspect many themes that generate the “read more” text may have this issue.
I have a function within my functions.php file generating og properties. The og:description property was set as
content="'. the_excerpt(); .'"
.. that was generating the “read more” copy in the header.For some reason when activating the seo plugin, this causes this line to fail. However, the yoast plugin also generates og properties and will cause these to be doubled in your head, or most likely one in the head and one outside of the head.
If you’re using the yoast plugin, and your theme is generating it’s own og properites I’d try disabling any og function all together, most likely named insert_fb_in_head() {…