WordPress.org

Forums

Pilot Fish
[resolved] Cant place the Multisite Language Switch flags at the site's top right corner. (5 posts)

  1. Sgouver
    Member
    Posted 1 year ago #

    I want to add the Multisite Language Switcher flag icons on the top right side of the header in my site.

    My Site is: http://3dtours.gr

    The step I have made so far is:

    Adding successfully at my functions.php the code :

    // Create a widget region for the
    // Multilingual Press lang switcher
    ///////////////////////////////////////
    if ( function_exists('register_sidebar') ) {
    	register_sidebar(array(
    		'name' => 'Language Switcher',
    		'id' => 'language-switcher',
    		'before_widget' => '<div>',
    		'after_widget' => '</div>'
    	));
    }

    Now I have a Widget devoted for the Multilingual Press lang switcher but when I try to add the :

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Language Switcher') ) : ?>
    <?php endif; ?>

    in Header.php the language flags are not correctly placed at the top right corner of the site.

    If you could give me any advise to solve this problem I would be grateful!!!

    http://wordpress.org/themes/pilot-fish/

  2. WPyogi
    Forum Moderator
    Posted 1 year ago #

    You just need some CSS to position those better. But one problem here is that you've modified theme files - and those changes will be lost when the theme is updated. A better way to do this would be to use a child theme - see other threads on this forum as to how to do that in this theme.

    Or just be sure that you don't update without a verified backup and the ability to reinstate your changes.

    That said, try adding this to your CSS:

    #arphabet {
         float: right;
         margin-top: 20px;
    }
    
    #arphabet img {
        float: left;
        margin-right: 5px;
    }
  3. Sgouver
    Member
    Posted 1 year ago #

    My god it worked...

    I want to cry... i struggled with that the whole day !!!

    You are my savour !!!

    Thank you.
    Thank you.
    Thank you.
    Thank you.

    I would keep in mind the update issues !
    I already use a child theme for my (not finished) English site http://3dtours.gr/en

    Are these theme updates so crucial ?

    However.
    Thank you again for your great and fast reply !

  4. WPyogi
    Forum Moderator
    Posted 1 year ago #

    LOL - glad to help :)! Next time, you could ask sooner - really.

    Theme updates are important if there are security or compatibility issues - but you can generally do those manually if you have to and you're willing to get your feet into the code.

  5. Sgouver
    Member
    Posted 1 year ago #

    I See, i would keep this theme version for now. The pilot fish update feautures from 0.3.2 to 0.3.4 are great but don't worth the risk/trouble for me.

    Thank you again for your kind reply !!
    Have a nice week !!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic