WordPress.org

Ready to get started?Download WordPress

Forums

Google Ajax Translation Action Call (5 posts)

  1. dkean
    Member
    Posted 4 years ago #

    For google Ajax Translation: how could I place an action call in text that is not currently showing a translation option?

    Not very good at PHP, so would love someon to help me out a bit!

    Cheers

  2. monodistortion
    Member
    Posted 4 years ago #

    Sorry for the delay answering your question. I was busy moving and then away for holidays.

    I'm not sure I understand your question. This plugin adds a translation button to posts, comments, and pages. Do you have a link to your site? What do you want to translate?

  3. whatsthatbug.com
    Member
    Posted 4 years ago #

    I think he wants to do is use a function call in his theme's template pages to manually place the 'Translate' button. For example, with the ShareThis plugin, you can disable the add_action call add this code anywhere in the template where you want the 'ShareThis' button to appear:

    <?php if (function_exists('sharethis_button')) { sharethis_button(); } ?>

    At least, that's what I was trying to figure out when I came across this thread. If you look at http://www.whatsthatbug.com, you'll see Translate, ShareThis and Like all stacked on top of each other at the bottom of each post. But I want to use divs to put them all on one line.

    Thanks,

    Daniel

  4. monodistortion
    Member
    Posted 4 years ago #

    A custom function to put the Translate button anywhere within the WordPress loop is coming in the next version. See this thread:
    http://wordpress.org/support/topic/342522?replies=9

    For your question-- you should be able to do this with the next version. Let me know if you need any help with the code or css though. Thanks for the link to your site too! I like seeing interesting sites that are able to get use of this plugin.

  5. whatsthatbug.com
    Member
    Posted 4 years ago #

    Excellent! I'm looking forward to the update. And thanks for the compliments on my site.

Topic Closed

This topic has been closed to new replies.

About this Topic