Last active
August 29, 2015 14:09
-
-
Save ginocremer/9606b80fc9258335bd4f to your computer and use it in GitHub Desktop.
Praxis-Workshop: Theme-Entwicklung
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_theme_support( 'post-thumbnails' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( have_posts() ) : | |
while ( have_posts() ) : the_post(); ?> | |
<?php the_post_thumbnail('thumbnail'); ?> | |
<h2><?php the_title();?></h2> | |
<?php the_content('Weiterlesen'); | |
endwhile; | |
endif; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( have_posts() ) : | |
while ( have_posts() ) : the_post(); ?> | |
<h2><?php the_title();?></h2> | |
<?php the_content('Weiterlesen'); | |
endwhile; | |
endif; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img class="header-image" src="<?php echo get_stylesheet_directory_uri(); ?>/img/header.jpg"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title><?php bloginfo('name'); ?></title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 class="title"> | |
<a href="<?php bloginfo('url'); ?>"> | |
<?php bloginfo('name') ?> | |
</a> | |
</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="description" content="<?php bloginfo('description'); ?>">"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Theme Name: Mein erstes WordPress-Theme | |
* Theme URI: http://www.pixelbar.be | |
* Description: Das Theme der Bäckerei Brigmann | |
* Version: 1.0.0 | |
* Author: Pixelbar | |
* Author URI: http://www.pixelbar.be | |
* Tags: theme-options | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$args = array( | |
'width' => 1026, | |
'height' => 400, | |
'default-image' => get_stylesheet_directory_uri() . '/img/header.jpg', | |
); | |
add_theme_support( 'custom-header', $args ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img class="header-image" src="<?php header_image(); ?>" alt="Kopfbild" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment