Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #336372

    Hi,

    Where should I insert the code, if I need the custom widget to be to the left of the menu or to the right of the menu (this is translation icons)?

    Best regards,
    Evgeny

    • This topic was modified 10 years, 1 month ago by Speedskater.
    #338332

    Hi Speedskater!

    Please go to Appearance > Editor and open helper-main-menu.php file and find

    echo avia_logo(AVIA_BASE_URL.'images/layout/logo.png', $addition, 'strong', true);

    and add your code right below it. If you can post the code you would like to use ( please use pastebin.com in that case ) we can help you with how it should be implemented

    Best regards,
    Yigit

    #347962

    Hi Yigit!

    Unfortunately, it didn’t work. Nothing appeared. But if I try to paste the code into header, I can see the changes.
    Here is the code – http://pastebin.com/bTAMyfAq

    #348278

    Hey!

    Try adding this at the very end of your theme / child theme functions.php file:

    function custom_func() {
    	echo ztrans_generateLanguageSelectCode('text');
    }
    add_action('ava_after_main_menu', 'custom_func');
    

    Cheers!
    Josue

    #348301

    Thank you Josue! It worked!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Custom widget in header’ is closed to new replies.