• 20.04.2024, 00:01
  • Registrieren
  • Anmelden
  • Sie sind nicht angemeldet.

 

Lieber Besucher, herzlich willkommen bei: Aqua Computer Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Per *.css Datei Worpress Titel verstecken?

Sonntag, 27. Februar 2011, 23:53

Hi,
ich habe schon so viel rumgesucht, auch was gefunden aber ich weiß nicht wo ich das reinschreiben soll. Hier die Stylesheet Datei und den Code der angeblich irgendwo rein soll. Wie geschrieben, ich möchte den Titel einer Worpress Seite im Header verstecken, ohne dass aber die Suchmaschine darunter "leidet".

Quellcode

1
2
#header h1 { display: none; }
#header .description { display: none; }


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
/* standard elements */
html {min-height: 100%;}

* {
	margin: 0;
	padding: 0;
}

a {color: #963;}
a:hover {color: #C60;}

body {
	background: #c6a168;
	color: #444;
	font: normal 62.5% Tahoma, sans-serif
}

p,code,ul {padding-bottom: 10px;}

li {list-style: none;}

h1 {
	font: normal 1.8em Tahoma,sans-serif;
	margin-bottom: 4px;
}
h2 {font: normal 1.6em sans-serif;}
h3 {font: bold 1.1em sans-serif;}

code {
	background: #FFF;
	border: 1px solid #EEE;
	border-left: 6px solid #C1CAD3;
	color: #666;
	display: block;
	font: normal 1em Tahoma,sans-serif;
	line-height: 1.6em;
	margin: 4px 0 12px;
	padding: 8px 10px;
	white-space: pre;
}

blockquote {
	background: url('img/quote.gif') no-repeat;
	display: block;
	font: bold 0.9em Verdana,sans-serif;
	padding-left: 26px
}

big {font-size: 1.1em;}

h1, h2, h3 {padding-top: 6px;}

label {
	display: block;
	font-size: 0.9em;
}

/* misc */
.clearer {clear: both;}
.left {float: left;}
.right {float: right;}

/* structure */
.container {
	background: #FFF;
	font-size: 1.2em;
	margin: 0 auto;
	padding: 0 10px 10px;
	width: 780px;
}

/* header */
.top {
	background: url('img/clouds.gif') repeat-x;
	padding-left:10px; padding-right:10px; padding-top:50px; padding-bottom:0
}

/* title */
.header {
	background: #FFF;
	font-size: 3.2em;
	height: 150px;
	margin: 0 auto;
	padding: 10px 10px 5px;
	width: 780px;
}
.header .left, .header .right {
	background: url('img/header_right.jpg');
	color: #FFF;
	height: 150px;	
}
.header .left {
	background: #FFF url('img/header.jpg') no-repeat;
	text-align: center;	
	width: 564px;
	font: normal 2.8em "@font-face", @font-face;
	line-height: 150px;
}
.header .right {
	overflow: auto;
	width: 212px;
}
.header .right p, .header .right h2 {padding: 0 16px;}
.header .right h2 {padding-top: 16px; font: normal 1.6em "Trebuchet MS",sans-serif;}

/* navigation */
.navigation {	
	border: 1px solid #54332a;
	border-color: #54332a #54332a;
	background:#D9E1E5 url('img/nav.gif');
	height: 41px
}
.navigation a {
	background: #D9E1E5 url('img/nav.gif');
	border-right: 1px solid #54332a;
	color: #54332a;
	display: block;
	float: left;
	text-decoration: none;
	font: bold 1em sans-serif;
	line-height: 41px;

	padding: 0 20px;
}
.navigation a:hover {background-position: left bottom; color: #dfb47f;}
.navigation ul {display: inline;}
.navigation li {float: left;}

/* main */
.main {
	border-top: 4px solid #FFF;
	background: url('img/bgmain.gif') repeat-y;
}

/* sub navigation */
.sidenav {
	float: right;
	width: 210px;
}
.sidenav h2 {
	color: #54332a;
	font: bold 1em Tahoma,sans-serif;
	line-height: 30px;
	margin: 0;
	padding-left: 12px;
}
.sidenav ul {
	padding: 0;
	border-top: 1px solid #54332a;
}
.sidenav li {border-bottom: 1px solid #54332a;}
.sidenav li a {
	font-size: 1.1em;
	color: #54332a;
	display: block;
	padding: 8px 0 8px 5%;
	text-decoration: none;
	width: 95%;
}
.sidenav li a:hover {
	background: #FFF;
	color: #dfb47f;	
}

/* content */
.content {
	float: left;
	margin: 10px 0;
	padding: 0 16px;
	width: 531px;
}
.content .descr {
	color: #664;
	font-size: 0.9em;
	margin-bottom: 6px;
}

.content ul {margin-left: 18px;}
.content ul li {list-style: url('img/li.gif');}
.content ol li {list-style: decimal;}

.content p {font-family: "Lucida Sans Unicode",sans-serif;}

/* footer */
.footer {
	background: url('img/bgfooter.gif') repeat-x;
	color: #FFF;
	font: bold 1em sans-serif;
	padding: 0 16px;
	line-height: 39px;
	height: 39px;
}
.footer .right {color: #DEF;}
.footer .right a {color: #DEF; text-decoration: none;}
.footer a, .footer a:hover,.footer .right a:hover {color: #FFF;}

/* posts */
.post h1 a {text-decoration:none;}
.post h1 a:hover {text-decoration:underline;}

.post {margin: 6px 0 2px;}
.post .info{
	padding: 5px 10px;
	border: 1px solid #E3E4E4;
	background:#F5F5F5;
	color: #555;
	margin: 2px 0 4px;
}
.post img {border: 4px solid #DDD; margin: 4px 0;}
.post a img {border: 4px solid #DDD;}
.post a:hover img {border-color: #CCC;}

.info a {text-decoration: none;}
.info a:hover {text-decoration: underline;}

/* comments */
.content ol li {list-style: none; background: none;}

#commentlist li {
	margin-bottom: 1.5em;
	padding-bottom: 1em;
	border-bottom: 1px solid #700000;
	list-style: none;
}
#commentform {
	margin: 1em 0;
	background: #FAFAFA;
	width: 280px;
}
.commentmetadata {padding: 2px 0 4px;}
.commentmetadata a {color: #664;}

textarea.styled {width: 280px;}

.styled {
	font-size: 1.1em;
	background: #F8F7F6;
	border: 1px solid #D6D3D3;
}
.styled:hover {
	background: #FFF;
	border: 1px solid #D6D3D3;
}
.styled:focus {
	background: #FFF;
	border: 1px solid #939793;
}
#commentform input {margin-bottom: 3px;}

a img {border:none;}

/* calendar */
#wp-calendar {color:#A0A0A0;}

.sidenav table caption {border-bottom-color:#000;}

.sidenav table thead tr {
  border-bottom-color:#000;
  color:#f9f9f9;
}

.sidenav table th {border-bottom-color:#000;}

.sidenav table td#today {
  border-color:#000;
  color:#f5f5f5;
}

.sidenav table td a {
  border-bottom-color:#000;
  background-color:#fafafa;
}

.sidenav table tfoot {border-top-color:#000;}

.sidenav table tfoot a {background:none;}

/* calendar
--------------------------------------------------*/
#wp-calendar {
  display:inline-table;
  border-collapse:collapse;
  width:185px;
  margin:0px 10px 0 10px;
  text-align:center;
}

.sidenav table caption {
  margin: -5px 10px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid;
  letter-spacing: 0.1em;
}

.sidenav table thead tr {border-bottom:1px solid;}

.sidenav table th {border-bottom:1px solid;}

.sidenav table td {
  width: 225px; 
  padding: 1px;
  font-size: 0.9em;
}

.sidenav table td#today {
  padding: 0;
  border: 1px solid;
  font-size: 1em;
  font-weight: bold;
}

.sidenav table td a {
  display: block;
  border-bottom: 1px solid;
  font-weight: bold;
  font-size: 1.15em;
}

.sidenav table tfoot {border-top:1px solid;}
.sidenav table tfoot a {
  border: none;
  font-weight: bold;
}
.sidenav table tfoot #prev a {text-align:left;}
.sidenav table tfoot #next a {text-align:center;}

#searchform {padding:10px;}


/* 
   Wordpress 
------------------------------------------------------------------- */

.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;
}


/* Images */
img.alignleft,img.alignright,img.aligncenter {
	background-color: #FFF;
	border: 1px solid #DDD;
	padding: 3px;
}

img.alignleft {margin: 0 15px 12px 0;}
img.alignright {margin: 0 0 15px 12px;}


/* Floats */
.alignleft {float: left;}
.alignright {float: right;}
.aligncenter {margin: 0 auto;}

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Jogibär« (27. Februar 2011, 23:55)

Montag, 28. Februar 2011, 13:39

Hast mal nen Link zu deinem Blog da?

Ins blaue geraten:
Laut deinem Sylesheet vewendet dein Template/Theme Klassen und keine IDs für den Header. Dementsprechend müsste deine CSS-Änderungen zum Ausblenden so heißen:

PHP-Quelltext

1
2
.header h1 displaynone; }
.header .description displaynone; }

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »TrOuble« (28. Februar 2011, 13:40)

Montag, 28. Februar 2011, 15:45

Ja das habe ich mir auch schon gedacht, aber wie gesagt, ich weiß nicht wohin damit. Wenn ich das an den Anfang einfüge passiert nichts, und auch nicht wenn ich das im Bereich "Title" der header Klasse einfüge bewirke ich damit auch nichts. Das Einfügen in die header Klasse in der auch die Formatierung des Titels enthalten ist, bewirkt ebenfalls nichts.

Das ist übrigens die Hochzeitsseite meiner Schwester und ihres Verlobten. :) http://www.jannikaundaliheiraten.de/

Montag, 28. Februar 2011, 15:58

Füg mal das hier ein:

PHP-Quelltext

1
2
3
.header .left {
text-indent:-999em;
}

Montag, 28. Februar 2011, 16:54

Ahaha nice, danke! :D Habe ich das richtig verstanden, ich rücke damit den Text um 999 pixel nach links? ^^

Montag, 28. Februar 2011, 17:08

Wenn es pixel währen, würde da px stehen. du verrückst um 999em

Zitat

em: Steht für bezogen auf die Schriftgröße des Elements. Ausnahme: wenn die font-size-Eigenschaft (also die Schriftgröße) selbst mit dieser Maßangabe gesetzt wird, steht diese für bezogen auf die Schriftgröße des Elternelements.

http://de.selfhtml.org/css/formate/wertzuweisung.htm

Dienstag, 1. März 2011, 17:38

Hintergrund ist u.a. der, dass `display: none;` Text auch für Screenreader ausblendet - Blinden wird so der (body-)Seitentitel vorenthalten.

Im Markup bietet es sich an, Überschriften z. B. als `<h1><span>Überschrift!</span></h1>` auszuzeichnen. Man kann dann im Stylesheet auf das span Bezug nehmen und es ausblenden. Das h1 lässt sich dann z. B. mit einem Hintergrundbild versehen, das den Seitentitel in grafischer Form darstellt.

Evtl. kann ich noch mehr/konkreteres sagen, wenn ich wieder vor einem grafischen Browser sitze :)

Mittwoch, 2. März 2011, 16:24


Evtl. kann ich noch mehr/konkreteres sagen, wenn ich wieder vor einem grafischen Browser sitze :)


Wozu brauchst du denn einen grafischen Browser, dir reicht doch der Quellcode, gibs zu. :D

Neue Herausforderung:
Ich möchte gerne die Sidebar, in welcher nicht nur die letzten Kommentare aufgelistet werden, sondern auch ein Audio Player vorhanden ist, von der Seite quasi entkoppeln. Ich weiß selber nicht wie genau ich das ausdrücken soll.
Praktisch gesehen soll, wenn man auf Play gedrückt hat und zwischen den Seiten der Page rumsurft, die Sidebar nicht mit den Seiten neu geladen werden, sondern völlig unabhängig davon sein sodass die Musik kontinuierlich weiterläuft und man nicht immer von vorne anfangen muss.
Ist das möglich? Würde mich freuen wenn ihr mir bei der Umsetzung helfen könntet.
Als Grundgerüst habe ich übrigens das Theme hier benutzt: http://themes.wordpress-deutschland.org/beautiful-day/

Mittwoch, 2. März 2011, 20:23

Das geht mit Frames (was man heutzutage praktisch nicht mehr macht, wenn man nicht 'ne Werbeagentur ist, die seit 15 Jahren nichts dazu gelernt hat) oder mit eingebetteten Frames. So richtig cool ist das nicht - aber das ist Hintergrundmusik auf Websites (im Gegensatz zu in einer Website eingebettete, fast-Fullscreen Flash-Multimedia-Machwerke) ebenso wenig.

Was den Überschriftenkram (zumindest in meinem Beispiel) angeht, fällt das übrigens in die Kategorie "image replacement". Da gibt's IIRC "Fa(h)rner Image Replacement", "sIFR" usw. Das umfasst neben Grafiken auch Ersetzung von textuellen Überschriften durch Flash-Komponenten mit eingebetteten Schriftarten. Mittlerweile braucht man das aber weniger, da Browser bereits mit in Websites eingebetteten Schriften umgehen können oder diese sich alternativ von externen Anbietern live holen lassen können (Typekit, Monotype, cufon, vgl. auch "font stacks").

In jedem Fall lesenswert (und u.a. auch ein Beispiel für eingebettete Fonts) ist http://diveintohtml5.org/ (Kurzübersicht).

Donnerstag, 3. März 2011, 19:34

Nachtrag zum Thema Frames (Quelle):

Zitat

The following elements are not in HTML5 because using them damages usability and accessibility:

* frame
* frameset
* noframes

Ähnliche Themen