How to Change the CSS Style, Font, Spacing, Alignment and Color of WordPress Image Captions Kaip pakeisti CSS stilius, šriftas, tarpų, lygiuoti ir spalva WordPress Vaizdo Parašai

Since WordPress Kadangi WordPress version 2.6 versija 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 papildė įmontuotą Trumpa, "parašas", kuris bus automatiškai suteiktas ir perskaičiuojami į standartinius HTML CSS kodas rodyti parašas nuotrauką ar paveikslėlį, kuriame saugomi su žiniasklaidos Uploader, po jos.

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. Tačiau, kai WordPress prideda div style spausdinti parašo pavadinimą pagal nuotrauką ar paveikslėlį, WordPress naudoja numatytąjį derinimą, spalvą, šrifto, tarpų ir kitų stiliaus atributai rodyti vaizdus parašai.

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. Numatytasis stilius CSS vaizdo su parašo gali pertraukos į interneto dienoraštį arba interneto puslapio išdėstymą, nėra patvirtinti prieš W3C XHTML standartas, yra pernelyg glaudžiai susijęs su tekstu, be jokių tarpų ir paštu arba puslapio ar nėra suderinti su autoriaus pageidavimu.

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: Norėdami Bloggers, kurie nori pakeisti CSS stilius parašą, kuris rodo vaizdą užrašai ekrane po analizuojant trumpas, pridėkite CSS kodą į aktyvų teminius style.css failą:

