Change Twenty Twelve’s comment form in a child theme

You can use filters in custom functions to modify the default output of the comments form via your child themes functions file. Modify the comment form “Leave a reply” text. add_filter( ‘comment_form_defaults’, ‘wpsites_modify_comment_form_title’ ); function wpsites_modify_comment_form_title( $defaults ) { $defaults[‘title_reply’] = __( ‘Leave a Comment’ ); return $defaults; } Remove The Website URL Field From … Read more

Logo is not being displayed in header (Twentytwelve)

Replace the image code with the below one. Actually you are giving the root path in your image source but the image is in your theme folder. Also check if the images folder name is image or images. <img src=”https://wordpress.stackexchange.com/questions/159297/<?php bloginfo(“template_directory’); ?>/image/logokovil.png” alt=”logo” height=”100″ width=”100″>

Twenty Twelve Widget Taking Space

There are some confusing information in your question and some important information missing Did you set a static front page as it is suggested in your code Do you need to achieve this on your front page or homepage Why aren’t you using the front-page.php template included if you have set a static front page, … Read more

With over a page of content the footer remains where the bottom of the screen was at top scroll

Good news, I seem to have fixed the code. I cleaned up the code for #colophon. I changed it from this: #colophon { background:url(http://kjel.ca/wp-content/uploads/2014/12/footer-img.jpeg) repeat-x bottom center; height:80%; width:100%; position:absolute; margin:0; padding:0; bottom:0; min-width:100%; min-height:1%; } To this: #colophon { background: url(“http://kjel.ca/wp-content/uploads/2014/12/footer-img-2.jpeg”) repeat-x scroll center bottom transparent; height: 100%; position: absolute; width: 100%; background-size: 100% … Read more

Add date before entry title in Twenty Twelve

Base on @Tunji answer. You can add some conditions to the function to detect home-page, feeds… function display_extra_title( $title, $id = null ) { $date = the_date(”, ”, ”, false); if(is_home()){ $title = get_bloginfo( ‘name’ ); return $date . $title; } else{ return $date . $title; } } add_filter( ‘the_title’, ‘display_extra_title’, 10, 2 ); In … Read more

How does the Twenty Twelve Navigation Bar work?

The code in question is in header.php, line 45. <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu’ ) ); ?> This is the Codex reference to this function: wp_nav_menu. From my experience, and some googling, this previous answer has the answer you’re looking for. If possible, would just adding a class to the sub-menus … Read more