Change the main width of Twenty Thirteen theme
Try adding the following to your custom css, with 960px being your desired width. .site { max-width: 960px; } And for the background color: .body { background: #f7f7f7; }
Try adding the following to your custom css, with 960px being your desired width. .site { max-width: 960px; } And for the background color: .body { background: #f7f7f7; }
This is code from the codex which enables your child inheritance. add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ ); function theme_enqueue_styles() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘parent-style’) ); } https://codex.wordpress.org/Child_Themes
THe theme’s Customizations area should allow you to specify the header image (and even the background image). Although this is not the place to get support for a theme (or plugin), look in Customizations first (in Admin area, under Themes) to specify your header image. It may be that the actual image file was deleted. … Read more
The function that handles thumbnail size is already hooked with after_setup_theme in \twentythirteen\functions.php. There is no use adding a if (!function_exists()) in child functions.php because the child functions.php is always loaded before. So this would be more logical to find this in the parent file. The answer would be to set a different prority to … Read more
In TwentyThirteen, there are many files, their names’re started with content: content.php content-none.php content-aside.php content-audio.php content-chat.php content-gallery.php content-image.php content-link.php content-quote.php content-status.php content-video.php Among them, except the first two, all the others are for different post types, and you can understand their usages from their names. The 2nd one, content-none.php is used to display apology texts, … Read more
You should be using get_the_date, rather than the_time (which will just echo the value). And always quote string arguments. $date = sprintf( ‘<span class=”date”><a href=”https://wordpress.stackexchange.com/questions/132268/%s” title=”https://wordpress.stackexchange.com/questions/132268/%s” rel=”bookmark”><time class=”entry-date” datetime=”https://wordpress.stackexchange.com/questions/132268/%s”><span class=”date–day”>%s</span><span class=”date–month”>%s</span><span class=”date–year”>%s</span></time></a></span>’, esc_url( get_permalink() ), esc_attr( sprintf( __( ‘Permalink to %s’, ‘lyod’ ), the_title_attribute( ‘echo=0’ ) ) ), esc_attr( get_the_date( ‘c’ ) ), esc_attr( get_the_date( … Read more
There are many approaches to this. This is because the position: absolute on the sidebar-container is making it overlap over the footer. Try this CSS to override. This is a static solution: body.single .hentry // Selects the single posts { min-height: 2000px; // Set this according to the height of the sidebar } This one … Read more
The simple answer is NO, You can not! CSS stand for Cascade Style Sheet which mean to style elements in cascade order. CSS can not change the DOM. There are two ways to achieve it. Overriding header.php Using JavaScript or jQuery (Not recommended) Method 1: Copy the header.php to your child theme and modify href … Read more
I don’t see any hooks available to help you hook your function. As you are using child theming, so take the copy of the header.php file from the parent twenty thirteen theme and paste it in the child theme folder and make the changes. This will work.
Tested on a Twenty Thirteen & Twenty Twelve child theme. Try this from your child themes functions.php file. You can add the image using various methods. add_filter( ‘wp_nav_menu_items’, ‘wpsites_add_logo_nav_menu’, 10, 2 ); function wpsites_add_logo_nav_menu( $menu, stdClass $args ){ if ( ‘primary’ != $args->theme_location ) return $menu; $menu .= ‘<nav class=”nav-image”><img src=”‘ . get_stylesheet_directory_uri() . ‘/images/header.png” … Read more