How to Change the CSS Style, Font, Spacing, Alignment and Color of WordPress Image Captions कैसे सीएसएस पहनाव, फ़ॉन्ट, जगह, पंक्तिबद्धता और WordPress छवि शीर्षक का रंग परिवर्तित करने

Since WordPress WordPress के बाद से version 2.6 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 जोड़ा एक shortcode में बनाया, "शीर्षक", जो स्वचालित रूप से प्रदान की जाएगी और मानक HTML सीएसएस कोड में अनुवाद की तस्वीर या छवि है, जो अपलोडर मीडिया ने इसे नीचे, के द्वारा बचाया के लिए शीर्षक का प्रदर्शन किया है.

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. बहरहाल, जब WordPress DIV शैलियों appends को चित्र या छवि के अंतर्गत शीर्षक शीर्षक प्रिंट, WordPress डिफ़ॉल्ट संरेखण, रंग, फ़ॉन्ट, खाली स्थान का उपयोग करता है, और अन्य स्टाइल के लिए छवि कैप्शन प्रदर्शन गुण.

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. डिफ़ॉल्ट सीएसएस छवि के लिए शीर्षक संभावित ब्लॉग या वेब पेज लेआउट के साथ टूट सकता है शैलियों, W3C XHTML मानक के खिलाफ मान्य नहीं है, पद या पृष्ठ, में कोई अंतर के साथ पाठ के साथ भी निकट से प्रतीत होता है या नहीं लेखक की इच्छा के रूप में संरेखित करें.

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: ब्लॉगर जो शीर्षक है कि shortcode पार्स करने के बाद स्क्रीन पर छवि शीर्षकों से पता चलता है, के सीएसएस शैलियों को संशोधित सक्रिय है विषय style.css फ़ाइल में निम्नलिखित सीएसएस कोड जोड़ने के लिए करना चाहता है:

