Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #271843

    Hi all,
    I need to add the widget code of transposh in the header.php to add language flags..
    There are other post in your support for other themes for that but I tried with enfold and nothing happens..
    The code is:
    <?php if(function_exists(“transposh_widget”)) { transposh_widget(array(), array(‘title’ => ‘Translation’, ‘widget_file’ => ‘flags/tpw_flags.php’)); }?>

    Where can i put this code?

    Regards,
    Giuseppe

    #272004

    Hey!

    You could try using the ‘ava_after_main_menu’ hook, something like this (functions.php):

    function add_transposh_widget(){
    if(function_exists(“transposh_widget”)) { transposh_widget(array(), array(‘title’ => ‘Translation’, ‘widget_file’ => ‘flags/tpw_flags.php’)); }
    }
    add_action('ava_after_main_menu', 'add_transposh_widget', 10, 0);

    Regards,
    Josue

    #272510

    Hi Josue,
    I’ve inserted your function at the end of function.php but nothing happen.
    Can you explain the details of the modify?

    regards,
    Giuseppe

    #272518

    That should call the transposh_widget() function after the main menu in the header, i just implemented the code you posted in your first post. Please understand that this kind of questions are out of the support scope we can offer, it would be better to contact someone to help you debug this issue.

    Best regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.