Hi mpl, schau Dir mal dieses Plugin an, ich glaube das löst dein Problem:
http://wordpress.org/plugins/enable-media-replace/
vielen herzlichen Dank!!!!
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 erstellenHi mpl, schau Dir mal dieses Plugin an, ich glaube das löst dein Problem:
http://wordpress.org/plugins/enable-media-replace/
vielen herzlichen Dank!!!!
Hallo liebe WP-Gemeinde!
Ich arbeite gerade an einer Homepage für einen Bekannten und habe folgendes Problemchen.
Es geht um eine Restaurant-Site und wenn man auf der Startseite landet, sieht man einen Button mit der Aufschrift »Wochenkarte«. Klickt man nun darauf, soll eine PDF erscheinen (per Lightbox oder in einem neuen Fenster, weiß noch nicht ;) ).
Alles machbar, nur möchte ich dem User eine bequeme Möglichkeit anbieten, dies im Backend jede Woche machen zu können.
Ich hoffe ich habe meine Frage präzise genug geschildert und würde mich auf jegliche Art von Hilfestellung freuen :)
Lieben Gruß
mpl
Hier noch der Rest vom css-file
#sidebar ul, #sidebar ul ol {
margin: 0;
padding: 0;
}
#sidebar ul li {
list-style-type: none;
list-style-image: none;
margin-bottom: 15px;
}
#sidebar ul p, #sidebar ul select {
margin: 5px 0 8px;
}
#sidebar ul ul, #sidebar ul ol {
margin: 5px 0 0 10px;
}
#sidebar ul ul ul, #sidebar ul ol {
margin: 0 0 0 10px;
}
ol li, #sidebar ul ol li {
list-style: decimal outside;
}
#sidebar ul ul li, #sidebar ul ol li {
margin: 3px 0 0;
padding: 0;
}
/* End Entry Lists */
/* Begin Form Elements */
#searchform {
margin: 10px auto;
padding: 5px 3px;
text-align: center;
}
#sidebar #searchform #s {
width: 100px;
padding: 2px;
background-color: #333333;
color: #B0B0B0;
}
#sidebar #searchsubmit {
padding: 1px;
background-color: #333333;
color: #B0B0B0;
}
.entry form { /* This is mainly for password protected posts, makes them look better. */
text-align:center;
}
select {
width: 130px;
}
#commentform input {
width: 170px;
padding: 2px;
margin: 5px 5px 1px 0;
color: #B0B0B0;
background-color: #333333;
border: 1px ridge #ccc;
}
#commentform textarea {
width: 100%;
padding: 2px;
background-color: #333333;
border: 1px ridge #ccc;
color: #B0B0B0;
}
#commentform #submit {
margin: 0;
float: right;
border: 1px ridge #ccc;
}
input {
padding: 2px;
margin: 5px 5px 1px 0;
color: #B0B0B0;
background-color: #333333;
border: 1px ridge #ccc; }
/* End Form Elements */
/* Begin Comments*/
.alt {
margin: 0px;
padding: 0px;
}
.commentlist ol {
padding: 0px;
text-align: left;
}
.commentlist li {
margin-left: -40px;
padding: 10px;
list-style: none;
}
.commentlist p {
margin: 10px 5px;
}
#commentform p {
margin: 5px;
}
.nocomments {
text-align: center;
margin: 0;
padding: 0;
}
.commentmetadata {
margin: 0;
display: block;
}
/* End Comments */
/* Begin Sidebar */
#sidebar
{
padding: 32px 0 10px 0;
margin-left: 545px;
width: 190px;
}
#sidebar form {
margin: 0;
}
/* End Sidebar */
/* Begin Calendar */
#wp-calendar {
empty-cells: show;
margin: 10px auto 0;
width: 155px;
}
#wp-calendar #next a {
padding-right: 10px;
text-align: right;
}
#wp-calendar #prev a {
padding-left: 10px;
text-align: left;
}
#wp-calendar a {
display: block;
}
#wp-calendar caption {
text-align: center;
width: 100%;
}
#wp-calendar td {
padding: 3px 0;
text-align: center;
}
#wp-calendar td.pad:hover { /* Doesn't work in IE */
background-color: #000;
}
/* End Calendar */
/* Begin Various Tags & Classes */
acronym, abbr, span.caps {
cursor: help;
}
acronym, abbr {
border-bottom: 1px dashed #999;
}
blockquote {
margin: 15px 30px 0 10px;
padding-left: 20px;
border-left: 1px solid #333;
}
blockquote cite {
margin: 5px 0 0;
display: block;
}
hr {
display: none;
}
.center {
text-align: center;
}
a img {
border: none;
}
.navigation {
display: block;
text-align: center;
margin-top: 10px;
margin-bottom: 60px;
}
.aligncenter, div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
text-align: left;
float: left;
}
.alignright {
text-align: right;
float: right;
}
.entry img, .entrytext img {
margin: 7px;
}
.gravatar img {
float:right;
margin-top:-15px;
}
.wp-caption {
border: 1px solid #ddd;
text-align: center;
background-color: #f3f3f3;
padding-top: 4px;
margin: 10px;
}
.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}
.wp-caption p.wp-caption-text {
font-size: 11px;
line-height: 17px;
padding: 0 4px 5px;
margin: 0;
}
#fb_but {
position:absolute;
width:27px;
height:30px;
z-index:1;
top: 13px;
left: 10px;
}
#ms_but {
position:absolute;
width:30px;
height:29px;
z-index:2;
left: 40px;
top: 13px;
}
#vi_but {
position:absolute;
width:30px;
height:30px;
z-index:3;
left: 70px;
top: 13px;
}
#yt_but {
position:absolute;
width:30px;
height:30px;
z-index:4;
left: 100px;
top: 13px;
}
#social {
position:relative;
width:138px;
height:49px;
z-index:5;
left: 650px;
top: 20px;
}
#header {
position:relative;
width:200px;
height:191px;
left: -30px;
top:-40px;
}
#nav_bar {
position:relative;
width:325px;
height:40px;
left:420px;
top:-220px;
z-index:1;
}
#home_btn {
position:absolute;
width:73px;
height:38px;
z-index:1;
}
#team_btn {
position:absolute;
width:71px;
height:35px;
z-index:2;
top: 1px;
left: 84px;
}
#media_btn {
position:absolute;
width:78px;
height:36px;
z-index:3;
left: 166px;
top: 1px;
}
#shop_btn {
position:absolute;
width:66px;
height:35px;
z-index:4;
left: 255px;
top: 1px;
}
.history {
margin:-10px;
}
.n_clip_pic {
margin:-10px;
}
.n_add {
margin:-10px;
}
#header h1 {
visibility:hidden;
}
.Links {
margin:-10px;
}
.Kontakt {
margin:-10px;
}
.Impressum {
margin:-10px;
}
#main_bg {
position: relative;
top: -1200px;
left: -200px;
z-index:2;
}
/* End Various Tags & Classes*/
Alles anzeigen
Hey,
also ich habe bis jetzt alles ganz weit geschafft, konnte auch das Template so ziemlich weiträumig umbasteln! Nur jetzt habe ich ein kleines Problemchen:
Ich habe ein Bild, was ich als Hintergrund setzen möchte. Nicht per Background-Image, sondern per DIV-Layer und z-index, da ich das flexibler finde.
Jetzt habe ich per div und img src in der index.php dieses Bild eingepflegt. Im stylesheet die Position bestimmt und auch z-index:2; eingegeben. Für #content (das ist das DIV-Layer, welches in der Index ist, also wahrscheinlich den ganzen Inhalt anspricht) habe ich z-index:2; vergeben und wenn ich nun die Seite aktualisiere, dann ist zwar das Bild da, jedoch über den Inhalt :/
Hier nochmal die index.php
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php require('post.php'); ?>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
<div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
<div id="main_bg"><img src="http://s7.directupload.net/images/110808/vus9vcuw.png"></div>
Alles anzeigen
Und hier das Stylesheet:
/*
Theme Name: Black-LetterHead
Theme URI: http://ulyssesonline.com
Description: Black Letterhead is a 2-column minimalistic theme with a black background.
Author: Ulysses Ronquillo
Author URI: http://ulyssesonline.com
Version: 1.5
Tags: two columns, fixed width, black, orange, widgets, minimalist, right sidebar, dark, graphics free,
The CSS, XHTML and design is released under GPL:
http://www.opensource.org/licenses/gpl-license.php
*/
/* Begin Typography & Colors */
body {
font-size: 62.5%; /* Resets 1em to 10px */
font-family: Helvetica;
background-color: #000;
background-image: url(http://s1.directupload.net/images/110802/6nczgz69.jpg);
color: #B0B0B0;
text-align: center;
}
#page {
text-align: center;
}
#header {
background-color: #000;
}
#content {
font-size: 1.2em;
z-index: 1;
}
.widecolumn .entry p {
font-size: 1.05em;
}
.narrowcolumn .entry, .widecolumn .entry {
line-height: 1.4em;
}
.widecolumn {
line-height: 1.4em;
}
.narrowcolumn .postmetadata {
text-align: left;
}
.alt {
background-color: #000;
border-top: 1px solid #000;
border-bottom: 1px solid #000;
}
small {
font-family: Helvetica;
font-size: 0.9em;
line-height: 1.5em;
}
strong {
color: #E4D3A6;
}
h1 {
font-family: Helvectica;
font-weight: bold;
}
h2, h3 {
font-family: Helvetica;
}
h1 {
font-size: 3.4em;
text-align: center;
text-transform: uppercase;
letter-spacing: 12px;
}
.description {
font-size: 1.2em;
text-align: center;
letter-spacing: .6em;
}
h2 {
font-size: 1.7em;
}
h2.pagetitle {
font-size: 1.7em;
}
#sidebar {
border-top: 1px solid #000;
border-bottom: 1px solid #000;
}
#sidebar h2 {
font-family: Helvectica;
font-size: 1.2em;
}
h3 {
font-size: 1.4em;
}
h1, h1 a, h1 a:hover, h1 a:visited, .description {
text-decoration: none;
color: #FD5A1E;
}
h2, h2 a, h2 a:visited, h3, h3 a, h3 a:visited {
color: #E4D3A6;
}
h2, h2 a, h2 a:hover, h2 a:visited, h3, h3 a, h3 a:hover, h3 a:visited, #sidebar h2, #wp-calendar caption, cite {
text-decoration: none;
}
.entry p a:visited {
color: #FD5A1E;
}
.commentlist li, #commentform input, #commentform textarea {
font: 0.9em helvectica;
}
.commentlist li {
font-weight: bold;
}
.commentlist cite, .commentlist cite a {
font-weight: bold;
font-style: normal;
font-size: 1.1em;
}
.commentlist p {
font-weight: normal;
line-height: 1.5em;
text-transform: none;
}
#commentform p {
font-family: Helvectica;
}
.commentmetadata {
font-weight: normal;
}
#sidebar {
font: 1em Helvetica;
}
small, #sidebar ul ul li, #sidebar ul ol li, .nocomments, .postmetadata, blockquote, strike {
color: #666;
}
code {
font: 1.1em 'Courier New', Courier, Fixed;
}
acronym, abbr, span.caps
{
font-size: 0.9em;
letter-spacing: .07em;
}
a, h2 a:hover, h3 a:hover {
color: #FD5A1E;
text-decoration: none;
}
a:hover {
color: #707070;
text-decoration: underline;
}
#wp-calendar #prev a {
font-size: 9pt;
}
#wp-calendar a {
text-decoration: none;
}
#wp-calendar caption {
font: bold 1.3em Helvetica;
text-align: center;
}
#wp-calendar th {
font-style: normal;
text-transform: capitalize;
}
/* End Typography & Colors */
/* Begin Structure */
body {
margin: 0;
padding: 0 0 20px 0;
}
#page {
margin: 30px auto;
padding: 0;
width: 800px;
}
#header {
left:80px;
}
.narrowcolumn {
float: left;
padding: 0 0 20px 45px;
margin: 0px 0 0;
width: 450px;
}
.widecolumn {
padding: 10px 0 20px 0;
margin: 5px 0 0 150px;
width: 450px;
}
.pagepost {
margin: 0 0 40px;
border-top: 1px solid #000;
}
.post {
margin: 0 0 40px;
text-align: left;
border-top: 1px solid #000;
}
.widecolumn .post {
margin: 0;
}
.narrowcolumn .postmetadata {
padding-top: 5px;
}
.widecolumn .postmetadata {
margin: 30px 0;
}
#footer {
padding: 50px 0 0 0;
margin: 0 auto;
width: 760px;
clear: both;
}
#footer p {
margin: 0;
padding: 20px;
text-align: center;
}
/* End Structure */
/* Begin Headers */
h1 {
padding-top: 40px;
margin: 0;
}
.description {
text-align: center;
}
h2 {
margin: 30px 0 0;
}
h2.pagetitle {
margin: 0px;
padding: 30px 0 0 0;
border-top: 1px dashed #555;
}
#sidebar h2 {
margin: 5px 0 0;
padding: 0;
}
h3 {
padding: 0;
margin: 30px 0 0;
}
h3.comments {
padding: 0;
margin: 40px auto 20px ;
}
/* End Headers */
/* Begin Lists
Special stylized non-IE bullets
Do not work in Internet Explorer, which merely default to normal bullets. */
html>body .entry ul, .entrytext ul, .pagepost ul {
margin-left: 0px;
padding: 0 0 0 30px;
list-style: none;
padding-left: 10px;
text-indent: -10px;
}
html>body .entry li, .entrytext li, .pagepost li {
margin: 5px 0 5px 10px;
}
.entry ul li:before, .entrytext ul li:before, #sidebar ul ul li:before, .pagepost ul li:before {
content: "\00BB \0020";
}
.entry ol {
padding: 0 0 0 35px;
margin: 0;
}
.entry ol li {
margin: 0;
padding: 0;
}
.postmetadata ul, .postmetadata li {
display: inline;
list-style-type: none;
list-style-image: none;
}
Alles anzeigen
http://s1.directupload.net/images/110808/676ahf7r.png Und hier die Liste der .php-Dateien!
Ich bitte um Hilfe :)
Danke
-Moe
Hallo,
ich bin so weit sehr zufrieden mit meinem Blog (<klick), nur würde ich gerne direkt auf der Startseite ebenfalls eine Sidebar anfügen, so wie sie anzusehen ist, wenn man einen Post oder eine kategorie (klick) geklickt hat. Was muss ich da im Code einfügen? Würde mich auf eine Hilfe sehr freuen!
Danke
-mpl
Hi,
ich hatte dasselbe Problem.
Nachdem ich meine .htaccess erstellt und hochgeladen habe bekam ich eine andere Fehlermeldung:
ZitatInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webadmin@kundenserver.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Was mache ich denn nun?
Bitte um schnelle Hilfe!
EDIT: An alle Mac-User:
Benutzt nicht den normalen TextEdit von MacOS sondern Plain Text Editor!! Es macht anscheinend was aus, wenn die htaccess datei vorher ne .rtf endung hatte anstatt eine .txt!!