Möchte unter meiner Sidebar ein festes Bild einfügen.
Habe in die Styl.css den Code eingefügt sowie das Bild in die Images gepackt. Jetzt hängt das Bild genau hinter Sidebar. Was mache ich falsch?
Anbei meine Blog
Danke Jörg
.contentLayout .sidebar1
{
position: relative;
margin: 0;
padding: 0;
border: 0;
float: left;
overflow: hidden;
width: 214px;
background: url('images/Werbefrau.jpg') repeat-y;
Bild unter die Sidebar einfügen
-
-
- Gerade eben
- Anzeige
Hallo!
Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.
- ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
- ✔️ Deutsche Server & DSGVO-konform
- ✔️ Persönlicher Support (kein 0815-Ticket-System)
-
-
den Code habe ich jetzt eingefügt,
<img src="wp-content/themes/AT/images/Werbefrau.jpg" /> Leider kein BildHabe ich was vergessen? in der style.css habe ich nix verändert
Jörg
-
wo ist der den eingefügt? im quelltext deiner seite find ich das nicht.
-
ich habe den code in sidebar1.php unter meiner Theme (AT)eingefügt.
Wo finde ich den den Quelltext?Jörg
-
im browser wenn du deine seite anschaust, rechte maustaste -> quelltext anzeigen. zeig doch mal den code deiner sidebar1.php wo du das eingebaut hast.
-
im browser wenn du deine seite anschaust, rechte maustaste -> quelltext anzeigen. zeig doch mal den code deiner sidebar1.php wo du das eingebaut hast.
anbei der kompl. code in der sidebar1.php meiner Theme. Das Bild hängt in der Images der Theme.
Danke für die Hilfe. Seit einer Woche versuche ich das blöde Bild einzufügen.
<div class="sidebar1">
<?php if (!art_sidebar(1)): ?>
<div class="Block">
<div class="Block-tl"></div>
<div class="Block-tr"></div>
<div class="Block-bl"></div>
<div class="Block-br"></div>
<div class="Block-tc"></div>
<div class="Block-bc"></div>
<div class="Block-cl"></div>
<div class="Block-cr"></div>
<div class="Block-cc"></div>
<div class="Block-body">
<div class="BlockHeader">
<div class="header-tag-icon">
<div class="t"><?php _e('Categories', 'kubrick'); ?></div>
</div>
</div><div class="BlockContent">
<div class="BlockContent-body">
<ul>
<?php wp_list_categories('show_count=1&title_li='); ?>
</ul>
</div>
</div></div>
</div>
<div class="Block">
<div class="Block-tl"></div>
<div class="Block-tr"></div>
<div class="Block-bl"></div>
<div class="Block-br"></div>
<div class="Block-tc"></div>
<div class="Block-bc"></div>
<div class="Block-cl"></div>
<div class="Block-cr"></div>
<div class="Block-cc"></div>
<div class="Block-body">
<div class="BlockHeader">
<div class="header-tag-icon">
<div class="t"><?php _e('Archives', 'kubrick'); ?></div>
</div>
</div><div class="BlockContent">
<div class="BlockContent-body">
<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p><?php printf(__('You are currently browsing the archives for the %s category.', 'kubrick'), single_cat_title('', false)); ?></p><?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the day %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p><?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p><?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives for the year %3$s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time('Y')); ?></p><?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p><?php printf(__('You have searched the <a href="%1$s/">%2$s</a> blog archives for <strong>‘%3$s’</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), wp_specialchars(get_search_query(), true)); ?></p><?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p><?php printf(__('You are currently browsing the <a href="%1$s/">%2$s</a> blog archives.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name')); ?></p><?php } ?>
<?php }?>
<ul>
<?php wp_get_archives('type=monthly&title_li='); ?>
</ul>
</div>
</div></div>
</div>
<div class="Block">
<div class="Block-tl"></div>
<div class="Block-tr"></div>
<div class="Block-bl"></div>
<div class="Block-br"></div>
<div class="Block-tc"></div>
<div class="Block-bc"></div>
<div class="Block-cl"></div>
<div class="Block-cr"></div>
<div class="Block-cc"></div>
<div class="Block-body">
<div class="BlockHeader">
<div class="header-tag-icon">
<div class="t"><?php _e('Links:', 'kubrick'); ?></div>
</div>
</div><div class="BlockContent">
<div class="BlockContent-body">
<ul>
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
</ul>
</div>
</div>
</div></div>
<img src="wp-content/themes/AT/images/Werbefrau.jpg" />
<?php endif ?>
</div>
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!