Hello!
Here’s my functions.php
<?php
require_once(TEMPLATEPATH . '/epanel/custom_functions.php');
require_once(TEMPLATEPATH . '/includes/functions/comments.php');
require_once(TEMPLATEPATH . '/includes/functions/sidebars.php');
load_theme_textdomain('Memoir',get_template_directory().'/lang');
require_once(TEMPLATEPATH . '/epanel/options_memoir.php');
require_once(TEMPLATEPATH . '/epanel/core_functions.php');
require_once(TEMPLATEPATH . '/epanel/post_thumbnails_memoir.php');
function et_create_dropcaps($post_text){
global $shortname;
if ( get_option($shortname . '_dropcaps') == 'false' ) return $post_text;
$post_content_text = trim($post_text);
$post_content_firstletter = $post_content_text[0];
$post_content_text[0] = '';
return '<span class="drop-caps">' . $post_content_firstletter . '</span>' . $post_content_text;
}
function register_main_menus() {
register_nav_menus(
array(
'primary-menu' => __( 'Primary Menu' )
)
);
}
if (function_exists('register_nav_menus')) add_action( 'init', 'register_main_menus' );
if (class_exists('Walker_Nav_Menu')) {
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 ) ? esc_attr( $item->description ) : '';
if (strlen($description) > 22) $description = substr($description,0,21);
$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 .= '<span>' . $description. '</span>' . $args->link_after;
$item_output .= '</a>';
$item_output .= $args->after;
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
}
}
}
$wp_ver = substr($GLOBALS['wp_version'],0,3);
if ($wp_ver >= 2.8) include(TEMPLATEPATH . '/includes/widgets.php'); ?>
b) `<?php wp_list_comments(array(‘type’=>’comment’,’callback’=>’mytheme_comment’,’avatar_size’=>50,
‘reply_text’=>’Reply’)); ?> `
– This one is in my comments.php
Yeah, i Tried to change it here, but nothing change when save the file