How to Change the CSS Style, Font, Spacing, Alignment and Color of WordPress Image Captions Ako zmeniť štýl CSS, písma, medzery, Zarovnanie a farieb obrazu titulky WordPress

Since WordPress Vzhľadom k tomu, WordPress version 2.6 verzia 2.6 , WordPress has added a built-in shortcode, “Caption”, which will be automatically rendered and translated into standard HTML CSS code to display the caption for the photo or image, which saved via media uploader, beneath it. , WordPress pridala stavaný z-do krátky, "Popis", ktorý bude automaticky vydaný a preložený na štandardný HTML kód CSS pre zobrazenie titulku na fotografiu alebo obrázok, ktorý zachránil cez médiá uploader, pod ním.

However, when WordPress appends the DIV styles to print the caption title under the picture or image, WordPress makes use of default alignment, color, font, spacing, and other styling attributes to display the image captions. Avšak, keď WordPress pripojí DIV štýly pre tlač stránok popisok pod obrázkom alebo obrázok, WordPress používa predvolené zarovnanie, farbu písma, riadkovanie, štýl a ďalšie atribúty pre zobrazenie obrázku titulky.

The default CSS styles for image with the caption may potentially breaks the blog or web page layout, does not validate against W3C xHTML standard, appears too closely with the text with no spacing in the post or page, or does not align as author's wish. Predvolená CSS štýlov pre obraz s titulkom môže potenciálne prestávky blogu alebo webovej stránke rozvrhnutie, neoveruje proti W3C XHTML Standard, zdá príliš úzko spolupracuje s textom bez medzier v úrade alebo stránku, alebo sa nezhoduje ako autor priania.

For blogger who wants to modify the CSS styles of the caption that shows the image captions on screen after parsing the shortcode, add the following CSS code into the active theme's style.css file: Pre blogger, ktorý chce zmeniť CSS štýly titulok, ktorý ukazuje obraz menovkami na obrazovke po analýze krátky, pridajte nasledujúci CSS kód do aktívnej téma je style.css súboru:

/* Captions */
.aligncenter,
div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}

.wp-caption {
border: 1px solid #ddd;
text-align: center;
background-color: #f3f3f3;
padding-top: 4px;
margin: 10px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}

.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;
}
/* End captions */

Above HTML CSS declaration is taken from WordPress 2.6 default theme. Nad HTML CSS vyhlásenie je prevzatý z WordPress 2.6 default theme. These newly added CSS styles are used to control and assign the appearance of the caption for the image posted on blog. Tieto novo pridané CSS štýly sa používajú na ovládanie a priradiť vzhľad titulok na obrázok zverejnené na blogu. Modify the code above in “style.css” file according to your own preference to have your own design and look. Zmeniť vyššie uvedený kód v "style.css" súbor, podľa vašich vlastných preferencií mať svoj vlastný dizajn a vzhľad.

IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: stránka je stroje preložené a za predpokladu, "ako je" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Nájdete na original English article originál Anglicky artikl whenever possible. ak je to možné.


3 Responses to “How to Change the CSS Style, Font, Spacing, Alignment and Color of WordPress Image Captions” 3 Reakcie na "Ako zmeniť štýl CSS, písma, medzery, Zarovnanie a farieb obrazu titulky WordPress"

  1. Browsergames Fan Browsergames Fan
    October 27th, 2008 18:05 27.říjen 2008 18:05
    3 3

    Wow, klasse für den CSS-Tipp. Wow, klasse für den CSS-Tipp. Habe den gleiche mal eingebaut und finde die Formatierung einfach klasse. Habe den gleiche mal eingebaut und finde die Formatierung einfach klasse. Sieht optisch sehr ansprechend aus. Optisch sieht aus sehr ansprechend.

    Danke und gruss Danke und gruss

  2. Gray Gray
    September 16th, 2008 01:05 16.září 2008 01:05
    2 2

    Thank you so much for sharing this code! Děkuji moc za zdieľanie tohto kódu! I was going nuts trying to figure out how to fix my captions! Chcel som orechy snaží prísť na to, ako sa z mojej titulky!

  3. Mark LaFlamme Mark Laflamme
    July 20th, 2008 10:05 20.července 2008 10:05
    1 1

    For the life of me, I cannot get captions to work. Pre život ma, nemůžu dostat titulky do práce. It looks great in preview, but live, all the code spills out around the photo and there's no caption at all. To vyzerá skvele v náhľadu, ale žiť, celý kód sa vysypal okolo fotografie a neexistuje žiadny popisok vôbec. I added the caption code to my theme's style.css but there was no change. Pridal som titulok kód je moja téma style.css, ale nedošlo k žiadnej zmene. Seems like I'm just one minor step away from making this work. Zdá sa, ako by som bola len jedna menšia odstup od vykonávania tejto práce. If anyone has any ideas, I'd love to hear them. Ak má niekto nejaké nápady, tak by som rada počula. I'll add a caption to my first post to demonstrate. Přidám titulok na môj prvý príspevok na demonštráciu.

