• Resolved jgoldberg2013

    (@jgoldberg2013)


    Responsive Theme with child theme. http://www.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/

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter jgoldberg2013

    (@jgoldberg2013)

    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

    (@realloc)

    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

    (@jgoldberg2013)

    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

    (@jgoldberg2013)

    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

    (@jgoldberg2013)

    For anybody else trying to do this, I have created a new post with the short-end of process and result.

    Thread Starter jgoldberg2013

    (@jgoldberg2013)

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Same question – trouble with code input’ is closed to new replies.