How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View כיצד להציג אלמנטים (מודעות) בלבד (או לא רק) הודעה בודדת יחיד הצג פריט
Blogger.com, a popular free blog publishing service from Google, has a extremely easy to use and convenient template system that allows users to design the blog user interface presentations by selecting a theme and then drag and drop various page elements such as poll, newsreel, video bar, feed, label, logo, AdSense, HTML/JavaScript and more to align them according to users' preference on blog layout. Blogger.com, בלוג פופולרי פרסום חינם שירות של גוגל, יש מאוד קלה לשימוש נוח התבנית ואת מערכת המאפשר למשתמשים לעצב את ממשק המשתמש הבלוג מצגות על ידי בחירת ערכת נושא ולאחר מכן גרור ושחרר דף אלמנטים שונים כגון סקר, יומן החדשות , סרגל הווידאו, Feed, תוויות, לוגו, AdSense, HTML / JavaScript ועוד ליישר אותן לפי משתמשים העדפה על פריסת הבלוג. However, it also comes with serious limitations, such as when you want to make certain elements (ie Google AdSense ad unit) to appear and show when visitors visit single post item individually, or just want to shown the widget component block on homepage, archive and label or category pages. עם זאת, היא גם מגיעה עם מגבלות קשות, למשל כאשר אתה רוצה לעשות אלמנטים מסוימים (למשל, יחידת מודעות של Google AdSense) כדי להופיע ולהראות כאשר מבקרים בקר לפרסם פריט אחד בנפרד, או סתם רוצה את יישומון המוצג רכיב לחסום על הבית, ארכיון ו תווית קטגוריה או דפים.
Blogger.com allows users to manually the XML-based template HTML, thus allows a hack which enables users to manually edit the HTML code to achieve the aim to display and show certain widgets or part of webpages on individual post page view only. Blogger.com מאפשרת למשתמשים לבצע באופן ידני את המבוססים על XML תבנית HTML, ובכך מאפשר לקצץ המאפשרת למשתמשים לערוך באופן ידני את קוד ה-HTML כדי להשיג את מטרתם היא להציג ולהראות יישומונים או חלק מסוים של דפי אינטרנט על הודעה בודדת צפייה בדף בלבד. However, you have need to have a basic HTML knowledge to modify the HTML code of Blogger's template, which as editable by clicking on Template tab (or Layout of the blog you want to change if at Dashboard), and then click on Edit HTML . עם זאת, יש לך צורך להיות בעל ידע בסיסי HTML כדי לשנות את קוד ה-HTML של התבנית של Blogger, אשר כפי לעריכה על ידי לחיצה על הכרטיסייה תבנית (או מתווה את הבלוג ברצונך לשנות אם לוח המחוונים ב), ולאחר מכן לחץ על ערוך HTML.
The trick is show a widget in single post item view only is to add the following two lines of code to the top and bottom of the code block respectively: את העבודה היא להציג יישומון אחת לכתוב הפריט להציג רק היא להוסיף את שתי השורות הבאות הקוד של הדף ואת התחתון של קוד לחסום בהתאמה:
<b:if cond='data:blog.pageType == "item"'>
</b:if>
The above lines will add in a condition which value is negative is the blog is not showing individual post content page. האמור לעיל תוסיף שורות של מצב בו הוא ערך שלילי הוא הבלוג אינה מופיעה הודעה בודדת תוכן הדף. Thus anything that are wrapped inside it won't be shown on homepage, label or category pages, or archive pages. כך שום דבר, כי הם בתוך זה עטוף לא יוצגו על הבית, או תווית קטגוריה דפים, או דפי ארכיון. For example, while לדוגמה, בעת wrapping the AdSense ads manually beside the post content מעטף את מודעות AdSense ידנית לצד תוכן ההודעה , you can make the ads displayed only when individual posts are viewed by adding above 2 lines to the code, so that it will has the following structure: , אתה יכול להפוך את המודעות המוצגות בודדת הודעות רק כאשר הם צפו מעל על ידי הוספת 2 שורות של קוד, כך שהוא יהיה בעל מבנה הבאים:
<b:if cond='data:blog.pageType == "item"'>
Parsed Google AdSense Ad Code (guide to לנתח קוד המודעות של Google AdSense (מדריך parse the HTML code of AdSense JavaScript with escape character לנתח את קוד ה-HTML של AdSense JavaScript לברוח עם אופי ) )
</b:if>
To display the page elements or ad units on every pages except individual post content view pages, wrap the following lines of code instead: כדי להציג את הדף אלמנטים או יחידות מודעה בכל דפי תוכן הודעה בודדת אלא להציג דפים, לעטוף את שורות הקוד הבאות במקום:
<b:if cond='data:blog.pageType != "item"'>
</b:if>
The above statements make use of conditional statements similar to IF, ELSE, END IF in most programming languages. האמור לעיל תוחודל לנצל מותנה תוחודל דומה אם, אחר, End If ברוב שפות התכנות. The Blogger XML support these three conditional statements too. התמיכה של Blogger XML אלו שלוש טענות גם על תנאי. Two already been used above, with the third one ELSE is <b:else>. שני כבר הייתה בשימוש לעיל, עם השלישי אחד אחר לא <b:else>. You can make use of <b:else> to instruct Blogger template to display this widget (eg AdBrite ads) on all pages except single post pages, and show another widget (eg AdSense ads) on individual post pages. אתה יכול לעשות שימוש <b:else> להורות Blogger התבנית כדי להציג את יישומון (לדוגמה AdBrite מודעות) על כל הדפים, למעט אחד לכתוב עמודים, ולהראות יישומון אחר (לדוגמה, מודעות AdSense) לכתוב על דפים בודדים.
Other than ads code or JavaScripts that are manually inserted into Blogger HTML, the above trick can be applied to widget based page elements that are added to the layout. אחר מאשר מודעות או קוד JavaScripts שאינן ידנית Blogger מוכנס לתוך ה-HTML, את הטריק לעיל ניתן להחיל יישומון מבוסס רכיבי הדף כי הוספת את מתווה. But you need to study carefully the HTML code to identify which blocks of code is the element in order to add in above codes to wrap on top and bottom around them. אבל אתה צריך ללמוד היטב את קוד ה-HTML כדי לזהות איזה בלוקים של קוד הרכיב כדי להוסיף קודי לעיל כדי לגלול על הדף ואת התחתונה לעקוף אותם.
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. ככל שניתן.
Related Articles מאמרים קשורים
- Move Blogger Inline Ads Between Posts to Inside Within Post Position העבר Blogger inline מודעות בין הודעות בתוך תוך כדי שליחת מיקומך
- How to Wrap AdSense Ads Around and Inline Beside Blogger Post Content כיצד גלישת מודעות AdSense בסביבות inline ו-Blogger שליחת לצד תוכן
- Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents מקום יחידת מודעות AdSense במגוון תפקידים בתוך בתוך Blogger פרסם תוכן
- Free Online MergePDF to Combine Individual PDF Files into A Single File Free Online MergePDF לשלב בודדת קובצי PDF לתוך עורפית
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating או פיצול WordPress פוסט או דף עם NextPage ב-WordPress לא עובדת
- Retrieve and Get WordPress Post ID Outside the Loop as PHP Variable לאחזור וקבל WordPress פוסט מזהה מחוץ Loop כפי PHP משתנה
- Workaround to Add Custom Channels into Blogger AdSense Page Element Widget דרכים לעקיפת הבעיה כדי להוסיף ערוצים מותאמים אישית ל-Blogger AdSense רכיב דף יישומון
- Adding Extra More Fields to WordPress Write/Edit Post/Page Right Column הוספת שדות מיותרים עוד WordPress כתוב / עריכת פוסט / דף בעמודה הימנית
- Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above השבת ואת כיבוי שליחת מהדורות למעקב אחר WordPress 2.6 ומעלה
- Force IE8 to Load and Display Websites in IE7 Compatibility View Mode כוח IE8 לטעון ולהציג אתרי אינטרנט ב IE7 תאימות הצג מצב










































