Title: Same question &#8211; trouble with code input
Last modified: August 21, 2016

---

# Same question – trouble with code input

 *  Resolved [jgoldberg2013](https://wordpress.org/support/users/jgoldberg2013/)
 * (@jgoldberg2013)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/same-question-trouble-with-code-input/)
 * Responsive Theme with child theme. [http://www.help-alliance.de](http://help-alliance.de)
   
   Level of PHP is zero. I have tried a number of times to insert the code provided
   into various placs but I keep getting a parse error. Code inserted is `if ( function_exists('
   the_msls' ) ) the_msls()` you mention place this in functions.php. There are 
   two functions.php files. 1 in main dir of theme – code is.
 *     ```
       * WARNING: Please do not edit this file in any way
        *
        * load the theme function files
        */
       require ( get_template_directory() . '/includes/functions.php' );
       require ( get_template_directory() . '/includes/theme-options.php' );
       require ( get_template_directory() . '/includes/post-custom-meta.php' );
       require ( get_template_directory() . '/includes/tha-theme-hooks.php' );
       require ( get_template_directory() . '/includes/hooks.php' );
       require ( get_template_directory() . '/includes/version.php' );
       ```
   
 * 2 in functions.php in theme dir/includes – code relating to main-nav is `/**
 *     ```
       * This feature enables custom-menus support for a theme.
                * @see http://codex.wordpress.org/Function_Reference/register_nav_menus
                */
               register_nav_menus(array(
       			'top-menu'         => __('Top Menu', 'responsive'),
       	        'header-menu'      => __('Header Menu', 'responsive'),
       	        'sub-header-menu'  => __('Sub-Header Menu', 'responsive'),
       			'footer-menu'      => __('Footer Menu', 'responsive')
       		    )
       	    );
   
       		if ( function_exists('get_custom_header')) {
       ```
   
 * Alternative is the header.php file but I still cant get the flags to show in 
   the menu bar itself..
    This is the header.php code:
 *     ```
       <?php get_sidebar('top'); ?>
       				<?php wp_nav_menu(array(
       				    'container'       => 'div',
       						'container_class'	=> 'main-nav',
       						'fallback_cb'	  =>  'responsive_fallback_menu',
       						'theme_location'  => 'header-menu')
       													);
       						?>
       ```
   
 * I have spent a few hours on this trying to figure this out without support but
   I feel I am out of league when php coding is at work.
 * [http://wordpress.org/extend/plugins/multisite-language-switcher/](http://wordpress.org/extend/plugins/multisite-language-switcher/)

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/same-question-trouble-with-code-input/?output_format=md)
[1](https://wordpress.org/support/topic/same-question-trouble-with-code-input/?output_format=md)
2

 *  Thread Starter [jgoldberg2013](https://wordpress.org/support/users/jgoldberg2013/)
 * (@jgoldberg2013)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/same-question-trouble-with-code-input/page/2/#post-3917619)
 * OK – I hve actually ditched this process and took a completely different angle.
   Working with margins.
 *     ```
       #header #mslswidget-4 {
         clear: right; float: right;
         margin-bottom:-45px; width: 300px;
       ```
   
 * Although it is not embeded it works for now until we can fugure why your code
   does not work in my theme.
 *  Plugin Author [Dennis Ploetner](https://wordpress.org/support/users/realloc/)
 * (@realloc)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/same-question-trouble-with-code-input/page/2/#post-3917641)
 * OK, very good.
 * The snapshot is quite interesting. Does that mean that there is no menu defined
   and it shows a fallback-menu?
 *  Thread Starter [jgoldberg2013](https://wordpress.org/support/users/jgoldberg2013/)
 * (@jgoldberg2013)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/same-question-trouble-with-code-input/page/2/#post-3917643)
 * Sorry but I do not understand what you are saying. I am pretty new to the coding
   stuff.
    What do think the issue was – as you state that my scenario is quite 
   interesting. On a another note: Now that I am using margins to move the widget
   box over my nav bar – for some reason it does not show in IE9 but is fine in 
   FF. When using float to right the images disapear – they are there in F12 development
   tool but no image is shown. When settings are :
 *     ```
       #header #mslswidget-4 {
         margin-bottom:-45px;
         display: inline-block;
         float: none;
        }
       ```
   
 * then the flags show but are behind the nav bar – reied making z-index 9999 but
   still did not help.
    Any advise as all reading ppoints to widget code not being
   compatible with floats.
 *  Thread Starter [jgoldberg2013](https://wordpress.org/support/users/jgoldberg2013/)
 * (@jgoldberg2013)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/same-question-trouble-with-code-input/page/2/#post-3917644)
 * As soon as I use float – the flag images go behind the nav bar.
    As mentioned
   they are there according to dev tools. But in Firefox – the images are perfect–
   infront of nav bar.
 *  Thread Starter [jgoldberg2013](https://wordpress.org/support/users/jgoldberg2013/)
 * (@jgoldberg2013)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/same-question-trouble-with-code-input/page/2/#post-3917646)
 * For anybody else trying to do this, I have created a new post with the short-
   end of process and result.
    [](http://wordpress.org/support/topic/place-flags-in-navigation-bar-alternative-way?replies=0#post-4407453)
 *  Thread Starter [jgoldberg2013](https://wordpress.org/support/users/jgoldberg2013/)
 * (@jgoldberg2013)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/same-question-trouble-with-code-input/page/2/#post-3917647)
 * Sorry link is [alternative way of placing flags in navigation bar](http://wordpress.org/support/topic/place-flags-in-navigation-bar-alternative-way?replies=0#post-4407453)

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/topic/same-question-trouble-with-code-input/?output_format=md)
[1](https://wordpress.org/support/topic/same-question-trouble-with-code-input/?output_format=md)
2

The topic ‘Same question – trouble with code input’ is closed to new replies.

 * ![](https://ps.w.org/multisite-language-switcher/assets/icon-256x256.png?rev=
   2793358)
 * [Multisite Language Switcher](https://wordpress.org/plugins/multisite-language-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multisite-language-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multisite-language-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/multisite-language-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multisite-language-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multisite-language-switcher/reviews/)

 * 21 replies
 * 3 participants
 * Last reply from: [jgoldberg2013](https://wordpress.org/support/users/jgoldberg2013/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/same-question-trouble-with-code-input/page/2/#post-3917647)
 * Status: resolved