http://www.webtutorialplus.com/wp-content/upl…3/04/tetris.png
so sollte das ganze aussehen
Um schreiben oder kommentieren zu können, benötigen Sie ein Benutzerkonto.
Sie haben schon ein Benutzerkonto? Melden Sie sich hier an.
Jetzt anmeldenHier können Sie ein neues Benutzerkonto erstellen.
Neues Benutzerkonto erstellenhttp://www.webtutorialplus.com/wp-content/upl…3/04/tetris.png
so sollte das ganze aussehen
Hallo zusammen,
kann mit jemand sagen, wo genau ich den Code Schnipsel
in den Header einfügen muss?
<?php
/**
* Header.php is generally used on all the pages of your site and is called somewhere near the top
* of your template files. It's a very important file that should never be deleted.
* @package Tetris WordPress Theme
* @since 1.0
* @author AJ Clarke : http://wpexplorer.com
* @copyright Copyright (c) 2012, AJ Clarke
* @link http://wpexplorer.com
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<?php wpex_hook_head_top(); ?>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php if( of_get_option('responsive') == '1') { ?>
<!-- Mobile Specific
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<?php } ?>
<!-- Title Tag
================================================== -->
<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' |'; } ?> <?php bloginfo('name'); ?></title>
<?php if( of_get_option('custom_favicon') ) { ?>
<!-- Favicon
================================================== -->
<link rel="icon" type="image/png" href="<?php echo of_get_option('custom_favicon'); ?>" />
<?php } ?>
<!-- IE dependent stylesheets
================================================== -->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/awesome_font_ie7.css" media="screen" />
<![endif]-->
<!-- Load HTML5 dependancies for IE
================================================== -->
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lte IE 7]>
<script src="js/IE8.js" type="text/javascript"></script><![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" media="all" href="css/ie6.css"/>
<![endif]-->
<!-- WP Head
================================================== -->
<?php wp_head(); // Very important WordPress core hook. If you delete this bad things WILL happen. ?>
<?php wpex_hook_head_bottom(); ?>
</head><!-- /end head -->
<!-- Begin Body
================================================== -->
<body <?php body_class(); ?>>
<div id="wrap" class="clearfix">
<div id="header-wrap">
<?php wpex_hook_header_before(); ?>
<div id="pre-header" class="clearfix">
<ul id="header-social" class="clearfix">
<?php
// Show social icons if enabled
if ( of_get_option('header_social') == '1' ) {
$wpex_social_links = wpex_get_social();
//social loop
foreach( $wpex_social_links as $wpex_social_link ) {
if( of_get_option( $wpex_social_link ) ) {
echo '<li><a href="'. of_get_option($wpex_social_link) .'" title="'. $wpex_social_link .'" target="_blank"><img src="'. get_template_directory_uri() .'/images/social/'.$wpex_social_link.'.png" alt="'. $wpex_social_link .'" /></a></li>';
} }
}
?>
</ul><!-- /header-social -->
</div><!-- /pre-header -->
<header id="header" class="clearfix">
<?php wpex_hook_header_top(); ?>
<div id="logo">
<?php
// Show custom image logo if defined in the admin
if( of_get_option('custom_logo') ) { ?>
<a href="<?php echo home_url(); ?>/" title="<?php get_bloginfo( 'name' ); ?>" rel="home"><img src="<?php echo of_get_option('custom_logo'); ?>" alt="<?php get_bloginfo( 'name' ) ?>" /></a>
<?php }
// No custom img logo - show text logo
else { ?>
<h2><a href="<?php echo home_url(); ?>/" title="<?php get_bloginfo( 'name' ); ?>" rel="home"><?php echo get_bloginfo( 'name' ); ?></a></h2>
<?php } ?>
</div><!-- /logo -->
<nav id="navigation" class="clearfix">
<?php wp_nav_menu( array(
'theme_location' => 'main_menu',
'sort_column' => 'menu_order',
'menu_class' => 'sf-menu',
'fallback_cb' => false
)); ?>
</nav><!-- /navigation -->
<?php wpex_hook_header_bottom(); ?>
</header><!-- /header -->
<?php wpex_hook_header_after(); ?>
</div><!-- /header-wrap -->
<?php wpex_hook_content_before(); ?>
<div id="main-content" class="clearfix">
<?php wpex_hook_content_top(); ?>
<?php
// Show slider and tagline on the homepage only
if( is_front_page() ) :
// Display subtitle if defined in the options panel
if ( of_get_option('home_subtitle') !== '' ) {
// Display subtitle as long as it's not a paginated page
if ( !is_paged() ) {
?>
<h2 id="homepage-title"><span><?php echo of_get_option('home_subtitle', 'The Blog Of AJ Clarke'); ?></span></h2>
<?php } } ?>
<?php
// Run code on non-paginated pages
if ( !is_paged() ) {
// Check if the soliloquy slider plugin is activated
if ( function_exists( 'soliloquy_slider' ) ) {
// Display soliloqury slider
if ( of_get_option('home_slider') !== 'Select' ) { ?>
<div id="home-slider"><?php soliloquy_slider( of_get_option('home_slider') ) ?></div>
<?php }
}
}
// End is_front_page check
endif; ?>
Alles anzeigen
ich komme einfach nicht drauf. Das ganze sollte zwischen Menu und den Beiträgen erscheinen.
Danke schonmal