مشکل با افزونه wp page navi

amin704

کاربر عضو
درود

دوستان من این افزونرو نصب کردم ولی حالا یه مشکل دارم و فکر کنم به خاطر فارسی بودنشه ........ اون شماره ها اینطوری نشون داده شدن.......

88653207448309917504.jpg


چطوری میتونم درستش کنم و همچنین کاری کنم بیاد وسط صفحه؟؟

 

HamedR

کاربر عضو
( فکر کنم باید یه فایل pagenavi.css) داشته باشین.

از طریق ویرایش استایل ....

اگه مشکل نوشتاری باشیه :


کد:
text-align:right;
اگه مشکل مربوط به چپ چین بودنـه:


کد:
direction:rtl;
از طریق float هم میتونین شناورش کنین.

 

amin704

کاربر عضو
اون مشکلو با کمک یک نفر حل کردم، فلوت دادم.......... حالا میخوام که این شماره صفحه ها بیاد وسط صفحه، الان گوشه سمت راسته........

در ضمن راهی نیست که اصلا اینو انگلیسیش کرد؟؟ چون الان فارسیه.......

 

Mohammad

مدیر انجمن
پرسنل مدیریت
نه بر اساس زبان وردپرس تعیین میشه

ادرس سایتی که نصب کردی رو بده تا بهتر کمک کنیم...

 

harbiline

Edris
افزونه page navi به تازگی ها مشکلاتی پیش آورده که

متاسفانه خوشایند کسی نیستش..

این رو تست کنید

برای نمایش شماره صفحه ابتدا کد زیر را در functions.php قالب خود قرار دهید :


کد:
<!--?php function wp_corenavi() {   global $wp_query, $wp_rewrite;   $pages = '';   $max = $wp_query--->max_num_pages;
  if (!$current = get_query_var('paged')) $current = 1;
  $a['base'] = str_replace(999999999, '%#%', get_pagenum_link(999999999));
  $a['total'] = $max;
  $a['current'] = $current;

  $total = 1; //1 - display the text "Page N of N", 0 - not display
  $a['mid_size'] = 5; //how many links to show on the left and right of the current
  $a['end_size'] = 1; //how many links to show in the beginning and end
  $a['prev_text'] = '« Previous'; //text of the "Previous page" link
  $a['next_text'] = 'Next »'; //text of the "Next page" link

  if ($max > 1) echo '</pre>
<div class="navigation">';
 if ($total == 1 && $max > 1) $pages = '<span class="pages">Page ' . $current . ' of ' . $max . '</span>'."\r\n";
 echo $pages . paginate_links($a);
 if ($max > 1) echo '</div>
<pre>
';
}
?>
و سپس کد زیر را در هرجای قالب که میخواهید شماره صفحات نمایش داده شود قرار دهید :


کد:
<!--?php if (function_exists('wp_corenavi')) wp_corenavi(); ?-->
 

amin704

کاربر عضو
اقا من اینو گذاشتم ولی به مشکل خورد و کل استایلمو به هم ریخت

 

amin704

کاربر عضو
سلام

چیکار کنم اون دو تا فلش هر کدوم برن بعد از عدد ها ، یعنی برن بعد از 1 و 8

53810643993775767574.jpg



 

Mohammad

مدیر انجمن
پرسنل مدیریت
ادرس وب سایتتون رو قرار بدید. مشکلی در direction استایل وجود داره... که باعث میشه راست به چپ نمایش داده بشه

 

amin704

کاربر عضو
ادرس وب سایتتون رو قرار بدید. مشکلی در direction استایل وجود داره... که باعث میشه راست به چپ نمایش داده بشه
دارم رو لوکال تست میکنم

دایرکشن هم rtl هستش در قسمت wraper

فایل استایلو میزارم


کد:
 {
	border: 0px;
	padding: 0px;
	margin: 0px;
}