/* 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. इसके बाद के संस्करण HTML सीएसएस घोषणा से WordPress 2.6 डिफ़ॉल्ट विषय लिया है. These newly added CSS styles are used to control and assign the appearance of the caption for the image posted on blog. इन नए जोड़े सीएसएस शैलियों को नियंत्रण और छवि के लिए शीर्षक का स्वरूप प्रदान किया जाता है ब्लॉग पर पोस्ट किया. Modify the code above in “style.css” file according to your own preference to have your own design and look. "Style.css 'में उपरोक्त कोड संशोधित अपनी पसंद के अनुसार अपने डिजाइन और देखो फ़ाइल.

IMPORTANT : The page is machine translated and provided "as is" without warranty. महत्वपूर्ण: पृष्ठ की मशीन है और अनुवाद प्रदान "के रूप में वारंटी के बिना है." Machine translation may be difficult to understand. मशीन अनुवाद मुश्किल से समझ सकते हो. Please refer to कृपया उल्लेख करने original English article मूल अंग्रेजी लेख whenever possible. जब भी संभव है.


3 Responses to “How to Change the CSS Style, Font, Spacing, Alignment and Color of WordPress Image Captions” 3 जवाब "कैसे सीएसएस पहनाव, फ़ॉन्ट, जगह, पंक्तिबद्धता और WordPress छवि शीर्षक का रंग परिवर्तित करने"

  1. Browsergames Fan Browsergames फैन
    October 27th, 2008 18:05 27, 2008 18:05 अक्टूबर
    3 3

    Wow, klasse für den CSS-Tipp. वाह, klasse फर मांद सीएसएस-Tipp. Habe den gleiche mal eingebaut und finde die Formatierung einfach klasse. Habe मांद gleiche मल eingebaut und finde einfach klasse Formatierung मर जाते हैं. Sieht optisch sehr ansprechend aus. Sieht optisch sehr ansprechend ऑस्ट्रेलिया.

    Danke und gruss शुक्रीया und gruss

  2. Gray ग्रे
    September 16th, 2008 01:05 16, 2008 01:05 सितम्बर
    2 2

    Thank you so much for sharing this code! आप इस कोड को साझा करने के लिए बहुत बहुत धन्यवाद! I was going nuts trying to figure out how to fix my captions! मैं समझ कैसे मेरे शीर्षकों को ठीक करने की कोशिश कर पागल हो रहा था!

  3. Mark LaFlamme मार्क LaFlamme
    July 20th, 2008 10:05 20, 2008 10:05 जुलाई
    1 1

    For the life of me, I cannot get captions to work. मेरे जीवन के लिए, मैं शीर्षकों काम करने के लिए प्राप्त नहीं कर सकता. It looks great in preview, but live, all the code spills out around the photo and there's no caption at all. यह पूर्वावलोकन में अच्छा लग रहा है, पर रहते हैं, सभी कोड की तस्वीर से बाहर चारों ओर फैल और वहाँ बिल्कुल कोई शीर्षक है. I added the caption code to my theme's style.css but there was no change. मैं अपने विषय को style.css शीर्षक कोड जोड़ा है लेकिन वहाँ कोई परिवर्तन नहीं किया गया. Seems like I'm just one minor step away from making this work. लगता है कि मैं यह काम करने से सिर्फ एक मामूली कदम दूर. If anyone has any ideas, I'd love to hear them. अगर किसी को किसी भी विचार है, मैं उन्हें सुनना अच्छा लगेगा. I'll add a caption to my first post to demonstrate. मैं अपनी पहली पोस्ट करने के लिए एक शीर्षक जोड़ने के लिए प्रदर्शन करेंगे.

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> आप इन टैग्स: <a href="" उपयोग title=""> <abbr title=""> <acronym कर सकते हैं <blockquote title=""> <b> cite=""> <cite> <code> <डेल DateTime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. टिप्पणी की सुविधा है विकलांग गया है की सदस्यता लें. To receive notification of latest comments posted, subscribe to सदस्यता के लिए नई टिप्पणियों की सूचना प्राप्त पोस्ट किया है, My Digital Life Comments RSS feed मेरे डिजिटल जीवन टिप्पणियाँ आरएसएस फ़ीड or या register to receive रजिस्टर प्राप्त करने के लिए new comments in daily email digest. दैनिक ईमेल में नई टिप्पणियाँ डाइजेस्ट.
Custom Search

New Articles नए लेख

Incoming Search Terms for the Article के लिए खोजें शर्तें आने अनुच्छेद

css font color सीएसएस फ़ॉन्ट रंग - -- css font align सीएसएस फ़ॉन्ट संरेखित करें - -- font align css फ़ॉन्ट CSS संरेखित करें - -- change css style बदल सीएसएस शैली - -- how to change font color in CSS कैसे सीएसएस में फ़ॉन्ट रंग बदलने के लिए - -- wordpress css styles सीएसएस शैली WordPress - -- css font margin सीएसएस फ़ॉन्ट मार्जिन - -- how to change background color in css कैसे सीएसएस में पृष्ठभूमि का रंग बदलने के लिए - -- change css wordpress बदल सीएसएस WordPress - -- font color in css file सीएसएस फ़ाइल में फ़ॉन्ट रंग - -- css font spacing CSS अंतर फ़ॉन्ट - -- font color css फ़ॉन्ट रंग CSS - -- wp-caption-text css CSS WP-शीर्षक, पाठ - -- How to change CSS colors कैसे सीएसएस रंग बदलने के लिए - -- css color change CSS रंग परिवर्तित - -- how to revise wordpress font formatting कैसे को संशोधित फ़ॉन्ट स्वरूपण WordPress के लिए - -- german style font CSS Styles code जर्मन फ़ॉन्ट शैली सीएसएस शैलियाँ कोड - -- changing the font of wordpress theme title WordPress विषय शीर्षक का फ़ॉन्ट परिवर्तन - -- wp-caption styles शैलियों WP-शीर्षक - -- change font in css सीएसएस में परिवर्तन फ़ॉन्ट - -- css lince spacing CSS अंतर lince - -- css file font color सीएसएस फ़ॉन्ट रंग संचिका - -- easy way changing the size and colour for picture captions in wordpress आसान WordPress आकार में चित्र शीर्षक के लिए और रंग बदल रास्ता - -- how to change spacing in wordpress japanese text कैसे WordPress जापानी पाठ में खाली स्थान बदलने के लिए - -- how to style css image caption के लिए शैली सीएसएस छवि शीर्षक कैसे - -- image color change in CSS छवि सीएसएस में रंग परिवर्तित - -- change colour font wordpress फ़ॉन्ट रंग बदलने के WordPress - -- change wp style.css बदल WP style.css - -- css caption html font color CSS शीर्षक html फ़ॉन्ट रंग - -- how to change a wordpress theme font कैसे एक WordPress विषय फ़ॉन्ट बदलने के लिए - -- how to change image color in css कैसे सीएसएस में छवि का रंग बदलने के लिए - -- setting font color css फ़ॉन्ट रंग सीएसएस की स्थापना - -- code for align in css के लिए कोड सीएसएस में संरेखित करें - -- CSS font disable color सीएसएस फ़ॉन्ट अक्षम रंग - -- font style alignment फ़ॉन्ट शैली के संरेखण - -- text-align font style पाठ फ़ॉन्ट शैली संरेखित करें - -- wordpress page title alignment code WordPress पृष्ठ शीर्षक संरेखण कोड - -- change font color in css बदल सीएसएस में फ़ॉन्ट रंग - -- color font css फ़ॉन्ट रंग CSS - -- css font color css file सीएसएस फ़ॉन्ट रंग सीएसएस फ़ाइल - -- css style font disabled color सीएसएस फ़ॉन्ट शैली अक्षम रंग - -- css style font-color सीएसएस फ़ॉन्ट शैली रंग - -- how to set font and spacing in css कैसे फ़ॉन्ट सेट और सीएसएस में अंतर - -- style font color शैली फ़ॉन्ट रंग - -- style sheet color change taskbar शैली पत्रक रंग बदल कार्यपट्टी - -- wordpress how to change background color of caption WordPress कैसे शीर्षक की पृष्ठभूमि का रंग बदलने के लिए - -- wp caption text css WP शीर्षक पाठ CSS - -- change caption color in wordpress बदल WordPress में शीर्षक रंग - -- change paragraph spacing on pages wordpress बदलने के पन्नों पर जगह पैरा WordPress - -- CSS set font color सीएसएस फ़ॉन्ट रंग सेट - --