post edit button on front end

The function is edit_post_link() (see Codex or source). In TwentyEleven it used as follows in content.php edit_post_link( __( ‘Edit’, ‘twentyeleven’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); You can simply use the function as indicated above (or in the Codex) in a custom template, but it must be used inside the loop. There’s no need to perform … Read more

How to Edit the style of header title of Twenty Eleven Theme?

The CSS rule that is setting the color of the site title, which you referred to being on line #58 of index.php (which is actually shown as line #60 in your screenshot), I think, is generated from the WordPress customizer – Appearance -> Customize from within your admin area. The Chrome element inspector isn’t referring … Read more

Conditional Statement – Best Way to Remove Nav on Contact Page

You could try putting this code in your functions.php function remove_contact_nav( $nav_menu, $args ){ if( is_page_template(‘template-contact.php’) || is_page( ‘contact’ ) ) { $nav_menu = null; } return $nav_menu; } add_filter( ‘wp_nav_menu’, ‘remove_contact_nav’, 11, 2 ); The if condition need to be modified as per your template name or the second condition would also do if … Read more

How to determine which custom header image is being shown

For the TwentyEleven theme, you can place this above your BODY tag in header.php. The theme will recognize that $header_image is already set, so no other mods would be necessary. $header_image = get_header_image(); $image = basename($header_image); $image = explode(‘.’,$image); $class=”header-image-“.$image[0]; Add the $class parameter to the body_class function to insert your header image class. body_class($class);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)