body {
	color : #252525 ; 	margin : 0 ; 	padding : 0 0 ; 	text-align:center;
	font :0px/0px tahoma,arial,sans-serif
}


html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, font, img, ins, kbd, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td {
	padding: 0px;
	margin: 0px; 
}

a {
	text-decoration : none ; 	color:#484848}

a:hover {
	text-decoration : none ; 	color:black}


ul {
	border: 0px; 	padding: 10px; 	margin: 0px;
	list-style: none ;
}

li {
	border: 0px; 	padding-top: 0px; 	margin: 0px;
	list-style: none ;
}


address, caption, cite, code, dfn, em , th, var {
	border: 0px;
	padding: 0px; 	margin: 0px; 
	outline: 0 
}


img {
	border: 0px; 
}



input {
	font-family:tahoma;
	border-right: #EAE6E3 1px solid;
	border-top: #EAE6E3 1px solid;
	background: #fff;
	border-left: #EAE6E3 1px solid;
	border-bottom: #EAE6E3 1px solid ;
}



textarea , fieldset {
	padding: 0px;
	font-family: Tahoma ;
	border-right: #EAE6E3 1px solid;
	border-top: #EAE6E3 1px solid;
	background: #fff;
	border-left: #EAE6E3 1px solid;
	border-bottom: #EAE6E3 1px solid ;
}


h1 {
	font: bold 1.7em/1.6 Arial, tahoma, sans-serif;
}
h2 {
	font: bold 1.5em/1.6 Arial, tahoma, sans-serif;
}
h3 {
	font: bold 1.4em/1.6 Arial, tahoma, sans-serif;
}

h4 {
	font: bold 1.2em/1.6 Arial, tahoma, sans-serif;
}



blockquote{	margin:6px;	padding:8px 20px 8px 20px;	background: #e6e6e6;	border:1px #cac1ae dashed;	border-radius: 5px;	-webkit-border-radius: 5px;	font-size:12px;}




#wrapper {
	background: #fff repeat-y scroll center top;
	direction: rtl ;
	margin: 0px auto 0px ;
	padding: 0 ;
	position: relative ;
	width: 1000px ;
	text-align: right;
	font :11px/1.9 tahoma,sans-serif }


.header {
	background :transparent url(images/header.jpg) no-repeat scroll center top;
	height:159px;
	margin:0px auto 0px ;
	padding:0 ;
	position:relative ;
	width:988px;
}



.header h1 {
	height:125px;
	top:20px ;
	right:335px ;
	background:none;
	padding:0 ;
	position:absolute;
	width:285px;
}



.header h1 a {
	height:125px;
	width:285px;
}



.header h1 a span {
	display:none;
	height:125px;
	width:285px;
}





.content {
	background: #fff;
	margin : 0px 0px
}



#nav{
	background : #131313;
	height : 50px ;
	margin:0px auto 0px ;
	padding:0 ;
	position:relative ;
	width:988px;
}



#nav ul {
	padding-right: 25px;
	padding-left: 5px;
	padding-bottom: 0px;
	margin: 0px;
	padding-top: 0px;
	list-style: none
}


#nav ul li {
	float: right
}


#nav ul li a {
	padding-right: 0px;
	display: block;
	padding-left: 5px;
	padding-bottom: 5px;
	margin: 5px 3px 0px;
	font:bold 15px/28px arial;
	color: #757575;
	padding-top: 0px;
	text-align: center;
}


#nav ul li a span {
	display: block;
	padding-right: 10px;
	padding-left: 5px;
	padding-bottom: 4px;
	padding-top: 5px
}



#nav ul li a:hover {
	color: yellow;	background: #131313 no-repeat left top ;
	border: 1px solid #131313;	box-shadow: 0px 0px 5px #131313; 	font:bold 15px/28px arial;
}



#nav ul li A:hover span {
	background: #131313 no-repeat right top; 	color: yellow;	border: 1px solid #131313;	box-shadow: 0px 0px 5px #131313;}




