Add new menu in Admin nav bar of wp admin dashboard

you can do it by addign the below code in themes functions.php

function my_admin_bar_menu() {
    global $wp_admin_bar;
    if ( !is_super_admin() || !is_admin_bar_showing() )
    $wp_admin_bar->add_menu( array(
    'id' => 'custom_menu',
    'class' => 'classname',
    'title' => __( 'menu name'),
    'href' => '' ) );
add_action('admin_bar_menu', 'my_admin_bar_menu',100);

remove textwidget div in wordpress

You can remove it by going to wp-includes/default-widgets.php

on line nr 502 in latest wp .

<div class="textwidget"><?php echo !empty( $instance['filter'] ) ? wpautop( $text ) : $text; ?></div>

just remove  the div from here.

But is it not a good idea to do change the core file of a WordPress.

You can change the class name using jquery also with the following jquery code:

jQuery('.textwidget').attr('class', 'newclassname');

Joomla htaccess

RewriteEngine On
RewriteCond %{QUERY_STRING} Itemid=66 [NC]
RewriteRule ^.*$ [R=301,L]

Remove container form wp menu

remove div element:

'container' => false

 remove ul elemnt

'items_wrap' => '%3$s'

remove li element

<?php echo strip_tags(wp_nav_menu(array('menu' => 'topmenu','container' => false, 'items_wrap' => '%3$s','echo' => false)),'<a>');  ?>



wordpress thumbnail resize

if ( function_exists( 'add_theme_support' ) ) {
    add_theme_support( 'post-thumbnails' );
        set_post_thumbnail_size( 645, 312,true );