Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Never mind I fixed it thank you though!

    Hi this is the code from the theme that is giving me similar problems and error message i changed it to match the code above but that work for me any suggestions?

    ERROR:
    Strict standards: Declaration of DCC_WPMenuCustomWalker::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in C:\wamp\www\DavisLife\wp-content\themes\dl\cms\php\cp_classes.php

    CODE:
    class DCC_WPMenuCustomWalker extends Walker_Nav_Menu
    {
    function start_el(&$output, $item, $depth, $args, $id = 0)
    {
    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 = ”;
    $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 ) .'”‘ : ”;
    $item_output = $args->before;

    $a_classes = ”;
    if($depth == 0) { $a_classes = ‘ class=”top” ‘; }
    $item_output .= ‘‘;
    $item_output .= $args->link_before . apply_filters( ‘the_title’, $item->title, $item->ID ) . $args->link_after;
    $item_output .= ‘
    ‘;
    $item_output .= $args->after;
    $output .= apply_filters( ‘walker_nav_menu_start_el’, $item_output, $item, $depth, $args, $id);
    }
    }

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