Same question – trouble with code input
-
Responsive Theme with child theme. https://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 isif ( 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 https://codex.www.ads-software.com/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.
https://www.ads-software.com/extend/plugins/multisite-language-switcher/
- The topic ‘Same question – trouble with code input’ is closed to new replies.