Transposh WordPress Translation
[resolved] [Plugin: Transposh - translation filter for wordpress] Adding HTML to widget display (3 posts)

  1. ecclescake
    Posted 4 years ago #

    Hello, I'm trying to add <h2> tags around the word "Translation" which is output when I call transposh_widget();.

    When I make the call, I get the following output:

    <form id="tp_form" method="post" action="/">
    <div class="no_translate transposh_flags">

    I see that <div class="no_translate transposh_flags"> is output by my selected widget PHP file, but I don't see where the word Translation is coming from. Its language changes based on the selected translation language.

    Thanks for any help!


  2. Ofer Wald
    Plugin Author

    Posted 4 years ago #


    Look for

    // widget default title
    echo $before_widget . $before_title . __('Translation', TRANSPOSH_TEXT_DOMAIN) . $after_title;

    in transposh_widget.php

    Good luck

  3. ecclescake
    Posted 4 years ago #

    Thanks so much, Ofer, it worked a treat! Don't know how I missed that before.

    I call the widget thus: <?php if(function_exists("transposh_widget")) { transposh_widget( array('before_title' => '<h2>', 'after_title' => '</h2>')); }?> and it does just what I need. Thanks again--I love Transposh!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Transposh WordPress Translation
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic