WordPress.org

Forums

Scroll Triggered Boxes
Problems with q-translate plugin (2 posts)

  1. iarcas
    Member
    Posted 1 year ago #

    Hi Danny!

    My site uses q-translate plugin and I'm having problems to set a triggered box in two languages. How could I fix this?

    Thanks in advance!

    I.

    https://wordpress.org/plugins/scroll-triggered-boxes/

  2. alexlatorre
    Member
    Posted 2 months ago #

    this is not the best way but ...

    You can modify the class-public.php in includes folder of the plugin.
    near of 200 line you can replace this:

    <?php echo $content; ?>

    By this:
    <?php
    $current_lang = $GLOBALS['q_config']['language'];
    if ($current_lang=="ca"){
    echo "catala";
    }
    else if($current_lang=="es"){
    echo "espaƱol";
    }
    ?>

    (modify to adapt to your languages !! )

    :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Scroll Triggered Boxes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic