Danke das wars.
Beiträge von Dominik_
-
-
HTML
Alles anzeigen/* Left sidebar */ #sidebar { width: 250px; padding: 0 0 10px 0; margin: 0; } #sidebar ul { margin: 0; padding: 0; } #sidebar li { list-style: none; } #sidebar h2.pages { color: #fff; background-image: url(images/bg_corner_topright.gif); background-position: top right; background-repeat: no-repeat; margin: 0 0 10px 0; padding: 5px 0 5px 20px; } #sidebar li h2 { background-image: none; color: #fff; font-size: 1.2em; margin: 10px 0 5px 0; padding: 5px 0 5px 20px; } #sidebar a { font-size: 1.1em; color: #467AA7; font-weight: bold; text-decoration: none; } #sidebar li li { padding: 0; margin: 0 0 0 20px; } #sidebar li li a { background: url(images/bg_bullet_full_1.gif) left no-repeat; padding-left: 10px; line-height: 20px; } #sidebar li li a:hover { background: url(images/bg_bullet_full_2.gif) no-repeat left; color: #2a5a8a; text-decoration: underline; } #sidebar li li li { padding: 0; margin: 0 0 0 10px; } #sidebar li li li a { background: url(images/bg_bullet_half_1.gif) left no-repeat; padding-left: 10px; line-height: 20px; } #sidebar li li li a:hover { background: url(images/bg_bullet_half_2.gif) left no-repeat; color: #2a5a8a; text-decoration: underline; } #sidebar li.recentcomments { padding: 2px 0 2px 0; margin: 0 10px 0 10px; font-size: 1em; border-bottom: 1px solid #BEBEBE; } #sidebar li.recentcomments a { font-size: 1em; background-image: none; } #sidebar li#recentposts ul li.recentposts a { padding: 0; margin: 0; background-image: none; font-size: 0.95em; } #sidebar li#recentposts ul li.recentposts { border-bottom: 1px solid #BEBEBE; margin: 0 10px 0 10px; padding: 2px 0 2px 0; } #sidebar div.textwidget { padding: 2px 10px 2px 10px; margin: 0; } #sidebar div.textwidget p { font-size: 1em; padding: 0; margin: 0; } #sidebar div#calendar_wrap { text-align: center; margin: 0; padding: 0 0 0 15px; } #sidebar #wp-calendar { text-align: center; } #sidebar #wp-calendar a { text-decoration: none; } #sidebar td { font-size: 0.9em; border: 1px solid #BEBEBE; padding: 3px; background-color: #ffffff; } #sidebar td.pad { border: none; background: transparent; } #sidebar td#prev, #sidebar td#next { border: none; background: transparent; } #sidebar #today { background-color: #000000; } /* Right sidebar */ #right-sidebar { float: right; width: 200px; margin: 0; padding: 0; } #right-sidebar ul { list-style: none; width: 186px; margin: 0 0 10px 0; padding: 0 0 5px 0; overflow: hidden; } #right-sidebar ul ul { margin: 0; padding: 0; } #right-sidebar span { background: url(images/bg_corner_topleft.gif) top left no-repeat; padding: 5px 5px 5px 10px; } #right-sidebar h2 { background-image: url(images/bg_corner_topright.gif); background-position: top right; background-repeat: no-repeat; padding: 5px 0 5px 0; margin: 0 0 7px 0; font-size: 1.2em; color: #fff; } /* Change spacing below right hand menus */ #right-sidebar li { margin: 0 0 15px 0; padding: 0 0 15px 0; } #right-sidebar li li { background-image: none; margin: 0; padding: 0 0 0 10px; border-bottom: none; } #right-sidebar li li li { margin: 0; padding: 0 10px 0 10px; border-bottom: none; } #right-sidebar a { line-height: 16px; text-decoration: none; } #right-sidebar li li a { background: url(images/bg_bullet_full_2.gif) left no-repeat; padding-left: 12px; } #right-sidebar li li li a { background: url(images/bg_bullet_half_2.gif) left no-repeat; padding-left: 12px; } #right-sidebar a:hover { text-decoration: underline; } #right-sidebar li.recentcomments { padding: 2px 10px 5px 0; margin: 0 10px 0 10px; border-bottom: 1px solid #89AAD6; } #right-sidebar li.recentcomments a { background-image: none; } #right-sidebar li.recentposts { padding: 2px 0 5px 0; margin: 0 10px 0 10px; border-bottom: 1px solid #89AAD6; } #right-sidebar li.recentposts a { margin: 0; padding: 0; background-image: none; } #right-sidebar div.textwidget { padding: 2px 10px 2px 10px; } #right-sidebar div.textwidget p { font-size: 1em; padding: 0; margin: 0; } #right-sidebar div#calendar_wrap { text-align: center; margin: 0; padding: 5px 5px 0 7px; } #right-sidebar #wp-calendar { text-align: center; } #right-sidebar #wp-calendar a { text-decoration: none; } #right-sidebar td { font-size: 0.9em; border: 1px solid #ffffff; padding: 3px; background-color: #101533; } #right-sidebar td.pad { border: none; background: transparent; } #right-sidebar td#prev, td#next { border: none; background: transparent; } #right-sidebar #today { background-color: #000000; } /* Footer */ #footer { clear: both; background: url(images/bg_foot.jpg) no-repeat top left; height: 50px; text-align: center; } #footer p { padding: 10px 0 2px 0; color: #000000; font-size: 0.9em; } #footer a { text-decoration: underline; color: #000000; } #footer a:hover { text-decoration: none; color: #000; } /* Comment form */ h3#respond, h3#comments { font-size: 1.2em; margin; 0; padding: 0; } #commentwrap { background-color: #101533; border: 1px solid #101533; padding: 0 10px 10px 10px; margin: 0 15px 10px 15px; } #commentform { margin: 0; padding: 10px; border: 1px solid #ffffff; } #author { border: 1px solid #ffffff; height: 17px; width: 190px; } #email { border: 1px solid #ffffff; height: 17px; width: 190px; } #url { border: 1px solid #ffffff; height: 17px; width: 190px; } #comment { width: 405px; border: 1px solid #ffffff; } #submit { background-color: #101533; border: 1px solid #ffffff; color: #ffffff; padding:0; font-size: 1em; height: 30px; width: 405px; text-align: center; cursor: pointer; } #submit:hover { background-color: #101533; color: #ffffff; border: 1px solid #ffffff; } /* Comments display */ #content ol.commentlist { padding: 0 0px 0 0px; margin: 0 15px 10px 30px; } #content ol.commentlist li { background: #ffff99 url(images/bg_corner_topright.gif) no-repeat top right; margin: 5px 0 5px 0; padding: 10px; } #content ol.commentlist li.alt { background: #101533 url(images/bg_corner_topright.gif) top right no-repeat; } /* Images */ img.left { float: left; margin: 5px 5px 0 0; padding: 5px; border: 1px solid #E6E6E6; } img.right { float: right; margin: 5px 0 0 5px; padding: 5px; border: 1px solid #E6E6E6; } .entry img.wp-smiley { border: none; margin: 0; padding: 0; } .entry img { margin: 5px; padding: 5px; border: 1px solid #E6E6E6; } .entry a img { border: 1px solid #E6E6E6; } .entry a:hover img { border: 1px solid #515151; } /* Various styles */ .strong { font-weight: bold; font-size: 1.1em; -
Hi, ich möchte den weissen Rahmen von meinen Bilder in der Hintergrundfarbe meine Blogs haben, also unsichtbar.
Ich finde den Code aber nicht, weiß jemand welcher code die Rahmenfarbe ausgibt. Müsste das irgendwas mit "Border" sein, oder?
HTML
Alles anzeigen/* Various elements */ body { background-color: #cccccc; margin: 10px 0; font: 72% Verdana, Geneva, Arial, Helvetica, sans-serif; color: #ffffff; } div { margin: 0; padding: 0; } p { font-size: 1.1em; } a { color: #ffffff; font-weight: bold; } a:hover { color: #ffffff; } code { font-size: 1.1em; display: block; font-family: "Courier New", Courier, monospace; background-color: #ffffcc; padding: 5px; margin: 10px; border: 1px solid #959595; } blockquote { background: url(images/quote.gif) left no-repeat; margin: 0; padding: 0 40px 0 40px; text-align: justify; font-size: 0.9em; } /* Main wrapper */ #wrap { background: url(images/bg_main_withnav.jpg) repeat-y top left; width: 900px; margin: 0 auto; border: 1px solid #969696; } /* Masthead --- top of header */ #masthead { background: url(images/bg_head_top.jpg) no-repeat top left; height: 81px; margin: 0; padding: 0; font-family:"trebuchet ms",arial,sans-serif; } /* Site name, description and logo */ #masthead div.left-masthead { float: left; width: 820px; height: 81px; } #masthead a.site-logo { float: left; background: url(images/bg_head_top_logo.jpg); height: 40px; width: 60px; margin: 22px 5px 20px 20px; } #masthead h1 { text-transform: uppercase; padding: 19px 0 0 0; margin: 0; font-size: 2.2em; font-weight: bold; } #masthead h1 a { color: #000000; text-decoration: none; } #masthead h1 a:hover { color: #000000; } #masthead p.description { margin: -5px 0 0 0; padding: 0; font-weight: bold; color: #000000; } /* Left hand side of masthead */ #masthead div.right-masthead { float: right; margin: 0; padding: 0; } #masthead div.right-masthead a.rss-logo { background: url(images/rss.gif); height: 64px; width: 64px; margin: 9px 9px 0 0; display: block; } #masthead div.right-masthead a.rss-logo:hover { background: url(images/rss-hover.gif); } /* Middle header image and text */ #header { background: url(images/bg_head_middle.jpg) no-repeat top left; height: 150px; margin: 0; padding: 0; color: #000000; } #header #textbox { float: right; width: 900px; text-align: right; font-weight: bold; } #header a { color: #000000; text-decoration: none; } #header a:hover { color: #000000; } #header h2 { font-family:"trebuchet ms",arial,sans-serif; padding: 20px 20px 5px 10px; margin: 0; font-size: 2em; } #header p { font-family:"trebuchet ms",arial,sans-serif; margin: 0; padding: 0 20px 5px 20px; font-size: 1.3em; font-weight: bold; line-height: 18px; } /* Horizontal navigation menu */ #navigation { clear: both; background: url(images/bg_head_bottom_nav.jpg) no-repeat top left; height: 40px; } #navigation ul { margin: 0; padding: 0; } #navigation li { margin: 0px; height: 40px; float: left; list-style: none; border-right: 1px solid #ffffff; } #navigation li a { font-family:"trebuchet ms",arial,sans-serif; display: block; padding: 11px 14px 11px 14px; color: #000000; font-weight: bold; font-size: 1.105em; text-decoration: none; } #navigation li a:hover { background-color: #ffffff; color: #000000; } /* Breadcrumbs and search bar */ #crumb-search { background: url(images/bg_head_breadcrumbs.jpg) top left repeat-y; height: 40px; margin: 0; padding: 0; } /* Breadcrumbs */ #breadcrumb { float: left; padding: 0 0 0 15px; margin: 10px 0 0 0; color: #000000; font-weight: bold; font-size: 0.9em; width:700px; } #breadcrumb a { background: url(images/bg_bullet_arrow.gif) left no-repeat; padding: 0 2px 0 10px; text-decoration: none; color: #000000; } #breadcrumb a:hover { color: #000000; text-decoration: underline; } /* Search form */ #searchbar { float: right; margin: 0; padding: 0; } #searchbar fieldset { border: none; margin: 0; padding: 0; } #searchform { padding: 10px 15px 0 0; color: #000; } #searchbox { border: 1px solid #BEBEBE; height: 17px; width: 120px; } #searchbutton { background-color: #E6E6E6; border: 1px solid #BEBEBE; color: #808080; padding:0; font-size: 1em; height: 20px; width: 35px; text-align: center; cursor: pointer; } #searchbutton:hover { background-color: #dcdcdc; color: #404040; border: 1px solid #404040; } /* Container wrappers */ #container { clear: both; margin: 0; padding: 0; } #left-wrap { width: 690px; float: left; margin: 0; padding: 0; } /* Main content area */ #content { float: right; width: 480px; margin: 0; padding: 0; } #content .post, #content .page { margin: 0; padding: 0 15px 10px 15px; } #content h2 { font-size: 1.8em; font-family:"trebuchet ms",arial,sans-serif; margin: 0; padding: 0; border-bottom: 7px solid #ffffff; color: #ffffff; } #content h2 a { color: #000000; text-decoration: none; } #content h2 a:hover { color: #000000; text-decoration: none; } #content h2.pagetitle { border-bottom: none; background: #bebebe url(images/bg_corner_topright.gif) top right no-repeat; font-family:"trebuchet ms",arial,sans-serif; color: #fff; margin: 0 15px 20px 15px; padding: 3px 5px; font-size: 1.3em; } #content .entry h1 { font-size: 2em; color: #646464; } #content .entry h2 { font-size: 1.8em; color: #646464; border-bottom: none; } #content .entry h3 { font-size: 1.5em; color: #646464; } #content .entry h4 { font-size: 1.1em; color: #646464; } #content a { text-decoration: none; } #content a:hover { text-decoration: underline; } #content p { font-size: 1.1em; } #content p.prefix { margin: 0; padding: 0; font-size: 1em; } #content p.suffix { font-size: 0.9em; background: #E1E1E1 url(images/bg_corner_topright.gif) top right no-repeat; color: #000; padding: 5px; font-weight: normal; line-height: 16px; clear: both; } #content p.suffix a { color: #467AA7; text-decoration: none; } #content p.suffix a:hover { color: #2a5a8a; text-decoration: underline; } #content p.edit { margin: 0; padding: 0; font-size: 0.9em; } #content ul, #content ol { padding: 6px 0 6px 30px; margin: 0 0 0 30px; } #content li { font-size: 1.05em; padding: 2px 0 2px 0; } #content ul li { list-style: square url(images/bg_bullet_full_2.gif); } .navigation, .bottomnavigation { height: 15px; } .navigation .alignleft, .bottomnavigation .alignleft { float: left } .navigation .alignright, .bottomnavigation .alignright { float: right; } .entry { overflow: hidden; } .entry a { overflow: hidden; } .entry img { overflow: hidden; } /* Monsterous hack to get IE6 to cut off an image bigger than the post area */ * html .entry p { width: 99%; overflow: hidden; } /* Sidebars */ /* Colour of right sidbar menu header */ #right-sidebar h2 { background-color: #101533; } /* Colour of right sidebar menu body */ #right-sidebar ul ul, #right-sidebar li, #right-sidebar li li, #right-sidebar li li li { background-color: #101533; } /* Colour of left sidebar menu header */ #sidebar h2.pages, #sidebar li h2 { background-color: #101533; } } -
Ok, danke Dir. Werde ich mich mal durch den HTML-Dschungel durchkämpfen
-
ohje, das ist ganz schön kompliziert für mich, weil ich sehr wenig Ahnung von html habe und dann noch auf englisch Oo
-
Hallo,
ich hab es jedenfalls schon hinbekommen ein Dropdownfeld für die Kategorien zu zu installieren, in dem ich
in die .page(php) einfüge
Allerdings möchte ich dass das Dropdownfeld nur auf 3 Seiten von 250 erscheint, kann man das irgendwie einstellen?
Kann man eigentlich auch Seiten im Dropdownfeld anzeigen lassen oder gehen da nur Kategorien, weil ich eigentlich ausschließlich mit Seiten arbeite mit Kategorien noch nie.
-
Hallo,
wer kann mir erklären, wie ich in ein Wordpress-Theme ein Forum von phbb installiere?
Das soll dann so sein...
-
Hallo,
ich suche ein Wohnungsinserate-Plugin, dass man problemlos in Wordpress integrieren kann, es soll so aussehen wie bei
www°wg-gesucht°de/
www°wg-gesucht°de/wohnraumgesuche.html
Kann mir jemand ein gutes empfehlen?
-
Danke!
Das sind Seiten, mit "Artikel" hab ich bisher nie gearbeitet.
Ganz schön kompliziert das Ganze, habe nämlich Null-Ahnung von Html.
-
Ich möchte das so aufteilen
Domain,de/moebel/schrank/
Domain,de/moebel/Tisch/
Domain,de/moebel/Bett/allerdings hab ich bereits auch diese Konstellation auf der Webseite und will Sie hier auch beibehalten
Domain,de/tischtuch/
Domain,de/bettuch/
Domain,de/holzlack/ -
Wow hätte nicht gedacht, dass mir keiner die Frage beantworten kann. Habe es auch in ein paar anderen Foren versucht...Leider keine Antowrt :-(
-
Hi,
kann mir jemand erklären, wie ich eine zweite Unterkategorie in WOrdpress anlege?
Habe bisher nie eine zweite gebraucht aber in dem Fall wäre es ein Vorteil
-
das hab ich schon gemacht, aber dadurch verschiebt sich die sidebar lediglich weiter nach rechts, was aber auch gut ist, dass ich das entdeckt habe.
Der Text ist aber nach wie vor abgehackt. Kann ich die adsensewerbung in der sidebar nicht ein wenig nach links rücken, ohne der sidebar selbst.
-
Hallo,
ich habe in meiner linken Sidebar adsense Werbung, leider ist das Textfeld dafür zu klein oder der Text zu weit rechts, weiß jetzt nicht was es ist, jedenfalls fehlt ein Stück von der Werbung, der Text wird einfach abgehackt.
[Blockierte Grafik: http://www.pictureupload.de/originals/pictures/270909210646_Bild_13.jpg]
So sieht die CSS der Sidebar aus, was muss ich denn da ändern, bin kein html Spezialist...
Code
Alles anzeigen/* Left sidebar */ #sidebar { width: 250px; padding: 0 0 10px 0; margin: 0; } #sidebar ul { margin: 0; padding: 0; } #sidebar li { list-style: none; } #sidebar h2.pages { color: #fffff; background-image: url(images/bg_corner_topright.gif); background-position: top right; background-repeat: no-repeat; margin: 0 0 10px 0; padding: 5px 0 5px 20px; } #sidebar li h2 { background-image: none; color: #fffff; font-size: 1.2em; margin: 10px 0 5px 0; padding: 5px 0 5px 20px; } #sidebar a { font-size: 1.1em; color: #ffffff; font-weight: bold; text-decoration: underline; } #sidebar li li { padding: 0; margin: 0 0 0 20px; } #sidebar li li a { background: url(images/bg_bullet_full_1.gif) left no-repeat; padding-left: 10px; line-height: 20px; } #sidebar li li a:hover { background: url(images/bg_bullet_full_2.gif) no-repeat left; color: #ffffff; text-decoration: underline; } #sidebar li li li { padding: 0; margin: 0 0 0 10px; } #sidebar li li li a { background: url(images/bg_bullet_half_1.gif) left no-repeat; padding-left: 10px; line-height: 20px; } #sidebar li li li a:hover { background: url(images/bg_bullet_half_2.gif) left no-repeat; color: #ffffff; text-decoration: underline; } #sidebar li.recentcomments { padding: 2px 0 2px 0; margin: 0 10px 0 10px; font-size: 1em; border-bottom: 1px solid #000000; } #sidebar li.recentcomments a { font-size: 1em; background-image: none; } #sidebar li#recentposts ul li.recentposts a { padding: 0; margin: 0; background-image: none; font-size: 0.95em; } #sidebar li#recentposts ul li.recentposts { border-bottom: 1px solid #000000; margin: 0 10px 0 10px; padding: 2px 0 2px 0; } #sidebar div.textwidget { padding: 2px 10px 2px 10px; margin: 0; } #sidebar div.textwidget p { font-size: 1em; padding: 0; margin: 0; } #sidebar div#calendar_wrap { text-align: center; margin: 0; padding: 0 0 0 15px; } #sidebar #wp-calendar { text-align: center; } #sidebar #wp-calendar a { text-decoration: underline; } #sidebar td { font-size: 0.9em; border: 1px solid #000000; padding: 3px; background-color: #000000; } #sidebar td.pad { border: none; background: 000000; } #sidebar td#prev, #sidebar td#next { border: none; background: 000000; } #sidebar #today { background-color: #000000; } -
Wie meinst Du das, ohne adsense?
Also ich hab insgesamt 3 ads drin. 2mal 1600x600 in der linken Sidebar und einen 360X280 im Text über die page.php
-
PHP
Alles anzeigen<div id="sidebar"> <ul> <p style="text-align: right; "> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxx"; /* 120x600, xxxxxxxxxxxx */ google_ad_slot = "xxxxxxxxxxxx"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxxxxxxxxxxxxx"; /* 120x600, xxxxxxxxxxxx */ google_ad_slot = "xxxxxxxxxxxx"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> </li> <?php if(! is_category('friseur')) { ?> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxx"; /* 120x600, xxxxxxxxxxxx */ google_ad_slot = "xxxxxxxxxxxx"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <?php }?> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(__('Left Sidebar','wp_multiflex')) ) : else : ?> <li><h2><?php _e('Categories','wp_multiflex'); ?></h2> <ul> <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=1'); ?> </ul> </li> <li><h2><?php _e('Archives','wp_multiflex'); ?></h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <?php endif; ?> </ul> </div>PHP
Alles anzeigen<div id="sidebar"> <ul> <p style="text-align: right; "> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxx"; /* 120x600, xxxxxxxxxxxx*/ google_ad_slot = "xxxxxxxxxxxx"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxx"; /* 120x600, xxxxxxxxxxxx */ google_ad_slot = "xxxxxxxxxxxx"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> </li> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(__('Left Sidebar','wp_multiflex')) ) : else : ?> <li><h2><?php _e('Categories','wp_multiflex'); ?></h2> <ul> <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=1'); ?> </ul> </li> <li><h2><?php _e('Archives','wp_multiflex'); ?></h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <?php endif; ?> <?php if(! is_category('friseur')) { ?> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxx"; /* 120x600, xxxxxxx */ google_ad_slot = "xxxxxx"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <?php }?> </ul> </div>Mh, hat beides nicht funktioniert. Ich hab zweimal 1600-ads auf der linken sidebar.php. Direkt darunter hab ich ein leeres textwidget eingebaut, damit das "Kategorien" und "keine Beiträge" nicht zu sehen ist. Das Widget hab ich auch eben mal entfernt, aber daran lags auch nicht.
-
Ok hab das mal versucht die Ads in die Sidebar einzufügen. hat gekplatt, aber leider funktioniert das Ausblenden auf einer bestimmten Seite trotzdem nicht. Ist der Code an der falschen Stelle?
sidebar.php
PHP
Alles anzeigen<div id="sidebar"> <ul> <p style="text-align: right; "> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxx"; /* 120x600, xxxxxxxxx */ google_ad_slot = "xxxxxxxxx"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxx"; /* 120x600, xxxxxxxxxxxx */ google_ad_slot = "xxxxxxxxxxxx"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> </li> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(__('Left Sidebar','wp_multiflex')) ) : else : ?> <?php if(! is_category('friseur')) { ?> <script type="text/javascript"><!-- google_ad_client = "pub-xxxxxxxxxxxxx"; /* 120x600, xxxxxr */ google_ad_slot = "xxxxxxxxxxxxxxxxxx"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <?php }?> <li><h2><?php _e('Categories','wp_multiflex'); ?></h2> <ul> <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=1'); ?> </ul> </li> <li><h2><?php _e('Archives','wp_multiflex'); ?></h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <?php endif; ?> </ul> </div> -
Habs eben mal versucht, leider hat es nicht funktioniert. Den code habe ich in die page.php eingefügt. eine category.php gab es nicht. Die adsense werbung will ich übrigens in einem text widget (sidebar) einfügen. Vielleicht hätte ich das vorher sagen sollen.
-
super, vielen Dank!
-
Hi,
ich würde gerne alle meine Kategorien mit adsense verzieren, nur eine Kategorie soll kein adsense haben. Kann ich das irgendwie trotzdem über die .php lösen, oder muss ich in alle 100 Seiten den code einzeln eintragen und entsprechende Kategorie eben frei lassen.