WordPress.org

Ready to get started?Download WordPress

Forums

Transposh WordPress Translation
Flags in header (9 posts)

  1. gonzalodelacampa
    Member
    Posted 9 months ago #

    Hi,

    I would like to change the dropdown menu for flags in this web: http://clinicanicedent.com/nd/

    I added this code in header.php but I do not know put flags instead of the dropdown menu:

    <div id="flags">
    <?php if (function_exists("transposh_widget")) {transposh_widget(array());} ?></div>

    Thanks aa lot in advance!

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

  2. Kash
    Member
    Posted 9 months ago #

    hallo gonzalo,

    did you find a solution?
    I am having the same issue.

    Thanks
    kash

  3. gonzalodelacampa
    Member
    Posted 9 months ago #

    Hi Kash,

    They sent me this email and with this code you can see the flags in the header:

    EMAIL:

    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')); }?>

    The widget file is actually the location of the widget source file in the widgets sub directory, you can see all the possible options in our development site. Some intereting options include

    'flags/tpw_flags_css.php'

    and

    'select2/tpw_select2.php'

    . You may also check all the current options in our widget gallery.

    Best,

  4. mhannan
    Member
    Posted 9 months ago #

    Hi,

    I'm facing same problem but what they suggested is not complete solution I think. I have tried to change all the possible file paths but it is not working well and still showing Drop downs.

    Any solution?

  5. esmi
    Forum Moderator
    Posted 9 months ago #

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else's topic.

  6. lew1s
    Member
    Posted 8 months ago #

    @gonzalodelacampa hi do you have the code for the flags ?

  7. mohamed_bo
    Member
    Posted 1 month ago #

    Hi all.
    I seen that @gonzalodelacampa found the solution, I hope that he share with us hpw he did it.
    Does anyone find the solution for this ??

  8. gonzalodelacampa
    Member
    Posted 1 month ago #

    Hi, this is code to have the drop-down menu:

    <div id="flags">
    <?php if (function_exists("transposh_widget")) {transposh_widget(array());} ?></div>

    and in the css:

    #flags {
    float:right;
    }

    To have the flags:

    <?php if(function_exists("transposh_widget")) { transposh_widget(array(), array('title' => '', 'widget_file' => 'flags/tpw_flags.php')); }?>

  9. mohamed_bo
    Member
    Posted 1 month ago #

    Hi Gonzalo,
    Gracias por responder.
    But I am a little new in this. Can you explain in witch php file I have to put each part of the code ?
    Thanks

Reply

You must log in to post.

About this Plugin

About this Topic