dates under post titles — also showing up under Nav

Add an additional check for in_the_loop() to only affect titles being output within the main query’s loop: function add_dates_to_title_wpse106605($title, $id) { if ( is_home() && in_the_loop() ){ // <– added in_the_loop() $time = get_the_time( $d = ‘l, F j, Y’, $post = $id ); return $title . ‘<br><small class=”time”>’ . $time . ‘</small>’; } return … Read more

How to expand picture to cover entire header area? (twenty-twelve theme)

You will have to do a lot of modifications on this one. We are going to modify header.php file Firstly move this piece of code from header tag file to below body tag <?php if ( get_header_image() ) : ?> <a href=”https://wordpress.stackexchange.com/questions/152110/<?php echo esc_url( home_url(“https://wordpress.stackexchange.com/” ) ); ?>”><img src=”<?php header_image(); ?>” class=”header-image” width=”<?php echo get_custom_header()->width; … Read more

Unregister mobile menu in twenty twelve not working

Delete wp_enqueue_script navigation wont work as the navigation were being registered and stored on the database. So for this you need to deregister navigation using the code below: add_action( ‘wp_print_scripts’, ‘deregister_navscript’, 100 ); function deregister_navscript() { wp_deregister_script( ‘twentytwelve-navigation’ ); } This code unregisters the javascript used to toggle the default responsive menu. Add CSS to … Read more

WordPress Twenty Twelve Child Theme. Removing default widgetized areas

The unregister_sidebar takes the ID, not the name: <?php unregister_sidebar( $id ); ?> You’ll need to do it like this: <?php function remove_some_widgets(){ unregister_sidebar( ‘sidebar-1’ ); unregister_sidebar( ‘sidebar-2’ ); unregister_sidebar( ‘sidebar-3’ ); } add_action( ‘widgets_init’, ‘remove_some_widgets’, 11 ); ?>

TwentyTwelve child theme style.css?ver=3.8.1

well that depends on what you want to do, but if it is easier for you to edit that template it will be better that you can control all the output of it.. fx like this function add_require_scripts_files() { wp_enqueue_style(‘layout’, get_template_directory_uri().’/style.css’, array(), ‘1.0.0’, “all”); } add_action( ‘wp_enqueue_scripts’, ‘add_require_scripts_files’ ); and this what the function expects … Read more