Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

Viewing 5 posts - 1 through 5 (of 5 total)

Translation widget

Home Forums Free Theme Support Theron Lite Translation widget

  • #85340

    Jorge

    Hi, Towfiq,

    I am using a translation widget, but in order to be shown at the homepage the only place to add it seems to be at the footer.
    Is there a way to place it at the top of the page ?
    Web site adress: http://www.tarratangueando.com
    Many thanks,
    J

    #85394

    Towfiq I.

    administrator

    I guess you are using this plugin:
    http://wordpress.org/plugins/transposh-translation-filter-for-wordpress/

    does this plugin has a shortcode or template function?

    #85397

    Jorge

    No, but I’ve found this text at the plugin FAQ support page:

    How can I add the plugin interface without using the sidebar widget?

    Just add the following line to your template:
    <?php if(function_exists(“transposh_widget”)) { transposh_widget(); }?>

    If you want to use a widget style other than the default style and title, you can use something like:
    <?php if(function_exists(“transposh_widget”)) { transposh_widget(array(), array(‘title’ => ‘Translation’, ‘widget_file’ => ‘flags/tpw_flags.php’)); }?>

    #85402

    Towfiq I.

    administrator

    Open up header.php and add that line after this:

    <div class="center <?php echo of_get_option('head_select'); ?>-social">

    and then add this to your stylesheet:

    .transposh_flags {
    direction: ltr;
    line-height: 0;
    float: left;
    margin-top: 30px;
    }

    #85408

    Jorge

    Towfiq,
    I’ve added the line in the place and the page went to white. Then I’ve tried adding before that line and and it works:

    <body <?php body_class(); ?>>
    <?php if(function_exists(“transposh_widget”)) { transposh_widget(array(), array(‘title’ => ‘Translation’, ‘widget_file’ => ‘flags/tpw_flags.php’)); }?>
    <div class=”center <?php echo of_get_option(‘head_select’); ?>-social”>

You must be logged in to reply to this topic.