How to Change the CSS Style, Font, Spacing, Alignment and Color of WordPress Image Captions כיצד לשנות את סגנון CSS, גופן, ריווח, המערך צבע כיתובים של וורדפרס תמונה

Since 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. , וורדפרס הוסיפה מובנית shortcode, "כיתוב", אשר תוצג באופן אוטומטי ותורגם קוד ה-HTML רגיל ב CSS כדי להציג את הכיתוב על התצלום או תמונה, אשר הצילה את דרך התקשורת Uploader, מתחתיה.

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. עם זאת, כאשר וורדפרס ומצרף את הסגנונות DIV להדפיס את הכותרת הכיתוב מתחת לתמונה או תמונה, וורדפרס עושה שימוש יישור ברירת המחדל, צבע, גופן, ריווח סטיילינג תכונות אחרות כדי להציג את התמונה כיתובים.

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. ברירת המחדל של סגנונות CSS עבור תמונה עם הכיתוב עשוי פוטנציאלית שובר את הבלוג או פריסה של דף אינטרנט, אינו מאמת נגד הסטנדרט של 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: Blogger עבור מי שרוצה לשנות את הכיתוב של המציג את התמונה כיתובים על המסך לאחר בניתוח shortcode, סגנונות CSS להוסיף את הקוד CSS הבא לקובץ 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 הצהרת CSS נלקחת 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. אלה שנוסף סגנונות CSS משמשים וניהול להקצות את המראה של הכיתוב על התמונה פורסמה בבלוג. 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 תגובות ל "כיצד לשנות את סגנון CSS, גופן, ריווח, המערך צבע כיתובים של וורדפרס תמונה"

  1. Browsergames Fan Browsergames מניפה
    October 27th, 2008 18:05 27 אוקטובר 2008 18:05
    3 3

    Wow, klasse für den CSS-Tipp. וואו, דן מתאריך klasse CSS-Tipp. Habe den gleiche mal eingebaut und finde die Formatierung einfach klasse. Gleiche habe דן eingebaut und finde mal למות Formatierung einfach klasse. Sieht optisch sehr ansprechend aus. Aus Sieht ansprechend sehr optisch.

    Danke und gruss Gruß und Danke

  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 title=""> <b> <blockquote cite=""> <cite> <code> <del 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 החיים שלי דיגיטליות תגובות 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 - -- css font align גופן CSS ליישר - -- font align css גופן ליישר CSS - -- change css style CSS לשנות סגנון - -- how to change font color in CSS כיצד לשנות את צבע הגופן ב-CSS - -- wordpress css styles WordPress סגנונות CSS - -- css font margin שולי גופן CSS - -- how to change background color in css כיצד לשנות את צבע הרקע ב-CSS - -- change css wordpress CSS לשנות WordPress - -- font color in css file צבע הגופן בקובץ CSS - -- css font spacing CSS גופן ריווח - -- font color css CSS צבע הגופן - -- wp-caption-text css wp-caption text-CSS - -- How to change CSS colors כיצד לשנות צבעים ב CSS - -- css color change שינוי צבע CSS - -- how to revise wordpress font formatting איך לשנות את עיצוב הגופן WordPress - -- german style font CSS Styles code הסגנון הגרמני גופן CSS קוד סגנונות - -- changing the font of wordpress theme title שינוי הגופן של הכותרת wordpress נושא - -- wp-caption styles wp-caption סגנונות - -- change font in css שינוי גופן ב-CSS - -- css lince spacing CSS Lince ריווח - -- css file font color CSS הקובץ צבע הגופן - -- 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 כיצד CSS כיתוב בסגנון התמונה - -- image color change in CSS שינוי צבע תמונה ב-CSS - -- change colour font wordpress שינוי צבע הגופן WordPress - -- change wp style.css style.css WP שינוי - -- css caption html font color HTML CSS צבע הכיתוב גופן - -- how to change a wordpress theme font כיצד לשנות את הגופן א WordPress - -- how to change image color in css כיצד לשנות את צבע התמונה ב-CSS - -- setting font color css הגדרת CSS צבע הגופן - -- code for align in css קוד ליישר ב-CSS - -- CSS font disable color צבע גופן להשבית CSS - -- font style alignment יישור סגנון הגופן - -- text-align font style text-align סגנון הגופן - -- wordpress page title alignment code הכותרת קוד WordPress דף יישור - -- change font color in css צבע גופן שינוי CSS - -- color font css CSS צבע הגופן - -- css font color css file CSS צבע הגופן קובץ css - -- css style font disabled color צבע הגופן בסגנון CSS לנכים - -- css style font-color סגנון הגופן CSS-צבע - -- how to set font and spacing in css כיצד להגדיר את הגופן ואת המרווח ב-CSS - -- style font color צבע גופן סגנון - -- style sheet color change taskbar גיליון סגנונות שינוי צבע שורת המשימות - -- wordpress how to change background color of caption WordPress כיצד לשנות את צבע הרקע של הכיתוב - -- wp caption text css CSS כיתוב טקסט WP - -- change caption color in wordpress צבע הכיתוב שינוי WordPress - -- change paragraph spacing on pages wordpress הפיסקה לשנות ריווח בדפי WordPress - -- CSS set font color CSS להגדיר צבע הגופן - --