Moin,
ich versuche nun schon länger :-( das Theme twentythirteen mittels child-Theme auf volle Breite zu ändern.
Sonstige Änderungen mittels Änderung der style.css funktionieren.
Momentan sieht es so aus:
style.css
Code
/*
LAYOUT: Seitentitel
*/
.entry-title { text-decoration: underline overline;
}
/*
LAYOUT: One column, no sidebar
DESCRIPTION: One centered column with no sidebar
*/
.one-column #content {
margin: 0 auto;
width: 640px;
}
/*
LAYOUT: Full width, no sidebar
DESCRIPTION: Full width content with no sidebar
*/
.full-width #content {
margin: 0 auto;
width: 900px;
}
Alles anzeigen
Vergrößerung der Pixelzahl bewirken nur das der Seitentitel nach links verschoben wird, der eigentliche Seitentext jedoch nicht.
fullwidth.php
PHP
<?php
/**
* The template for displaying all pages
*
* Template Name: Full Width
* Please note that this is the WordPress construct of pages and that other
* 'pages' on your WordPress site will use a different template.
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/
get_header(); ?>
<div id="container" class="fullwidth">
<div id="content" role="main">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'Clearness' ), 'after' => '</div>' ) ); ?>
<?php edit_post_link( __( 'Edit', 'Clearness' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-content -->
</div><!-- #post-## -->
<?php comments_template( '', true ); ?>
<?php endwhile; ?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_footer(); ?>
Alles anzeigen