April 14th, 2009 06:24 אפריל 14, 2009 06:24
Bravo!! בראבו! They work first time, both wrap adsense tip and this one too. הם עובדים לראשונה, הן קשקוש AdSense עצה וזה אחד יותר מדי. Nobody has ever explaining this as clear as easy as yours. אף אחד מעולם להסביר זאת ברור קלה כמו שלך. Thanks תודה
January 12th, 2009 18:20 ינואר 12th, 2009 18:20
Hey there, thanks for sharing this technique. היי, תודה על שיתוף טכניקה זו. However, I've tried this on my blog but can't see the correct result. עם זאת, ניסיתי את זה לבלוג שלי אבל לא רואים את התוצאה הנכונה.
When you say 'item', would that means the url for that particular post? כאשר אתה אומר 'פריט', האם זה אומר את כתובת האתר המסוים לכתוב?
Thank you for your kind help! אנו מודים לך על סוג עזרה!
October 2nd, 2008 06:01 2 באוקטובר, 2008 06:01
Nice Blog. בלוג נחמד. I've gone thru your post But didn't understand that where exactly (in Edit HTMl of Bloggers Layout) to paste the codes after parsing the HTML code of AdSense JavaScript with escape characters. אני כבר הלך דרך ההודעה שלך אבל לא מבין איפה בדיוק (ב עריכת HTML של בלוגרים מתווה) כדי להדביק את קוד ה-HTML לאחר פענוח הקוד של AdSense JavaScript לברוח עם תווים.
Pls Help. Pls עזרה. I am in great need of it. אני צריך את זה נהדר.
I shall be highly obliged. אני יהיה מאוד אסיר תודה.
September 27th, 2008 11:05 ספטמבר 27, 2008 11:05
Can this be done with wordpress in a similar way? אפשר לעשות את זה עם wordpress באופן דומה?
September 27th, 2008 10:44 ספטמבר 27, 2008 10:44
Thank You very mush.It is working perfectly here. Thank you very mush.It כאן פועל באופן מושלם.
September 7th, 2008 21:20 7 בספטמבר, 2008 21:20
This is an extremely well article and whatever saying here in intact while going to real time basis. זהו מאמר מאוד טוב ומה אומר כאן על כנן בעת הולך בזמן אמת בסיס. My appreciations to giving such terrific information and the well written style. אזור appreciations כדי לתת כזה נורא מידע כתוב היטב את הסגנון. Nice work. עבודה טובה.
I have placed ad sense by following the instructions given here and it is working fantastic without a second involvement. יש לי תחושה להציב מודעות לפי ההנחיות שניתנו כאן וזה עובד מצוין ללא מעורבות השני.
Many thanks from my end. הרבה תודה מכל אזור הסיום.
Sherin from Investinternals Sherin מ Investinternals
August 16th, 2008 23:54 אוגוסט 16, 2008 23:54
Thanks a lot..this trick is very useful to me.. תודה רבה .. זה הטריק הוא מאוד שימושי לי ..
May 30th, 2008 02:30 מאי 30, 2008 02:30
this is what i looking for. זה מה שאני מחפש. thanks for help. תודה על העזרה.
May 6th, 2008 22:19 6 במאי, 2008 22:19
Hi, הי,
I like to play with html, and location of adsense on my blogs. אני אוהב לשחק עם ה-HTML, ומיקום של AdSense על הבלוגים שלי. I chanced upon your post and implemented the code to appear on a single post. אני chanced עם קבלת ההודעה שלך ואת יישמו את הקוד להופיע על אחד לכתוב. Then I got a new template and I had to start all over again.So now I have bookmarked your post, for future reference. אז יש לי תבנית חדשה ואני נאלץ להתחיל בכל again.So עכשיו אני צריך לכתוב את bookmarked, עבור בעתיד. Great post. פירסום נהדר.
April 11th, 2008 01:29 אפריל 11, 2008 01:29
I've tried but code is automatically set to: ניסיתי אבל הקוד באופן אוטומטי מוגדרת כ:
test display הבדיקה המוצגים
My aim is to display “test display” only on homepage. המטרה שלי היא להציג "המבחן המוצגים" רק על הבית.
January 13th, 2008 01:32 13 ינואר 2008 01:32
I used נהגתי
(if(in_category(CATID)) (IF (in_category (CATID))
{ (
} )
Works great עובד נהדר
January 2nd, 2008 16:45 2 בינואר, 2008 16:45
Do u have any idea how the same thing can be done using the classic template in blogger? U האם יש לך מושג איך את אותו הדבר יכול להיעשות באמצעות תבנית קלאסית ב-Blogger?
The if condition to check for? אם את המצב כדי לבדוק?
November 5th, 2007 02:20 5 נובמבר 2007 02:20
Thanks. תודה. That helped. זה עזר.
October 3rd, 2007 01:17 3 אוקטובר 2007 01:17
[...] Note that you can also make the ads appear only on single post view. [...] שים לב שאתה יכול גם לבצע את המודעות מופיעות רק אחת לכתוב על הנוף. [...] [...]