• Resolved Pratham

    (@pratham2003)


    Please refer to the follow code which allows overriding the aws polly widget position in the content.

    File: amazon-polly\public\class-amazonpolly-public.php

    Replace
    if ( strcmp( $selected_position, 'Do not show' ) === 0 ) {

    with

    if (strpos($content, '-AMAZONPOLLY-WIDGET-HERE-') !== false) {
      $content = str_replace('-AMAZONPOLLY-WIDGET-HERE-', $translate_options . $polly_content, $content);
      } elseif ( strcmp( $selected_position, 'Do not show' ) === 0 ) {
    • This topic was modified 4 years, 7 months ago by Pratham.
    • This topic was modified 4 years, 7 months ago by Pratham.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Suggestion: override polly widget position per article’ is closed to new replies.