Title: syntax error menu php  line 16
Last modified: August 21, 2016

---

# syntax error menu php line 16

 *  [Boris Brejcha](https://wordpress.org/support/users/route12/)
 * (@route12)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-menu-php-line-16/)
 * There is a syntax error on line 16. Code hinting may not work until you fix this
   error.
 *     ```
       <?php
   
       // Activate menu function
       add_action('init', 'my_custom_menus');
   
       function my_custom_menus()
       {
           register_nav_menus(array(
               'main-menu' => 'Main Menu',
               'footer-menu' => 'Footer Menu',				'top_menu' => 'Top Menu',			'resp_menu' => 'Responsive Menu'
           ));
       }
   
       // Main walker menu
   
       class Walker_Responsive_Menu extends Walker_Nav_Menu {    function start_lvl(&$output, $depth){      $indent = str_repeat("\t", $depth); // don't output children opening tag (<code><ul></code>)    }    function end_lvl(&$output, $depth){      $indent = str_repeat("\t", $depth); // don't output children closing tag    }		function start_el(&$output, $item, $depth, $args) {		global $wp_query;				$item_output = $attributes = $prepend ='';		// Create a visual indent in the list if we have a child item.		$visual_indent = ( $depth ) ? str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;', $depth) : '';		// Load the item URL		$attributes .= ! empty( $item->url ) ? ' value="'   . esc_attr( $item->url ) .'"' : '';		// If we have hierarchy for the item, add the indent, if not, leave it out.		// Loop through and output each menu item as this.		if($depth != 0) {			$item_output .= '<option ' . $attributes .'>'. $visual_indent . $item->title. '</option>';		} else {			$item_output .= '<option ' . $attributes .'>'.$prepend.$item->title.'</option>';		}		// Make the output happen.		$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );	}}class description_walker extends Walker_Nav_Menu{      function start_el(&$output, $item, $depth, $args)      {           global $wp_query;           $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';           $class_names = $value = '';           $classes = empty( $item->classes ) ? array() : (array) $item->classes;           $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) );           $class_names = ' class="'. esc_attr( $class_names ) . '"';           $output .= $indent . '<li id="menu-item-'. $item->ID . '"' . $value . $class_names .'>';           $attributes  = ! empty( $item->attr_title ) ? ' title="'  . esc_attr( $item->attr_title ) .'"' : '';           $attributes .= ! empty( $item->target )     ? ' target="' . esc_attr( $item->target     ) .'"' : '';           $attributes .= ! empty( $item->xfn )        ? ' rel="'    . esc_attr( $item->xfn        ) .'"' : '';           $attributes .= ! empty( $item->url )        ? ' href="'   . esc_attr( $item->url        ) .'"' : '';           $prepend = '<strong>';           $append = '</strong>';           $description  = ! empty( $item->description ) ? '<span>'.esc_attr( $item->description ).'</span>' : '';           if($depth != 0)           {                     $description = $append = $prepend = "";           }            $item_output = $args->before;            $item_output .= '<a'. $attributes .'>';            $item_output .= $args->link_before .$prepend.apply_filters( 'the_title', $item->title, $item->ID ).$append;            $item_output .= $description.$args->link_after;            $item_output .= '</a>';            $item_output .= $args->after;            $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );            }}
       ```
   
 * Can anyone help me with this? my theme not working 🙁

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-menu-php-line-16/#post-3824118)
 * It’s the responsive theme?
 *  Thread Starter [Boris Brejcha](https://wordpress.org/support/users/route12/)
 * (@route12)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-menu-php-line-16/#post-3824119)
 * Yes Andrew
 * here is link of my site
 * [http://livesetsarchive.com/](http://livesetsarchive.com/)
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-menu-php-line-16/#post-3824120)
 * The responsive theme developers ask that you post on their forums, [http://cyberchimps.com/forum/free/responsive/](http://cyberchimps.com/forum/free/responsive/),
   for queries regarding their theme.
 *  Thread Starter [Boris Brejcha](https://wordpress.org/support/users/route12/)
 * (@route12)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-menu-php-line-16/#post-3824122)
 * this is not cyberchimp theme so i don’t know why i should post there my question..
 *  [ronangelo](https://wordpress.org/support/users/ronangelo/)
 * (@ronangelo)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-menu-php-line-16/#post-3824160)
 * You’re using a paid theme that is probably shared somewhere for free
    As indicated
   in your style.css.
 * I think it would be better if you chose another theme since that doesn’t work
   and the authors probably won’t help either.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [12 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-menu-php-line-16/#post-3824163)
 * Worse than that, it’s a commercial theme. The site that it was downloaded is 
   being unethical (that’s the nice way to put it).
 * **[@route12](https://wordpress.org/support/users/route12/)**? Lose that theme
   and all theme’s that were downloaded from that site. You’re site is probably 
   hacked. That’s why that sites like that give away commercial themes, they fool
   you into getting “free” commercial themes so that they can infect your site.
 * Seriously. Read this for more information.
 * [http://www.chipbennett.net/2010/12/10/only-download-wordpress-themes-from-trusted-sources/](http://www.chipbennett.net/2010/12/10/only-download-wordpress-themes-from-trusted-sources/)
 * Unless you want other people to be paid for your WordPress installation then 
   just lose that theme. Go to the commercial site, pay for it, and use that instead.
 *  Thread Starter [Boris Brejcha](https://wordpress.org/support/users/route12/)
 * (@route12)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-menu-php-line-16/#post-3824172)
 * well guys.. this is not my orginal website.. it’s just domain for testing wordpress
   themes and plugis 😉
 * im still learning wordpress so i buy domain for testing 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘syntax error menu php line 16’ is closed to new replies.

 * 7 replies
 * 4 participants
 * Last reply from: [Boris Brejcha](https://wordpress.org/support/users/route12/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-menu-php-line-16/#post-3824172)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