Leave a Reply Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Môžete použiť tieto značky: href = "" <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Prihlásiť sa k pripomienkam funkcia bola zakázaná. To receive notification of latest comments posted, subscribe to Ak chcete dostávať oznámenia o najnovšie komentáre vyslaný, prihláste sa My Digital Life Comments RSS feed Má Digital Life Komentáre RSS or alebo register to receive zaregistrovať na new comments in daily email digest. nové komentáre v dennom email Digest.
Custom Search

New Articles Nové články

Incoming Search Terms for the Article Vcházející Hľadať Čas do člen určitý Artikel

css font color css farba písma - -- css font align css font align - -- font align css font align css - -- change css style zmena css štýlu - -- how to change font color in CSS ako zmeniť farbu písma v CSS - -- wordpress css styles wordpress css štýlov - -- css font margin css font marža - -- how to change background color in css ako zmeniť farbu pozadia v css - -- change css wordpress zmena css wordpress - -- font color in css file farbu písma v css súbore - -- css font spacing css font rozstup - -- font color css farba písma css - -- wp-caption-text css wp-titulok-text css - -- How to change CSS colors Ako zmeniť farby CSS - -- css color change css zmenu farby - -- how to revise wordpress font formatting ako upraviť wordpress formátovanie písma - -- german style font CSS Styles code Nemčina štýl písma Štýly CSS kódu - -- changing the font of wordpress theme title zmena písma na wordpress téme titulu - -- wp-caption styles wp-caption štýly - -- change font in css zmena písma v css - -- css lince spacing css Lince rozstup - -- css file font color css súbor písma - -- easy way changing the size and colour for picture captions in wordpress jednoduchý spôsob, ako zmeniť veľkosť a farbu na obrázok titulky v wordpress - -- how to change spacing in wordpress japanese text Ako zmeniť medzery v wordpress japonského textu - -- how to style css image caption ako na css štýl obrázok popisok - -- image color change in CSS image zmenu farby v CSS - -- change colour font wordpress zmeniť farbu písma wordpress - -- change wp style.css style.css zmena wp - -- css caption html font color css html titulok farba písma - -- how to change a wordpress theme font Ako zmeniť písmo wordpress tému - -- how to change image color in css ako zmeniť image farby v css - -- setting font color css nastavenia farby písma css - -- code for align in css kód pre prispôsobenie v css - -- CSS font disable color Farba písma vypnúť CSS - -- font style alignment štýl písma zarovnanie - -- text-align font style text-align písma - -- wordpress page title alignment code wordpress blok hodnosť zarovnanie kódu - -- change font color in css zmena farby písma v css - -- color font css Farba písma css - -- css font color css file css farbu písma css súbor - -- css style font disabled color css štýl písma zdravotne farbu - -- css style font-color css štýl font-color - -- how to set font and spacing in css ako nastaviť písmo a riadkovanie v css - -- style font color štýl písma - -- style sheet color change taskbar štýlov zmenu farby panela - -- wordpress how to change background color of caption wordpress, ako zmeniť farbu pozadia titulku - -- wp caption text css wp css Text titulku - -- change caption color in wordpress zmeniť farbu titulku v wordpress - -- change paragraph spacing on pages wordpress zmeniť medzery medzi odsekmi na stránkach wordpress - -- CSS set font color CSS nastaviť farbu písma - --