/* 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. Ši HTML CSS deklaracija paimta iš WordPress 2,6 nutylėjimą temą. These newly added CSS styles are used to control and assign the appearance of the caption for the image posted on blog. Šie naujai pridėtų CSS stilių yra naudojami siekiant kontroliuoti ir priskirti išvaizdą parašo dėl atvaizdą paskelbtas dienoraštyje. Modify the code above in “style.css” file according to your own preference to have your own design and look. Keisdami kodą į "style.css" faile pagal savo pirmenybę turėti savo dizainą ir išvaizdą.

IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Mašininio vertimo, gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.


3 Responses to “How to Change the CSS Style, Font, Spacing, Alignment and Color of WordPress Image Captions” 3 Responses to "Kaip pakeisti CSS stilius, šriftas, tarpų, lygiuoti ir spalva WordPress Vaizdo subtitrais"

  1. Browsergames Fan Browsergames Fan
    October 27th, 2008 18:05 Spalis 27, 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 su eingebaut und finde die formatierung einfach klasse. Sieht optisch sehr ansprechend aus. Sieht optisch sehr ansprechend aus.

    Danke und gruss Danke und Gruß

  2. Gray Pilka
    September 16th, 2008 01:05 Rugsėjis 16, 2008 01:05
    2 2

    Thank you so much for sharing this code! Thank you so much for sharing šį kodą! I was going nuts trying to figure out how to fix my captions! Aš vyko riešutai bando suprasti, kaip pataisyti savo parašo!

  3. Mark LaFlamme Pažymėti LaFlamme
    July 20th, 2008 10:05 20 liepa 2008 10:05
    1 1

    For the life of me, I cannot get captions to work. Nes gyvenimas man, I can't get parašai dirbti. It looks great in preview, but live, all the code spills out around the photo and there's no caption at all. Atrodo didelis išklausyti, bet gyvena, visi kodas išsiliejimus aplink nuotrauką ir nėra parašo ne visiems. I added the caption code to my theme's style.css but there was no change. Dodałem parašo kodą į savo teminius style.css bet nebuvo pakeisti. Seems like I'm just one minor step away from making this work. Seems like I'm just vieną nedidelį žingsnį nuo priėmimo šis darbas. If anyone has any ideas, I'd love to hear them. Jei kas nors kokių nors idėjų, aš mėgstu klausytis jų. I'll add a caption to my first post to demonstrate. Aš pridėti parašą prie savo pirmąjį pranešimą parodyti.

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> Galite naudoti šias žymeles: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Subscribe to comments funkcija buvo išjungta. To receive notification of latest comments posted, subscribe to Norėdami gauti pranešimus apie naujausius komentarų, užsiprenumeruoti My Digital Life Comments RSS feed Mano skaitmeninis gyvenimas Komentarų RSS or arba register to receive registruotis, norint gauti new comments in daily email digest. Nauji komentarai kasdien elektroniniu paštu.
Custom Search

New Articles Nauji straipsniai

Incoming Search Terms for the Article Incoming Paieška Sąlygos straipsnį

css font color Css spalvą - -- font color css Šrifto spalva css - -- css font spacing css font spacing - -- css style font color Css stilių font color - -- css font align css font suderinti - -- css change font color Css keisti spalvą - -- font color in css šrifto spalva css - -- css alignment Css derinimą - -- div style font color div style spalvą - -- change font color wordpress pakeisti spalvą wordpress - -- style font color stilius šrifto spalva - -- css font color code Css spalvą kodas - -- change font color css pakeisti spalvą css - -- how to change font color in css Kaip pakeisti spalvą į css - -- css font-color Css Šrifto spalva - -- font-color css Šrifto spalva css - -- set font color in css nustatyti šrifto spalvą css - -- how to change font in css Kaip pakeisti šrifto css - -- CSS font color style CSS font color stilius - -- wordpress change font color WordPress keisti spalvą - -- change css style pakeisti css stilius - -- Wordpress CSS styles Wordpress CSS stilius - -- css font alignment css font derinimą - -- change CSS pakeisti CSS - -- font spacing css font spacing css - -- font color css code Šrifto spalva css kodas - -- wp-caption css wp-caption css - -- change font css keisti šrifto css - -- style font spacing stiliaus šriftą tarpai - -- font align css Font suderinti css - -- css change color Css keisti spalvą - -- style font align stiliaus šriftą suderinti - -- css font margin css font skirtumas - -- css changing font color Css keičiasi spalvą - -- change font spacing keisti šrifto tarpai - -- set font color CSS nustatyti spalvą CSS - -- css color change Css pakeisti spalva - -- change color css keisti spalvą css - -- css set font color css nustatyti spalvą - -- css change font colour Css keisti šrifto spalva - -- change font color in wordpress keisti šrifto spalvą wordpress - -- css style font css stiliaus šriftą - -- code to change font color kodas keisti spalvą - -- changing font color css kintančias spalvą css - -- change font in css pakeisti šrifto css - -- how to change css style kaip pakeisti css stilius - -- wordpress change font WordPress pakeisti šriftą - -- CSS to change font color CSS keisti spalvą - -- css font colour Css šrifto spalva - -- font colors in css Font spalvos css - -- style css font color stilių css spalvą - -- change wordpress font color pakeisti wordpress spalvą - -- spacing CSS tarpai CSS - -- how to change font size css Kaip pakeisti šriftą css - -- how to change css styles kaip pakeisti css stiliai - -- changing font color with css kintančias spalvą su css - -- font color in css file šrifto spalva css failą - -- css code for font color css kodas spalvą - -- font color with css spalvą su css - -- change css style pakeisti css stilius - -- code to change font and font color kodas pakeisti šriftą ir šrifto spalva - -- wp-caption style wp-caption stilius - -- css font color change Css šrifto spalvą pakeisti - -- how to change wordpress css kaip pakeisti wordpress css - -- style font color css stilius šrifto spalvą css - -- Wordpress CSS style Wordpress CSS stilius - -- css code for changing font color css kodas keisti spalvą - -- how to set font color in CSS kaip nustatyti spalvą CSS - -- changing color in css kintančių spalvų css - -- setting font color in css nustatyti šrifto spalvą css - -- how to change font color on wordpress Kaip pakeisti spalvą ant WordPress - -- CSS CODE TO CHANGE COLOR CSS KODAS Į keisti spalvą - -- changing font colors in css kintančias šrifto spalvų css - -- change wordpress theme font pakeisti WordPress theme šriftas - -- style sheet font color stiliaus lapo spalvą - --