برگزیده های پرشین تولز

تگ های h1 & h2 و اندکی مشکل

behnam500

Registered User
تاریخ عضویت
14 آپریل 2012
نوشته‌ها
1,086
لایک‌ها
2,023
سلام دوستان . والا بنده وقتی یه جمله رو توی مطلب تگ h2 میکنم وقتی میره روی سایت در صورتی که این جمله مشابه تیتر مطلب باشه غیب میشه . طبیعیه ؟!


اما مشکل اصلی و دلیل اصلی زدن تاپیک : دوستان من میخوام تیتر مطالب رو به عنوان تگ h1 انتخاب کنم . میشه یکی از دوستان کد html مربوطش رو به بنده بده تا توی قالب بزارم ؟ توی single.php میزارنش یا style.css ؟ متشکر
 

shareads

Registered User
تاریخ عضویت
11 سپتامبر 2009
نوشته‌ها
685
لایک‌ها
494
توی single.php باید قرارش بدید.

<h1 class="test">TITLE</h1>
 

rezayar72

Registered User
تاریخ عضویت
29 دسامبر 2010
نوشته‌ها
178
لایک‌ها
60
سن
31
محل سکونت
تهران
کلا تعداد تگ های h1 نباید زیاد باشد نهایتاً یکی یا دو تا باشه که عنوان و تیتر سایت میذارنش
برای تیتر موضوع پست ها از تگ h2 استفاده میشه
که بستگی داره کجا بخای استفاده کنی اون تیتر موضوع پست رو
سایدبار ، داخل صفحه پست ، داخل ایندکس هرجا بخایی میشه استفاده کرد بستگی به قالبت داره
 

behnam500

Registered User
تاریخ عضویت
14 آپریل 2012
نوشته‌ها
1,086
لایک‌ها
2,023
تشکر . فقط چرا وقتی تیتر رو توی مطلب هم میزارم و تگ h2 میکنم بعد از انتشار محو میشه ؟ کلا تگ دیده نمیشه ؟ تا اونجایی که میدونم باید دیده بشه ! یا بهتره دیده بشه !
 

rezayar72

Registered User
تاریخ عضویت
29 دسامبر 2010
نوشته‌ها
178
لایک‌ها
60
سن
31
محل سکونت
تهران
تشکر . فقط چرا وقتی تیتر رو توی مطلب هم میزارم و تگ h2 میکنم بعد از انتشار محو میشه ؟ کلا تگ دیده نمیشه ؟ تا اونجایی که میدونم باید دیده بشه ! یا بهتره دیده بشه !
خود ب خود که محو نمیشه کد هاتونو بفرستید
 

behnam500

Registered User
تاریخ عضویت
14 آپریل 2012
نوشته‌ها
1,086
لایک‌ها
2,023
خود ب خود که محو نمیشه کد هاتونو بفرستید

/*
Theme Name: Silversar
Description:New theme , Tafrihi , download
Version: 1.0.0
Author: WPDesign
Author URI: http://wpdesign.ir
*/

