• Resolved MrSlartibartfast

    (@mrslartibartfast)


    Hi there,

    I’m adding the player via iframe to my post template which is working fine.

    What I’m looking for is an indicator on the template (php side) or the front end, where i can check if audio exists for this post.
    Can I get the status from the speedkit column that is displayed in the post page for example?

    What I’m trying to do is add a bit of conditional styling in case audio exists and the player is shown (margin for example).

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there, not sure if you figured this out, but there actually isn’t any need for this because if the audio does not exist then the player will not render.

    Thread Starter MrSlartibartfast

    (@mrslartibartfast)

    Hi, thanks for the response.
    Yes, I noticed its not there if it doesn’t exist but I’m adding the player in element that has additional padding, that I don’t need if the player is not rendered.

    I’ve found what I’m looking for though.
    I’m using the ‘speechkit_generate_audio’ parameter to see if audio was setup/requested for the post in question and only then add the player wrapping element.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BeyondWords / Speechkit – wordpress template – audio status indicator’ is closed to new replies.