WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ecclescake
    Member
    Posted 2 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:

    Translation
    <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!

    http://wordpress.org/extend/plugins/transposh-translation-filter-for-wordpress/

  2. Ofer Wald
    Member
    Plugin Author

    Posted 2 years ago #

    Hello

    Look for

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

    in transposh_widget.php

    Good luck

  3. ecclescake
    Member
    Posted 2 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

About this Topic