body {
background : url(images/bg.jpg) repeat-x #e7e9e7;
font : 11px tahoma;
margin : 0;
padding : 0;
direction : rtl;
}
img {
border : none;
}
font {
margin : 0;
padding : 0;
border : 0;
outline : 0;
font-size : 100%;
background : transparent;
}
a:link, a:active, a:focus, a:visited {
color : #1f1f1f;
text-decoration : none;
}
a:hover {
color : #ff0000;
text-shadow : #fff 1px 1px 0;
text-decoration : none;
}
input, select, table, button {
font : 11px tahoma;
}
textarea {
border : 1px solid #ebebeb;
background-color : #fff;
font : 11px tahoma;
color : #000;
}
input {
border : 1px solid #ebebeb;
color : #000;
background-color : #fff;
}
#h {
display : inline;
}
h1 {
font-size : 16px;
}
h2 {
display : none;
width : 1px;
height : 1px;
}
h3 {
font-size : 14px;
}
h4 {
font-size : 13px;
}
h5 {
font-size : 12px;
}
h6 {
font-size : 11px;
}
.hide {
display : none;
}
#mbody {
background : url(images/header.jpg) center top no-repeat transparent;
height : 205px;
}
#content {
height : auto;
width : 958px;
overflow : hidden !important ;
overflow : visible;
margin : 0 auto 10px auto;
}
.top_ads {
width:477px;
float:left;
margin : 10px 0 34px 7px;
height:124px;
}
.top_ads img{
margin:15px 0 0 0;
}
#content-side {
background-color : #f6f6f6;
height : 100%;
width : 958px;
border-radius:5px;
-webkit-border-radius:5px;
-moz-border-radius:5px;
overflow : hidden !important ;
overflow : visible;
}
.nav-c115 {
list-style : none;
text-align : right;
line-height : normal;
float : left;
width : 958px;
height : 53px;
padding : 2px 0 0 0;
margin : 0;
background-image : url(images/nav.png);
}
#menur {
list-style : none;
float : right;
margin : 0;
text-align : right;
}
#menul {
list-style : none;
float : left;
margin : 0;
text-align : right;
}
#menu ul {
list-style : none;
font-size : 8pt;
line-height : normal;
padding : 0 15px 0 15px;
}
#menu ul li {
display : inline;
margin : 0;
padding : 0;
}
#menu ul a {
float : right;
background : url('images/nav-left.png') no-repeat left top;
margin : 0;
padding : 0 0 0 7px;
text-decoration : none;
cursor : pointer;
}
#menu ul a span {
float : left;
display : block;
background : url('images/nav-right.png') no-repeat right top;
color : #1f1f1f;
margin: 0px;
padding-top: 3px;
padding-right: 14px;
padding-bottom: 7px;
padding-left: 5px;
text-shadow : 1px 1px 0px #fcfdce;
}
#menu ul a:hover span {
color : #FFF;
text-shadow : 1px 1px 0px #000;
background-position : 100% -43px;
}
#menu ul a:hover {
background-position : 0% -43px;
}
#menu ul a:hover span {
background-position : 100% -43px;
}
#rightcol {
height : auto;
width : 154px;
float : right;
margin : 5px;
color : #060;
text-align : right;
}
#rightcol-up {
background : url(images/rightcol-up.gif) no-repeat;
height : 35px;
width : 154px;
}
#rightcol-uptext {
float : right;
color : #1e1e1e;
padding : 8px 10px 0 0;
}
#rightcol-uptext-en {
float : left;
color : #f1f1f1;
text-align : left;
padding : 8px 9px 9px 10px;
}
#rightcol-body {
height : auto;
text-align : right;
width : 154px;
color : #777777;
background-color : #efefef;
}
#rightcol-btext {
padding : 2px 12px;
text-align : right;
}
#rightcol-btext li {
list-style : none;
padding : 0 12px 0 0;
font-weight : bold;
text-shadow : #fff 1px 1px 0;
}
#rightcol-btext ul li {
font-weight : normal;
list-style : none;
padding : 0 10px 0 0;
text-shadow : #fff 0 0 0;
}
#rightcol ul {
list-style-type : none;
margin : 0;
padding : 0;
}
#rightcol li ul {
display : block;
list-style-type : none;
}
#rightcol ul li {
display : block;
background : url(images/arrow.gif) right 5px no-repeat;
padding : 0 8px 0 0;
}
#rightcol li {
padding : 0 8px 0 0;
display : block;
background : url(images/arrow.gif) right 5px no-repeat;
}
#rightcol ul li ul li {
background : url(images/point.gif) right 5px no-repeat;
padding : 0 10px 0 0;
margin : 0 10px 0 0;
font-weight : 100;
}
#rightcol a {
color : #1e1e1e;
text-decoration : none;
}
#rightcol a:hover {
text-shadow : #fff 1px 1px 0;
text-decoration : none;
}
#rightcol-down {
background-color : #efefef;
border-radius : 0 0 5px 5px ;
-webkit-border-radius : 0 0 5px 5px ;
-moz-border-radius : 0 0 5px 5px ;
margin-bottom : 5px;
height : 8px;
width : 154px;
}
.news {
width:508px;
background:#fcf5d9;
border:1px #ffcc00 solid;
border-radius:7px 7px 7px 7px;
-webkit-border-radius:7px 7px 7px 7px;
-moz-border-radius:7px 7px 7px 7px;
margin:0px 3px 5px 0px;
padding:5px 8px 5px 0px;
text-align:right;
direction:rtl;
}
#centercol {
height : auto;
width : 510px !important ;
width : 510px;
float : right;
margin : 5px 2px 5px 3px!important ;
margin : 5px 2px 5px 3px;
color : #1e1e1e;
}
#centercol a {
color : #1e1e1e;
text-decoration : none;
}
#centercol a:hover {
color : #ff0000;
text-shadow : #fff 1px 1px 0;
text-decoration : none;
}
#leftcol {
text-align : right;
height : auto;
width : 258px;
float : left;
margin : 5px;
color : #060;
}
#leftcol-up {
background : url(images/leftcol-up.gif) no-repeat;
height : 35px;
width : 258px;
}
#leftcol-uptext {
float : right;
color : #1e1e1e;
padding : 8px 10px 0 0;
}
#leftcol-uptext-en {
float : left;
color : #f1f1f1;
text-align : left;
padding : 8px 9px 9px 10px;
}
#leftcol-body {
height : auto;
text-align : right;
width : 258px;
color : #777777;
background-color : #efefef;
}
#leftcol-btext {
text-align : right;
padding : 5px;
}
#leftcol-bttext {
text-align : right;
padding : 5px;
}
#leftcol ul {
list-style-type : none;
margin : 0;
padding : 0;
}
#leftcol li ul {
display : block;
list-style-type : none;
}
#leftcol ul li {
display : block;
background : url(images/arrow.gif) right 5px no-repeat;
padding : 0 8px 0 0;
}
#leftcol li {
padding : 0 8px 0 0;
display : block;
background : url(images/arrow.gif) right 5px no-repeat;
}
#leftcol ul li ul li {
background : url(images/point.gif) right 5px no-repeat;
padding : 0 10px 0 0;
margin : 0 10px 0 0;
font-weight : 100;
}
#leftcol a {
color : #1e1e1e;
text-decoration : none;
}
#leftcol a:hover {
text-shadow : #fff 1px 1px 0;
text-decoration : none;
}
#leftcol-down {
background-color : #efefef;
border-radius : 0 0 5px 5px ;
-webkit-border-radius : 0 0 5px 5px ;
-moz-border-radius : 0 0 5px 5px ;
margin-bottom : 5px;
height : 8px;
width : 258px;
}
.textads1 {
display : table;
background : #9ebb43;
width : 254px;
height : auto;
padding : 2px;
margin-bottom : 5px;
text-align : right;
color : #0f0f0f;
border-radius:5px;
-webkit-border-radius:5px;
-moz-border-radius:5px;
}
.textads2 {
display : table;
background : #cad79f;
width : 254px;
height : auto;
padding : 2px;
margin-bottom : 5px;
text-align : right;
color : #0f0f0f;
border-radius:5px;
-webkit-border-radius:5px;
-moz-border-radius:5px;
}
.left {
text-align : left;
float : left;
margin : 3px;
}
.post {
height : auto;
width : 522px;
display : table;
}
.post-top {
background : url(images/post-top.png) no-repeat;
height : 28px;
color : #676767;
padding : 12px 10px 0 0;
}
.post-bg {
background : url(images/post-bg.png) repeat-y;
height : auto;
padding-bottom : 10px;
padding-top : 1px;
margin-top : 0;
}
.post-det {
width : 500px;
height : auto;
float : left;
margin-top : 5px;
margin-left : 14px;
margin-bottom : 10px;
text-align : left;
display : block;
}
.post-entry {
width : 490px;
padding-top : 5px;
margin : 0 14px 0 14px;
line-height : normal;
}
.post-entry img {
max-width: 495px;
}
.download{
background: url("images/icon-download.png") no-repeat right 3px transparent;
padding: 3px 20px 3px 0;
}
.password{
background: url("images/icon-password.png") no-repeat right 3px transparent;
padding: 3px 20px 3px 0;
}
.size{
background: url("images/icon-size.png") no-repeat right 3px transparent;
padding: 3px 20px 3px 0;
}
.post-tag {
width:493px;
border-top:1px dotted #1f1f1f ;
margin-top:10px;
padding-top:5px;
text-align:right;
direction:rtl;
}
.other-post {
width:480px;
background:#c3d0ff;
border-top:1px dotted #0036ff ;
border-radius:5px;
-webkit-border-radius:5px;
-moz-border-radius:5px;
padding:5px;
text-align:right;
direction:rtl;
}
.other-post li {
padding : 0 8px 0 0;
display : block;
background : url(images/arrow.gif) right 5px no-repeat;
}
.other-post ul {
list-style-type : none;
margin : 0;
padding : 0;
}
.post-bot {
background : url(images/post-bot.png) no-repeat;
height : 28px;
padding : 12px 0 0 10px;
margin-bottom : 2px;
text-align : left;
}
.shop-bot {
background : url(images/shop-bott.png) no-repeat;
height : 17px;
margin-bottom : 2px;
text-align : left;
}
.page-center {
display : block;
width : 520px;
height : auto;
padding : 2px 0 2px 0;
}
.footer {
float : right;
width : 958px;
padding-top : 17px;
background-image : url(images/footer.jpg);
height : 41px;
}
.footer-text {
width : 940px;
float :right;
line-height:18px ;
text-shadow:1px 1px 0px #fff ;
padding:0 10px 0 0;
color:#2a2a2a;
}
.footer-text span {
color:#2a2a2a;
}
.footer-text a {
color:#eb0106;
}
.wp-pagenavi {
clear: both;
padding:0px 5px 0 5px;
direction:rtl
}
.wp-pagenavi h3 {
font-weight:normal
}
.wp-pagenavi a, .wp-pagenavi span {
text-decoration: none;
background:#e6eef0;
padding: 5px;
float :right;
margin: 2px;
border-radius:20px;
-webkit-border-radius:20px;
-moz-border-radius:20px;
}
.wp-pagenavi span.current {
background:#ffffff;
color:#666666;
}
.wp-pagenavi a:hover {
background:#b9dde6;
border-color: #4c4c4c;
color:#ffffff
}
.wp-pagenavi span.current {
font-weight: bold;
}
.comments-template {
width : 500px;
height : auto;
margin : 0 5px 0 0;
display : table;
padding-right : 5px;
padding-left : 0;
font-family : Tahoma, Geneva, sans-serif;
float : left;
}
#commentform input{
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
background:none repeat scroll 0 0 #fff;
border:1px solid #C5C0B0;
color:#3F3F3F;
font-family:Tahoma;
font-size:12px;
margin-right:15px;
padding:5px;
width:250px;
}
#commentform small{
font-size:12px;
padding-right:10px;
}
ol.commentlist{
list-style:none;
margin:0;
padding:0;
text-indent:0;
}
ol.commentlist li{
-moz-border-radius:8px;
-webkit-border-radius:8px;
border-radius:8px;
border:3px solid #2F2F2F;
margin:0 0 10px;
padding:5px 57px 5px 7px;
position:relative;
background:#141616;
}
ol.commentlist li div.comment-author{
padding:0 170px 0 0;
}
ol.commentlist li div.vcard{
font:bold 16px times New Roman;
padding:5px 0;
}
ol.commentlist li div.vcard cite.fn{
font-style:normal;
}
ol.commentlist li div.vcard cite.fn a.url{
color:#18BFF6;
text-decoration:none;
}
ol.commentlist li div.vcard cite.fn a.url:hover{
color:#000;
}
div.vcard img.avatar{
border:5px solid #ddd;
right:7px;
position:absolute;
top:7px;
}
ol.commentlist li div.comment-meta{
font:11px Tahoma, helvetica,arial,sans-serif;
right:20px;
text-align:right;
}
ol.commentlist li div.comment-meta a{
color:#0083DB;
text-decoration:none;
}
ol.commentlist li div.comment-meta a:hover{
color:#D66901;
}
ol.commentlist li p{
color:#3F3F3F;
font:12px/18px Tahoma,helvetica,arial,sans-serif;
margin:10px 0 1em;
}
ol.commentlist li p a{
color:#0083DB;
}
ol.commentlist li p a:hover{
color:#D66901;
}
ol.commentlist li ul{
font:normal 12px/1.4 helvetica,arial,sans-serif;
list-style:square;
margin:0 0 1em;
padding:0;
text-indent:0;
}
#cancel-comment-reply{
padding:10px 0 0;
}
#cancel-comment-reply-link{
color:#fff;
font-size:10px;
line-height:15px;
font-family:Tahoma, Georgia,arial,sans-serif;
padding:4px 10px;
margin:0 0 0 12px;
background:#8B979F;
border:2px solid #666;
}
ol.commentlist li div.reply{
background:#269BCF;
border:1px solid #0a7caf;
color:#fff;
font:bold 9px/1 Tahoma, Georgia,arial,sans-serif;
padding:5px 10px;
text-align:center;
width:50px;
}
ol.commentlist li ul.children{
list-style:none;
margin:1em 0 0;
text-indent:0;
}
ol.commentlist li ul.children li.depth-2{
margin:0 0 .25em;
}
ol.commentlist li ul.children li.depth-3{
margin:0 0 .25em;
}
ol.commentlist li ul.children li.depth-4{
margin:0 0 .25em;
}
ol.commentlist li.even{
background:none repeat scroll 0 0 #EFEFEF;
border:1px solid #CFCFCF;
}
#commentform p{
margin-bottom:5px;
font-size:12px;
line-height:18px;
}
ol.commentlist li.odd{
background:none repeat scroll 0 0 #f6f6f6;
border:1px solid #CFCFCF;
}
ol.commentlist li.pingback div.vcard{
padding:0 170px 0 0;
}
.comments input#submit{
background:none repeat scroll 0 0 #C5C0B0;
border:1px solid #59554A;
color:#000;
font-family:tahoma,Century gothic,Arial,Helvetica,sans-serif;
line-height:25px;
padding:3px 5px;
width:auto;
}
#commentform textarea{
-moz-border-radius-bottomleft:5px;
-moz-border-radius-bottomright:5px;
-moz-border-radius-topleft:5px;
-moz-border-radius-topright:5px;
background:none repeat scroll 0 0 #f6f6f6;
border:1px solid #a4a4a4;
color:#3F3F3F;
font-size:13px;
width:500px;
}
 

rezayar72

Registered User
تاریخ عضویت
29 دسامبر 2010
نوشته‌ها
178
لایک‌ها
60
سن
31
محل سکونت
تهران
عزیز خب اینو پیداش کن
کد:
h2 {
display : none;
width : 1px;
height : 1px;
}
و display : none; رو پاک کن
 

majid0261

Registered User
تاریخ عضویت
28 دسامبر 2012
نوشته‌ها
1,331
لایک‌ها
371
ادرس وب تون را بدين تا استايل صحيح را خدمتتون بدم
 
بالا