• Hi,

    I´m reading through many forums but i don´t see the answer i´m looking for and i hope somebody can help me out here.

    I want to put Transposh in the header for my side.
    Now did i find the following PHP which i added in the Header.php. but nobody can tell me where to put this, and of course this is related to each header.
    In my case i have added the following in my header
    <?php if(function_exists(“transposh_widget”)) { transposh_widget(array(), array(‘title’ => ‘Translation’, ‘widget_file’ => ‘flags/tpw_flags_css.php’)); }?>
    and the location looks good but i have it now on the right side of the page and i want to have it on the left side.
    no i know i can do this with a css script and this is where i don´t find the right answers. does somebody know how and what to put.
    so i can put this in the css?

    looking forward to see your assistance.

    Thanks

    https://wordpress.org/plugins/transposh-translation-filter-for-wordpress/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter markboer

    (@markboer)

    Does anyone has the answer for my question?

    thanks

    Plugin Author oferwald

    (@oferwald)

    Hi,

    Either position it elsewhere in your header, or use css to float the element.

    Best,

    Does someone know how to put the flag in the header (menu)

    Please reply, Thanks

    Plugin Author oferwald

    (@oferwald)

    Hello-Thanks

    I’m using now a other theme what have the option to put widgets in the header. But Thanks anyways

    Place the code in a php page called flagtop.php
    In the header, or functions include(‘flagtop’);

    <style>
    .toptrans {clear:both; width:90%; margin:-40px 0 0 30px; z-index:70; text-align:left; display:inline; position:absolute;}
    </style>
    <div class="toptrans"><?php if(function_exists("transposh_widget")) { transposh_widget(array(), array('title' => '', 'widget_file' => 'flags/tpw_flags.php')); }?></div>

    in that page, edit the style called #toptrans
    make sure the css has the position:absolute; the display inline makes the flags side-by-side, the z-index makes sure its above all the elements on the page (so it can be clicked on – you can use the top left margins to position it wherever yo want -.

    this is also mobile friendly 🙂

    PS make a copy for the footer if you want – change the top to foot, so no collisions occur.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Transposh in Header’ is closed to new replies.