new page sidebar-template by default

I would hook into the new_page action, and then use update_post_meta() to update the post meta value for _wp_page_template: <?php function wpse31124_set_page_default_template( $page_id ) { update_post_meta( $page_id, ‘_wp_page_template’, ‘sidebar-page.php’ ) } add_action( ‘new_page’, ‘wpse31124_set_page_default_template’ ); ?> You could hook into other actions, but they might stomp on your ability to use the default template. Using … Read more

How to create my own sidebar in Twenty Eleven child theme?

I think I understand what looking for. I’ve put together some code I’ve taken from parts of my themes to give you an example. For the functions.php: <?php add_action( ‘after_setup_theme’, ‘ideatree_init’ ); if ( ! function_exists( ‘ideatree_init’ ) ): function ideatree_init() { // REGISTER THE NAV MENUS (3 in this case) add_action( ‘init’, ‘register_my_menus’ ); … Read more

Removing permalink from post thumb in twentyeleven

No idea, never used twenty eleven theme. I opened the theme files. Check out showcase.php around Line 104-118. Should be on line 115 – just remove the anchor wrapping the post thumb, <a href=”https://wordpress.stackexchange.com/questions/52498/<?php the_permalink(); ?>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyeleven’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_post_thumbnail( $thumbnail_size ); ?></a>

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