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, 구글에서 인기있는 무료 블로그 게시 서비스가 있는데, 아주 간단하고 편리한 템플릿 시스템을 사용하는 사용자 인터페이스를 프레 젠 테이션을 통해 사용자의 블로그를 디자인의 테마를 선택하여 다음과 같은 페이지 구성 요소를 드래그 앤 드롭 각종 여론 조사, 뉴스 , 비디오 바, 피드, 상표, 로고, 애드 센스 데스크톱 / 자바 스크립트와 더 정렬 그들에 따르면 사용자가 환경 설정에 블로그 레이아웃을합니다. 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. 그러나, 또한 함께 심각한 제한 사항과 같은 특정 요소를하려는 경우 (예 : 구글 애드 센스 광고 단위)를 표시 단일 게시물을 보여주 방문하면 상품을 개별적, 아니면 그냥 위젯 구성 요소를 블록을 표시 싶어 홈페이지를 기록 보관소 및 레이블 또는 카테고리 페이지를합니다.
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을 통해 사용자를 수동으로 the xml - 기반 템플릿, 따라서 해킹을 사용하면 코드를 사용하면 사용자가 수동으로 편집하여 달성을 목표로하고 특정 위젯 또는 일부를 표시하고 웹 페이지를 표시 개별 게시물 페이지를보기 전용. 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합니다.
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 cond='data:blog.pagetype == "item"'>
</b:if> </ b : 만약>
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 게시물 내용을 수동으로 옆에있는 애드 센스 광고를 배치 , 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"'> <b:if cond='data:blog.pagetype == "item"'>
Parsed Google AdSense Ad Code (guide to 구문 분석 구글 애드 센스 광고 코드 (안내 parse the HTML code of AdSense JavaScript with escape character 자바 스크립트와 구문 분석 애드 센스 코드를 이스케이프 문자 )
</b:if> </ b : 만약>
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 "item"'> != cond='data:blog.pagetype
</b:if> </ b : 만약>
The above statements make use of conditional statements similar to IF, ELSE, END IF in most programming languages. 위의 문장을 사용 조건문 유사하게 경우, 다른 사람, 끝 경우에는 대부분의 프로그래밍 언어로합니다. The Blogger XML support these three conditional statements too. 블로그 xml 지원이 3 조건문 너무합니다. Two already been used above, with the third one ELSE is <b:else>. 위의 두 개의 이미 사용과 제 3의 다른 사람이 <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>이 위젯 (예 : Adbrite - 광고) 단 하나를 제외한 모든 페이지에 게재 페이지를, 그리고 또 다른 위젯 표시 (예 : 애드 센스 광고)에 개별 게시물 페이지를합니다.
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. 광고 코드 또는 브라우저가 아닌 다른 블로그를 수동으로 삽입 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. 그러나주의 깊게 연구해야하는 코드를 블록의 코드는 해당 요소를 식별하기 위해 위의 코드를 포장에서 추가 윗면과 아랫면 주위에 그들을합니다.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 중요 사항 : 이것은 기계 번역 페이지는 "있는 그대로"제공하지 않고 보증합니다. Machine translation may be difficult to understand. 기계 번역을 이해하기 어려울 수있습니다. Please refer to 를 참조하시기 바랍니다 original English article 원래 영어 자료 whenever possible. 언제 수있습니다.
Share and contribute or get technical support and help at 를 공유하고 기술 지원 및 도움을 공헌하지 않는다면 My Digital Life Forums 내 디지털 라이프 공개 토론 . 합니다.
Related Articles 관련 기사
- Move Blogger Inline Ads Between Posts to Inside Within Post Position 내부 블로그에 게시물을 이동 시간 사이에 인라인 광고 게시물 게재 순위
- How to Wrap AdSense Ads Around and Inline Beside Blogger Post Content 애드 센스 광고를 포장하는 방법을 옆에 주위와 인라인 콘텐츠를 블로그 게시물
- Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents 애드 센스 광고 단위 장소에서 다양한 포지션 내부 블로그 게시물의 내용
- Retrieve and Get WordPress Post ID Outside the Loop as PHP Variable 밖으로 가서 루프 wordpress 게시물 번호를 검색 환경 변수 변수
- Change to ads about Feature in Google Adsense Ads 구글 애드 센스 광고에 대한 기능의 변경 내용을 광고를
- Video Ads Support in Google Adwords and Adsense 비디오 광고는 지원에 구글 애드 워즈와 애드 센스
- Adding Extra More Fields to WordPress Write/Edit Post/Page Right Column 여분의 다른 필드를 추가할 wordpress 쓰기 / 게시물 수정 / 페이지 오른쪽 열에
- Trick to Add AdSense, AdBrite and Other JavaScript Ad Code Directly to Blogger HTML Template 트릭을 추가 애드 센스, Adbrite - 블로그 및 기타 자바 스크립트 광고 코드를 직접 html 템플릿
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working 페이지에 게시하거나 nextpage paginating 또는 분할 wordpress wordpress에서 작동하지 않습니다
- Add and Insert to Put Google AdSense Ads Units Between Blog Posts in Blogger.com 구글 애드 센스 광고 단위를 추가하고 사이에 삽입을 blogger.com 블로그 게시물에
















October 3rd, 2007 01:17 2007년 10월 3일 01:17
[...] Note that you can also make the ads appear only on single post view. [...] 참고 사항을 할 수있습니다 게시물이 문서가 적용되는 단 하나의 광고에만 게재됩니다. [...]
November 5th, 2007 02:20 2007년 11월 5일 02:20
Thanks. thanks. That helped. 시키는 데 도움이되었던합니다.
January 2nd, 2008 16:45 2008년 1월 2일 16:45
Do u have any idea how the same thing can be done using the classic template in blogger? 어떤 생각을 들어 줄 수 있어요 같은 일을 할 방법 클래식 템플릿에서 블로그를 사용하여 수행할 수있습니다?
The if condition to check for? the 경우 상태를 확인하기 위해?
January 13th, 2008 01:32 2008년 1월 13일 01:32
I used 예전
(if(in_category(CATID)) (만약 (in_category (catid))
{ (
} )
Works great 작품 큰
April 11th, 2008 01:29 2008년 4월 11일 01:29
I’ve tried but code is automatically set to: 발라봤하지만 코드가 자동으로 설정 :
test display 시험 표시
My aim is to display “test display” only on homepage. 내 목표는 표시 "테스트 표시"홈페이지에만 게재합니다.
May 6th, 2008 22:19 2008년 5월 6일 22:19
Hi, 안녕,
I like to play with html, and location of adsense on my blogs. 나는 놀 html, 그리고 애드 센스를 내 블로그의 위치합니다. I chanced upon your post and implemented the code to appear on a single post. 나는 귀하의 게시물을 일시 및 구현시의 코드에 게재될 수있는 하나의 게시물합니다. 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를 시작하여 지금은 즐겨찾기에 게시, 나중에 참조할 수 있도록합니다. Great post. 좋은 게시물합니다.
May 30th, 2008 02:30 2008년 5월 30일 02:30
this is what i looking for. 이것은 무엇을 찾고 나는합니다. thanks for help. 도와 주셔서 감사합니다.
August 16th, 2008 23:54 2008년 8월 16일 23:54
Thanks a lot..this trick is very useful to me.. 감사합니다 ..이 마술은 매우 유용하게 내 마음에 ...