Nachdem mir hier schon einmal hilfreich geholfen wurde und wir in unseren Ansätzen nicht weiterkommen, frage ich doch einfach mal wieder nach. Ich habe schon die Anleitung dafür gefunden, wie man das bei dem Kubrick Theme macht, komme aber bei meinem Theme damit nicht weiter. Es werden mir jedesmal Syntax Fehler angezeigt. Es liegt sicher ein Denkfehler vor.
Ich verwende das veryplaintx-Theme, aber habe es auf zwei Sidebars umgeändert. Aber sofern mir mit einer Sidebar geholfen wird, kriege ich die andere sicher selber hin.
Ich möchte die Navigationsleiste die oben immer kommt, sofern man nicht auf der Startseite ist, weghaben. Ein Bild kann man sich von der Menüleiste davon ansehen.
Auch möchte ich auf dein Seiten, wo einzelne Artikel angezeigt werden, ebenso auf den einzelnen Seiten der "Pages" eben die Sidebar darstellen.
Falls benötigt sind hier nun nachfolgend die ganzen PHP-Auszüge. Falls noch etwas fehlt einfach Bescheid geben.
Single PHP:
<div style="margin: 0px; width: 100%; height: 100px; overflow-x: hidden; overflow-y: auto; scrollbar-face-color: #CE7E00; scrollbar-shadow-color: #FFFFFF;
scrollbar-highlight-color: #6F4709; scrollbar-3dlight-color:#000000; scrollbar-darkshadow-color: #6F4709;
scrollbar-track-color: #FFE8C1; scrollbar-arrow-color: #6F4709;"><?php get_header(); ?>
<div id="container">
<div id="content" class="hfeed">
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php veryplaintxt_post_class(); ?>">
<h2 class="entry-title"><?php the_title(); ?></h2>
<div class="entry-content">
<?php the_content('<span class="more-link">'.__('Read More', 'veryplaintxt').'</span>'); ?>
<?php link_pages('<div class="page-link">'.__('Pages: ', 'veryplaintxt'), "</div>\n", 'number'); ?>
</div>
<div class="entry-meta">
<?php printf(__('This was written by %1$s. Posted on <abbr class="published" title="%2$s">%3$s at %4$s</abbr>. Filed under %5$s. %6$sBookmark the <a href="%7$s" title="Permalink to %8$s" rel="bookmark">permalink</a>. Follow comments here with the <a href="%9$s" title="Comments RSS to %8$s" rel="alternate" type="application/rss+xml">RSS feed</a>.', 'sandbox'),
'<span class="vcard"><span class="fn n">' . $authordata->display_name . '</span></span>',
get_the_time('Y-m-d\TH:i:sO'),
the_date('l, F j, Y,', '', '', false),
get_the_time(),
get_the_category_list(', '),
get_the_tag_list('Tagged ', ', ', '. '),
get_permalink(),
wp_specialchars(get_the_title(), 'double'),
comments_rss() ) ?>
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) : ?>
<?php printf(__('<a href="#respond" title="Post a comment">Post a comment</a> or leave a <a href="%s" rel="trackback" title="Trackback URL for your post">trackback</a>.', 'veryplaintxt'), get_trackback_url()) ?>
<?php elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) : ?>
<?php printf(__('Comments are closed, but you can leave a <a href="%s" rel="trackback" title="Trackback URL for your post">trackback</a>.', 'veryplaintxt'), get_trackback_url()) ?>
<?php elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) : ?>
<?php printf(__('Trackbacks are closed, but you can <a href="#respond" title="Post a comment">post a comment</a>.', 'veryplaintxt')) ?>
<?php elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) :?>
<?php _e('Both comments and trackbacks are currently closed.', 'veryplaintxt') ?>
<?php endif; ?>
<?php edit_post_link(__('Edit this entry.', 'veryplaintxt'),'',''); ?>
</div>
</div><!-- .post -->
<?php comments_template(); ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php previous_post_link(__('‹ %link', 'veryplaintxt')) ?></div>
<div class="nav-next"><?php next_post_link(__('%link ›', 'veryplaintxt')) ?></div>
</div>
</div><!-- #content .hfeed -->
</div><!-- #container -->
<?php get_sidebar() ?>
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
<?php get_footer() ?></div>
Page PHP:
<div style="margin: 0px; width: 100%; height: 100px; overflow-x: hidden; overflow-y: auto; scrollbar-face-color: #CE7E00; scrollbar-shadow-color: #FFFFFF;
scrollbar-highlight-color: #6F4709; scrollbar-3dlight-color:#000000; scrollbar-darkshadow-color: #6F4709;
scrollbar-track-color: #FFE8C1; scrollbar-arrow-color: #6F4709;"><?php get_header() ?>
<div id="container">
<div id="content" class="hfeed">
<?php the_post() ?>
<div id="post-<?php the_ID(); ?>" class="<?php veryplaintxt_post_class() ?>">
<h2 class="entry-title"><?php the_title(); ?></h2>
<div class="entry-content">
<?php the_content() ?>
<?php link_pages('<div class="page-link">'.__('Pages: ', 'veryplaintxt'), '</div>', 'number'); ?>
<?php edit_post_link(__('Edit this entry.', 'veryplaintxt'),'<p class="entry-edit">','</p>') ?>
</div>
</div><!-- .post -->
<?php if ( get_post_custom_values('comments') ) comments_template() // Add a key/value of "comments" to load comments on a page ?>
</div><!-- #content .hfeed -->
</div><!-- #container -->
<?php get_sidebar() ?>
<?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
<?php get_footer() ?></div>
Sidebar PHP:
<div style="margin: 0px; width: 100%; height: 100px; overflow-x: hidden; overflow-y: auto; scrollbar-face-color: #CE7E00; scrollbar-shadow-color: #FFFFFF;
scrollbar-highlight-color: #6F4709; scrollbar-3dlight-color:#000000; scrollbar-darkshadow-color: #6F4709;
scrollbar-track-color: #FFE8C1; scrollbar-arrow-color: #6F4709;"><?php if(function_exists(”se_get_sidebar”)){ se_get_sidebar(); }else{ ?>
<div id="primary" class="sidebar">
<ul>
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : // Begin Widgets; displays widgets or default contents below ?>
<?php if ( !is_home() || is_paged() ) { // Displays a home link everywhere except the home page ?>
<li id="home-link">
<h3><a href="<?php bloginfo('home') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?>"><?php _e('‹ Home', 'veryplaintxt') ?></a></h3>
</li>
<?php } ?>
<?php wp_list_pages('title_li=<h3>'.__('Info').'</h3>&sort_column=post_title&exclude=1357,1350') ?>
<li id="rss-links">
<h3><?php _e('RSS Feeds', 'veryplaintxt') ?></h3>
<ul>
<li><a href="<?php bloginfo('rss2_url') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?> RSS 2.0 Feed" rel="alternate" type="application/rss+xml"><img src="http://soro.bplaced.net/rss.png"></a></li>
<sub><li><a href="http://soro.bplaced.net/archives/category/english/feed"><img="http://soro.bplaced.net/07.png"> only English entries</a></li>
<li><a href="http://soro.bplaced.net/archives/category/deutsch/feed"><img="http://soro.bplaced.net/25.png"> nur deutsche Einträge</a></li></sub>
</a></li>
</ul>
</li>
<li id="rss-links">
<h3><?php _e('New?', 'veryplaintxt') ?></h3>
<ul>I'm on and off editing posts. I'm taking posts sometimes down after a while they've been published. I'm often exaggerating. I love to write pretty narrowminded, also I am not. I'm hiding some parts I wrote after some time. I'm questioning everything. I'm myself...
</ul>
</li>
<li id="archives">
<h3><a href="http://soro.bplaced.net/archives"><?php _e('Archives', 'veryplaintxt') ?></a></h3>
<ul>
</ul>
</li>
<?php wp_list_bookmarks('title_before=<h3>&title_after=</h3>') ?>
<?php endif; // End Widgets ?>
</ul>
</div><!-- #primary .sidebar -->
<?php } ?></div>
Alles anzeigen