Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

  • Profile
  • Topics Started
  • Replies Created
  • Favorites

Forum Replies Created

  • 3 years, 11 months ago Falexis
    Participant

    Expired

    in reply to: Uncaught TypeError: window.codeless_player.play is not a function

    I managed to solve the problem by my own efforts. The Play button did not work on the podcast Show page, because there was no player output on this page (perhaps this is a deliberate flaw, since the “livecast-play” js class and the “data-audio-id” parameter for activating the player were not on the button initially). To solve the problem, it is necessary in the template taxonomy-podcast_show.php call the player with any podcast, after which all the buttons in the list of releases will work. Code to call:
    —-
    <div class=”codeless-inline-player” data-audio-id=”podcast_ID” href=”URL_TO_YOUR_PODCAST”>
    <?php
    $codeless_player = \Codeless_Player::get_instance();
    $codeless_player->display_player_widget(array(‘is_widget’ => true, ‘colors’ => ‘dark’, ‘style’ => ‘with_image’));
    ?>
    </div>
    —-
    I will add that I use this method only because on the SHOW_PODCAST taxonomy page I do not use the Elementor widget (where it is possible to insert a player) for the design of the page. On all other pages, the player and buttons work correctly.

Viewing 1 post (of 1 total)

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password