bin dabei, 2013 anzupassen. Als Hauptänderung hab ich ne full width page namens "Startseite" eingefügt.
Der Code ist:
PHP
<?php
/**
* Template Name: Startseite
*
* The template for displaying the frontpage.
* ...
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header my-full-size">
<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail">
<?php the_post_thumbnail(); ?>
</div>
<?php endif; ?>
</header><!-- .entry-header -->
<div class="entry-content my-full-size">
<?php the_content(); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post -->
<?php endwhile; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_footer(); ?>
Alles anzeigen
Dazu nen CSS Zusatz:
CSS
.my-full-size {
margin-left: auto !important;
margin-right: auto !important;
height: auto;
padding-right: 1em !important;
background: url("images/body-bg.png") no-repeat;
color: #000;
}
Was ich nicht so richtig verstehe ist, weshalb ich den Text nicht sauber eingefasst kriege. Zum Einen gibt es ein margin-left (sieht zumindest so aus), zum Anderen sitzt der Text oben und rechts am Anschlag.
Hab versucht den .content anzupassen, brachte nichts. Hat jemand einen Ansatz?
URL: http://lfdy66.com