.search {
	width: 220px ;
	height: 25px ;
	margin-top: 7px ;
	margin-left: 30px ;
	margin-bottom: 7px;	float: left
}



.search-box {	direction: rtl;		background: #222;	background: -webkit-linear-gradient(#333, #222);		background: -moz-linear-gradient(#333, #222);		background: -o-linear-gradient(#333, #222);		background: -ms-linear-gradient(#333, #222);		background: linear-gradient(#333, #222);		border: 1px solid #444;	border-radius: 0 5px 5px 0;	box-shadow: 0 0 0 #000;	color: #888;	display: block;	float: right;	font-family: 'Cabin', helvetica, arial, sans-serif;	font-size: 13px;	font-weight: 400;	height: 35px;	margin: 0;	padding: 0 10px;	text-shadow: 0 -1px 0 #000;	width: 140px;}


.search-box::-webkit-input-placeholder {   color: #888;}



.search-box:-moz-placeholder {   color: #888;}


.search-box:focus {	-webkit-animation: glow 800ms ease-out infinite alternate;	-moz-animation: glow 800ms ease-out infinite alternate;	-o-animation: glow 800ms ease-out infinite alternate;	-ms-animation: glow 800ms ease-out infinite alternate;	animation: glow 800ms ease-out infinite alternate;	background: #222922;	background: -webkit-linear-gradient(#333933, #222922);	background: -moz-linear-gradient(#333933, #222922);	background: -o-linear-gradient(#333933, #222922);	background: -ms-linear-gradient(#333933, #222922);	background: linear-gradient(#333933, #222922);	border-color: #393;	box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1), 0 2px 0 #000;	color: #efe;	outline: none;}

.search-box:focus::-webkit-input-placeholder { 	color: #efe;}

.search-box:focus:-moz-placeholder {	color: #efe;}




.search-button {	text-align: center;	background: #222;	background: -webkit-linear-gradient(#333, #222);	background: -moz-linear-gradient(#333, #222);	background: -o-linear-gradient(#333, #222);	background: -ms-linear-gradient(#333, #222);	background: linear-gradient(#333, #222);	-webkit-box-sizing: content-box;	-moz-box-sizing: content-box;	-o-box-sizing: content-box;	-ms-box-sizing: content-box;	box-sizing: content-box;	border: 1px solid #444;	border-radius: 5px 0 0 5px;	box-shadow: 0 0 0 #000;	color: #fff;	display: block;	float: right;	font-family: 'Cabin', helvetica, arial, sans-serif;	font-size: 13px;	font-weight: 400;	padding:0;	line-height: 35px;	margin-right:5px;
	position: relative;	text-shadow: 0 -1px 0 #000;	height: 35px;	width: 54px;	cursor: pointer;}

.search-button:hover,.search-button:focus {	background: #292929;	background: -webkit-linear-gradient(#393939, #292929);		background: -moz-linear-gradient(#393939, #292929);		background: -o-linear-gradient(#393939, #292929);		background: -ms-linear-gradient(#393939, #292929);		background: linear-gradient(#393939, #292929);	color: #5f5;	outline: none;}

.search-button:active {	background: #292929;	background: -webkit-linear-gradient(#393939, #292929);	background: -moz-linear-gradient(#393939, #292929);	background: -o-linear-gradient(#393939, #292929);	background: -ms-linear-gradient(#393939, #292929);	background: linear-gradient(#393939, #292929);	box-shadow: 0 1px 0 #000, inset 1px 0 1px #222;	top: 1px;}


@-webkit-keyframes glow {    0% {		border-color: #393;		box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1), 0 2px 0 #000;    }	    100% {		border-color: #6f6;		box-shadow: 0 0 20px rgba(0,255,0,.6), inset 0 0 10px rgba(0,255,0,.4), 0 2px 0 #000;    }}
@-moz-keyframes glow {    0% {		border-color: #393;		box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1), 0 2px 0 #000;    }	    100% {		border-color: #6f6;		box-shadow: 0 0 20px rgba(0,255,0,.6), inset 0 0 10px rgba(0,255,0,.4), 0 2px 0 #000;    }}
@-o-keyframes glow {    0% {		border-color: #393;		box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1), 0 2px 0 #000;    }	    100% {		border-color: #6f6;		box-shadow: 0 0 20px rgba(0,255,0,.6), inset 0 0 10px rgba(0,255,0,.4), 0 2px 0 #000;    }}
@-ms-keyframes glow {    0% {		border-color: #393;		box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1), 0 2px 0 #000;    }	    100% {		border-color: #6f6;		box-shadow: 0 0 20px rgba(0,255,0,.6), inset 0 0 10px rgba(0,255,0,.4), 0 2px 0 #000;    }}
@keyframes glow {    0% {		border-color: #393;		box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1), 0 2px 0 #000;    }	    100% {		border-color: #6f6;		box-shadow: 0 0 20px rgba(0,255,0,.6), inset 0 0 10px rgba(0,255,0,.4), 0 2px 0 #000;    }}




#page-content {
	margin: 0px 0px 0px;
	padding:0px 0px;
	text-align: right
}



.two-box-warpper {
	background: #ffffff;
	float: right;
	width: 728px}



#page-body {
	background: #ffffff;
	float: left;
	margin: 5px 0px 5px 0px;
	width: 510px
}



.page-body {
	background: #ffffff;
	clear: both;
	padding-right: 0px;
	padding-left: 0px;
	padding-bottom: 0px;
	margin: 0px 0px 10px;
	padding-top: 0px
}




.post {	border: 1px solid gray;	box-shadow: 0px 0px 10px 565656 ;	background: url('');	margin : 10px 0px 20px 0px ;
	width : 562px;	
}

.post #content {
	padding: 0px 15px 30px 15px;	}

.post #post-title {
	background: url('images/post_title.gif') no-repeat ;	}


.post #post-title h1 {
	padding : 22px 50px 0px 0px;
	font: bold 1.4em/1.6 Arial, tahoma, sans-serif;
}



.post #post-info {
	border-top: 1px solid c6c6c6 ;	border-bottom: 1px solid c6c6c6;
	-moz-box-shadow: 4px 5px 5px 5px c6c6c6;	color:black;
	margin: 5px auto 20px auto;

	width:94%}



.post #post-info:hover {
	color:#000000;
}



.post #post-info ul {
	margin:0px;
	padding: 0px;}



.post #post-info ul a{
	padding:2px 4px
}



.post #post-info ul a:hover {
	color:#fff;
	background:#000000;
	-moz-border-radius:3px
}


.post #post-info ul li {
	display: block;
	margin:5px 5px;
	float: right
}



.post #post-info ul .categry{
	padding-right: 20px;
	padding-left: 0px;
	background: url(images/category.png) no-repeat right 0px;
	padding-bottom: 0px;
	padding-top: 0px
}


.post #post-info ul .view {
	padding-right: 22px;
	padding-left: 0px;
	background: url(images/view.gif) no-repeat right 0px;
	padding-bottom: 0px;
	padding-top: 0px
}



.post #post-info ul .date {
	padding-right: 24px;
	padding-left: 0px;
	background: url(images/date.gif) no-repeat right 0px;
	padding-bottom: 0px;
	padding-top: 0px
}



.line {		border-bottom:1px black solid;	width:94%;	margin:auto;}

.post #tags-post {
	padding:  6px 20px 0px 20px;	}



.paginate {
	width : 500px ;
	margin : 8px 0px 0px 0px
}



#paginate {
	padding : 0px 10px 0px 5px
}



.paginate-title {
	background : url('images/paginate_title.gif') no-repeat ;
	width : 500px ;
	height : 40px
}



.paginate-content {
	border : 2px solid #EBEDED ;
	border-width : 0px 2px 0px 2px ;
	margin : 0px 1px 0 0 
}



.paginate-footer {
	width : 500px ;
	background: url('images/comment_footer.gif') no-repeat ;
	height : 18px 
}



#sidebar-right {
	background: #fff ;
	float: right ;
	width: 210px ;
	margin: 5px 0px 0px 0px ;
}



.sidebar-right {
	margin: 0px 0 0 0 
}




#sidebar-left {
	background: #fff;
	float: left;
	width: 210px;
	margin : 5px 0 0 0px }



.sidebar-left {		margin: 0px
}




.sidebar-box {
	background: white;
	border: 1px solid #131313;	margin: 0px 0px 20px;	border-radius:7px 7px 0px 0px;	-moz-border-radius:10px;	box-shadow: 0px 0px 5px 0px gray ;}


.sidebar-box ul {	}


.sidebar-box h3 {
	height: 55px
}



.sidebar-box h3 span {
	display: none
}



.sidebar-box-content {
	}




.sidebar-box ul {
	padding-right: 5px;
	padding-left: 5px;
	padding-bottom: 0px;
	padding-top: 15px	margin: 0px;}



.sidebar-box ul li {
	padding-right: 12px;
	padding-left: 5px;
	background: url(images/arrow_mini_left.gif) no-repeat right 8px;
	padding-bottom: 0px;
	padding-top: 0px}


.sidebar-box-footer {
	clear: both;
	background: url('') no-repeat ;
	height: 20px;
	width: 220px}




.sidebar-right .category h3 {
	color: white;	text-align:center;	height: 30px ;
	background: #131313;	padding-top:10px;	border-radius:7px 7px 0px 0px;	-moz-border-radius:10px;}



.sidebar-right .category ul {
	padding-right: 10px;
	padding-left: 10px;
	padding-bottom: 0px;
	margin: 0px;
	padding-top: 15px}


.sidebar-right .category ul li {
	color:#000 ;
	padding-right: 12px;
	padding-left: 0px;
	background: url(images/tick.gif) no-repeat right 5px;
	padding-bottom: 0px;
	padding-top: 0px}



.sidebar-right .category ul li ul {
	margin: 0px 0px 0px 0px}




.sidebar-right .category ul li ul li {
	padding-right: 10px;
	padding-left: 0px;
	background: url(images/arrow_mini_left.gif) no-repeat right 7px;
	padding-bottom: 0px;
	padding-top: 0px}







.sidebar-right .monthly-archive h3 {
	text-align:center;	height: 30px ;
	color: white;	background: #131313;	padding-top:10px;	border-radius:7px 7px 0px 0px;	-moz-border-radius:10px;}






.sidebar-left .poll h3 {
	text-align:center;	height: 30px ;
	color: white;	background: #131313;	padding-top:10px;	border-radius:7px 7px 0px 0px;	-moz-border-radius:10px;}


.sidebar-left .pre-posts h3 {
	text-align:center;	height: 30px ;
	color: white;	background: #131313;	padding-top:10px;	border-radius:7px 7px 0px 0px;	-moz-border-radius:10px;}



.last-comment ul li {	margin-right: 5px;	margin-left: 5px;	padding-bottom:8px;}



.sidebar-left .top h3 {
	text-align:center;	height: 30px ;
	color: white;	background: #131313;	padding-top:10px;	border-radius:7px 7px 0px 0px;	-moz-border-radius:10px;}


.weekly-most ul li {	margin-right: 5px;	margin-left: 0px;	padding-bottom:0px;}


.clear {
	clear: both;
	font-size: 0px;	line-height: 0 ;
	height: 0px
}

.wp-pagenavi {    direction:ltr}

.cmt {	margin: 15px 0px 30px;	border: 1px solid gray;	border-radius:5px;	-moz-border-radius:5px;}

.comment-header {	overflow: hidden;	position: relative;	background: #737373;	border-radius: 5px 5px 0px 0px ;	color: white;	padding-top: 10px;	padding-bottom:5px;}


.comment-author {	padding: 8px 15px;	float:right;	position: relative;	bottom:8px;}


.comment-time {	float:left;	margin-left: 15px;	margin-top:10px;}


.comment-content {	padding: 10px 20px 10px 10px;	text-align:right;	position: relative;	overflow: hidden;}

.cmt-edit {	font-size:12px;}

.cmt-title {	font-weight:bold;	font-size: 14px;	margin-top: 50px;	margin-bottom: 10px;}

.respond {	font-weight:bold;	font-size: 15px;	margin-top:50px;	margin-bottom:10px;}

.cmt-textfield {	border: 1px solid gray;	margin-top: 10px;	margin-bottom:20px;	height:160px;	width:440px;	position:relative;	box-shadow: 0px 0px 1px 0px gray;	padding: 8px;}


.cmt-textfield:focus {	outline: none;}


.cmt-info{	background: #dadada;	box-shadow: 0px 0px 5px #818181;	width: 200px;	height:30px;	margin-bottom: 10px;}

.cmt-info:focus {	outline: none;}

.comment-submit{	margin-bottom:10px;	height:29px;	width: 40px;	border:1px black solid;	text-align:center;	cursor:pointer;	font-family: Tahoma, arial, Geneva, sans-serif;	font-size:12px;}

.comment-submit:hover{	background:#000;	color:#FFF;}


.commentlist li {	position: relative;}


a.comment_quote_link {	position: absolute;	left: 20px;	bottom:10px;	z-index: 1;	color:black;	text-align:center;	background: #8e8e8e;	border:1px solid #8e8e8e;	border-radius:3px;	padding:0px 2px 0px 2px;	box-shadow: 1px 1px 2px 2px #595959;	cursor:pointer;	font-family: Tahoma, arial, Geneva, sans-serif;	font-size:14px;}

.admincomment {	background: #dadada ;}

.yjl-pager{	direction:ltr;}



.footer {
	border:1px solid gray;	width:1000px;	background: #bdbdbd;
	padding: 20px 0 20px 0;	margin-top:5px;	box-shadow:0px 0px 5px gray inset ;}



.wpcf7-validates-as-required {	background:#FFF;	border:solid #999 1px;	border-radius:2px;	-moz-border-radius:2px;	margin-top:7px;	margin-right:10px;	margin-bottom:15px;	box-shadow:0px 0px 5px #575857 inset ;	height:20px;}


.wpcf7-validates-as-required:focus {	outline: none;}


.wpcf7-text {	background:#FFF;	border:solid #999 1px;	border-radius:2px;	-moz-border-radius:2px;	margin-top:7px;	margin-right:10px;	margin-bottom:15px;	box-shadow:0px 0px 5px #575857 inset ;	height:20px;}



.wpcf7-text:focus {	outline: none;}

.wpcf7-textarea {	padding: 8px;	border:solid #999 1px;}


.wpcf7-submit {	margin:15px;	background: gray;	border:solid #999 1px;	border-radius: 3px;	padding:5px;	color: white;}


.wpcf7-submit:hover {	box-shadow:0px 0px 2px #575857;	cursor: pointer;}



#error {
	border:1px solid #FFA671 ;
	font-size:12px;
	padding:15px 15px;
	margin:5px 5px
}


#error h1 {
	border-bottom:1px dashed #ff6600
}
 

amin704

کاربر عضو
از افزونه



WP-Paginate استفاده کردم مشکلم حل شد







ممنون از کمکاتون در این مدت

اگه خواستید تایپکو ببندید


 

akbari

تازه وارد
من هم با page navi مشکل دارم کار نمکنه لینک سایت : raminnews.ir

 

Black_Sky

کاربر عضو
1-توابع زیر در پوسته هستند:

<?php wp_heade(); ?>

<?php wp_foot();?>

 
بالا