Beiträge von Florian13

    Hier mal meine header.php

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo('charset') ?>" />
    <title><?php wp_title('|', true, 'right'); bloginfo('name'); ?></title>
    <!-- Created by Artisteer v4.0.0.58475 -->
    <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width">
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->


    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>" media="screen" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php
    remove_action('wp_head', 'wp_generator');
    if (is_singular() && get_option('thread_comments')) {
    wp_enqueue_script('comment-reply');
    }
    wp_head();
    ?>
    </head>
    <body <?php body_class(); ?>>
    <div id="art-main">
    <div class="art-sheet clearfix">


    <?php if(theme_has_layout_part("header")) : ?>
    <header class="clearfix art-header<?php echo (theme_get_option('theme_header_clickable') ? ' clickable' : ''); ?>"><?php get_sidebar('header'); ?>


    <div class="art-shapes">


    </div>
    <div class="art-textblock art-object227400126" data-left="95.95%">
    <?php get_search_form() ?>
    </div>


    </header>
    <?php endif; ?>


    <nav class="art-nav clearfix">
    <?php
    echo theme_get_menu(array(
    'source' => theme_get_option('theme_menu_source'),
    'depth' => theme_get_option('theme_menu_depth'),
    'menu' => 'primary-menu',
    'class' => 'art-hmenu'
    )
    );
    ?>
    </nav>
    <div class="art-layout-wrapper clearfix">
    <div class="art-content-layout">
    <div class="art-content-layout-row">
    <?php get_sidebar(); ?>
    <div class="art-layout-cell art-content clearfix">

    Wie muss der div aussehen für diesen Code, um das ganze über dem header darzustellen?

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Over_Header -->
    <ins class="adsbygoogle"
    style="display:inline-block;width:728px;height:90px"
    data-ad-client="ca-pub-6815794764476542"
    data-ad-slot="1404522116"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    Dabke und Link

    Hallo, vielen Dank für die Hilfe. Ich habe jetzt mal meine ersten Schritte unternommen und ein wenig gebastelt. Zumindest auf meinem Laptop sieht es ganz gut aus. Problematisch wird es, denke ich, wenn größerer Monitore ins Spiel kommen. Wie kann es denn gewährleisten, dass die Werbung immer in der Nähe des Content stehen bleibt und nicht ganz nach links abwandert?

    http://www.alles-feuerwehr.com

    Hier die header.php (rot=von mir eingefügt, um werbung zu positionieren):

    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section and everything up till <div id="main">
    *
    * @file header.php
    * @package max-magazine
    * @author Sami Ch.
    * Link http://gazpo.com
    */
    ?>
    <!DOCTYPE html>
    <!--[if lt IE 7 ]> <html class="no-js ie6" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 7 ]> <html class="no-js ie7" <?php language_attributes(); ?>> <![endif]-->
    <!--[if IE 8 ]> <html class="no-js ie8" <?php language_attributes(); ?>> <![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>

    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php
    if ( is_singular() && get_option( 'thread_comments' ) )
    wp_enqueue_script( 'comment-reply' );

    wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    <div id="container" class="hfeed">
    <div id="header">
    <?php
    /**
    * Check if the logo image is set in theme options.
    */
    ?>
    <div class="header-wrap">
    <div class="logo">
    <?php if (max_magazine_get_option( 'logo_url' )) { ?>
    <h1>
    <a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>">
    <img src="<?php echo max_magazine_get_option( 'logo_url' ); ?>" alt="<?php bloginfo( 'name' ); ?>" />
    </a>
    </h1>
    <?php } else {?>
    <h1 class="site-title">
    <a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>">
    <?php bloginfo('name'); ?>
    </a>
    </h1>
    <h3>
    <?php bloginfo('description'); ?>
    </h3>
    <?php } ?>
    </div> <!-- /logo -->

    <?php if (max_magazine_get_option( 'ad468' )) {?>
    <div class="ad468">
    <?php echo max_magazine_get_option( 'ad468' ); ?>
    </div>
    <?php } ?>
    [COLOR=#ff0000]<div style="position:fixed; left:1px; top:1px; width: 600px; height: 160px;">
    <!-- BEGIN PARTNER PROGRAM - DO NOT CHANGE THE PARAMETERS OF THE HYPERLINK -->
    <a href="[/COLOR][COLOR=#ff0000]http://www1.belboon.de/adtracking/0353c508e59403846b004a0d.html[/COLOR][COLOR=#ff0000]" target="_blank"><img src="[/COLOR][COLOR=#ff0000]http://www1.belboon.de/adtracking/0353c508e59403846b004a0d.img[/COLOR][COLOR=#ff0000]" border="0" width="160" height="600" alt="Star Wars: The Old Republic" /></a><!-- END PARTNER PROGRAM -->
    </div>
    [/COLOR]
    </div><!-- /wrap -->

    <div id="nav">
    <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => 'max_magazine_menu_fallback',) ); ?>
    </div>

    <div class="clear"></div>

    </div> <!-- /header -->
    <div id="content-container">

    Ich nutze das Theme Max Magazine. Es ist zweispaltig. Ich möchte aber außerhalb des Content, nach Möglichkeit auf der linken ungenutzten Fläche, ein Banner einfügen (s. Screenshot), um damit Werbung einzublenden. Weiß jemand eine einfache css/html-Lösung? Vielen Dank!


    Hier die sidebar.php:

    <?php
    /**
    * The Sidebar containing the main widget area.
    *
    * @file sidebar.php
    * @package max-magazine
    * @author Sami Ch.
    * Link http://gazpo.com
    */
    ?>
    <div id="sidebar">

    <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>

    <div class="widget widget_text">
    <h3><?php _e( 'Max Responsive Wordpress Theme', 'max-magazine' ); ?></h3>
    <div class="textwidget"><?php _e( 'Thank you for using this free theme. If you have questions, please feel free contact.', 'max-magazine' ); ?></div>
    </div>

    <div class="widget widget_search">
    <form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    <div>
    <input class="searchfield" type="text" value="<?php _e('Search', 'max-magazine');?>" name="s" id="s" onfocus="if (this.value == 'Search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search';}" />
    </div>
    </form>
    </div>

    <?php the_widget('WP_Widget_Recent_Posts', 'number=5', 'before_title=<h3>&after_title=</h3>'); ?>

    <div class="widget">
    <h3><?php _e( 'Popular Categories', 'max-magazine' ); ?></h3>
    <ul><?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'title_li' => '', 'number' => 10 ) ); ?></ul>
    </div>

    <div class="widget widget_archive">
    <h3 class="widget-title"><?php _e( 'Archives', 'max-magazine' ); ?></h3>
    <ul>
    <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
    </ul>
    </div>

    <?php the_widget( 'WP_Widget_Tag_Cloud', array('title' => 'Popular tags', ), array('before_title' => '<h3>', 'after_title' => '</h3>')); ?>


    <?php endif; // end sidebar widget area ?>

    </div><!-- /sidebar -->

    UND DIE STYLE.CSS:

    <?php
    /**
    * The Sidebar containing the main widget area.
    *
    * @file sidebar.php
    * @package max-magazine
    * @author Sami Ch.
    * Link http://gazpo.com
    */
    ?>
    <div id="sidebar">

    <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>

    <div class="widget widget_text">
    <h3><?php _e( 'Max Responsive Wordpress Theme', 'max-magazine' ); ?></h3>
    <div class="textwidget"><?php _e( 'Thank you for using this free theme. If you have questions, please feel free contact.', 'max-magazine' ); ?></div>
    </div>

    <div class="widget widget_search">
    <form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    <div>
    <input class="searchfield" type="text" value="<?php _e('Search', 'max-magazine');?>" name="s" id="s" onfocus="if (this.value == 'Search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search';}" />
    </div>
    </form>
    </div>

    <?php the_widget('WP_Widget_Recent_Posts', 'number=5', 'before_title=<h3>&after_title=</h3>'); ?>

    <div class="widget">
    <h3><?php _e( 'Popular Categories', 'max-magazine' ); ?></h3>
    <ul><?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'title_li' => '', 'number' => 10 ) ); ?></ul>
    </div>

    <div class="widget widget_archive">
    <h3 class="widget-title"><?php _e( 'Archives', 'max-magazine' ); ?></h3>
    <ul>
    <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
    </ul>
    </div>

    <?php the_widget( 'WP_Widget_Tag_Cloud', array('title' => 'Popular tags', ), array('before_title' => '<h3>', 'after_title' => '</h3>')); ?>


    <?php endif; // end sidebar widget area ?>

    </div><!-- /sidebar -->