navigation problem
-
i have a problem with page navigation,results from “page 2” are same with results from homepage and so on ,please help .
My website is https://www.euhusky.com
-
Try deactivating the site navigation plugin and see if that resolves the problem.
not working,it not show me the “next post ” or “previous ” maybe css not contain navi code ….
this is template css
========================/*
Theme Name: Tribal
Theme URI:
Description:
Version: 1.0
Author:
Author URI:
*//* Reset & Common */
html,body,p,h1,h2,h3,h4,h5,h6,table,thead,tbody,tfoot,tr,th,td,pre,strong,font,b,fieldset,legend,ul,ol,li,form,label,input,textarea,select,option,iframe{border:0;font:normal 12px arial,sans-serif;margin:0;padding:0;text-align:left;}
table{width:100%}
table,thead,tbody,tfoot,tr,th,td{border-collapse:collapse;vertical-align:top}
ul,ol{list-style:none}
a{color: #FE80B9; text-decoration:none}
strong{font-weight: 700;}
img{border:1px solid #000;}
:focus{outline:0}
.clr{clear:both}
body { background:#999792 url(images/bgTop.jpg) 53% top no-repeat fixed; text-align: left;}/* Main Structure */
.out { }
/* .In { margin:0 auto; background:url(images/Floor.jpg) center bottom no-repeat; padding:0 0 0px; padding-bottom: 220px;} */
.main { width:960px; background:url(images/bgMain.png) left top no-repeat; margin:0 auto; }
.mainsub { width:960px; background:url(images/bgMainsub.png) left top no-repeat; margin:0 auto; }
#top { width:960px; }
#show { width:926px; height:306px; clear:both; position:relative; top:-25px; left:16px; }
/* Top Logo, Main Navigation, Search, RSS */
#top {width: 960px; position: relative;}
#top a#logo { float:left; width:304px; height:184px; position:relative; z-index:50; background:url(images/logo.png) left top no-repeat; overflow:hidden;}
#top #header_ad { float:left; width:304px; height:60px; position:absolute; z-index:151; margin-left: 470px; margin-top 8px; _margin-left:-180px;#margin-left:-180px; }
#top ul#mainNav { float:left; padding:100px 0 0; position:relative; left:-18px; z-index:6; width:355px; height:25px; line-height:24px; overflow:hidden; }
#top ul#mainNav li { float:left; display:inline; margin:0 10px 0 0; }
#top ul#mainNav li a { float:left; color:#fff; text-transform:uppercase; font:normal 13px tahoma, arial, sans-serif; }
#top form#mainSearch { float:right; padding:80px 0 0; }
#top form#mainSearch label { font:bold 13px arial, sans-serif; text-transform:uppercase; color:#fff; }
#top form#mainSearch input { width:170px; padding:2px; border:3px solid #333; margin:0 5px; height:16px; vertical-align:middle;background:#000; color:#cccccc; }
#top a.rss { float:right; clear:right; background:url(images/rss.png) left top no-repeat; width:36px; height:36px; text-indent:-9999px; display:inline; margin:76px 15px 0 0; }
#top #mainMenu { float:none; clear:both; position:absolute; left:285px; top:125px; color:#fff; width:650px; height:18px; line-height:18px; overflow:hidden; }
#top #mainMenu a { color:#fff; }
/* Show – Featured Post Image, Audio Player */
#show .featuredPost { float:left; width:500px; }
#show .aPlayer { float:right; width:411px; text-align:right;padding-left:10px; }
/* ———- Body – Contents, Blog Posts, Sidebar ———- */
#body #content { float:left; display:inline; width:600px; margin:0 0 0 11px; }
#body #sidebar { float:right; display:inline; width:321px; margin:0 18px 0 0; }
/* ———- Sidebar ———- */
#sidebar ul {text-align: left}
#sidebar, #sidebar li, #sidebar li a { color:#80C8FE;line-height: 20px; }#sidebar li.sidebarLi { background:url(images/sidebarTop.png) left top no-repeat; padding:8px 0 0; width:321px; }
#sidebar .sidebarLiContent { background:#000; width:291px; padding:20px 15px 0;}
#sidebar .sidebarLiBot { background:url(images/sidebarBot.png) left bottom no-repeat; height:55px; }
#sidebar .sidebarLiContent h2 { text-transform:uppercase; color:#fff; font:normal 20px tahoma, arial, sans-serif; padding:0 0 10px; }
.adSpacetop { padding:0 0 0px;background:url(images/sidebarTop.png) bottom center no-repeat;height:10px; }
.adSpacebot { background:url(images/sidebarBot.png) left bottom no-repeat; height:55px; }
.adSpace { padding:10px 0 0px;background:#000 ; }
.adSpace a { float:left; display:inline; width:125px; margin:10px 0 0 22px; }
#sidebar form #newsletter{height: 50px; background: #fff; text-align: left;}
#sidebar form {background: #000; padding: 0px 0px 8px 15px; text-align:left; }
#sidebar input[type=”text”]{height: 22px; border:1px #333 solid;width: 167px; font-size: 12px;background:#000 url(images/feedburner.png) no-repeat; padding-left: 33px; color:#cccccc; padding-top:8px;}
#sidebar input[type=”submit”]{height: 26px; background: #fff; border:3px #000 solid; position: absolute; margin-left:7px; width: 55px; }
#bannersSquare {margin: auto auto; text-align:center;}
.ad300x250 {margin: auto auto; text-align:center;}/* flickr Box */
.flickr{
text-align: center;
height:auto;
background:#000;
padding:0px 0px 0px 0px;
color:#660066;
list-style-type:none;
margin: 0px 0px 0px 0px;}
.flickr img{
border:2px solid #333;
padding:2px;
}.taghead{
font-size:16px;
font-weight:bold;
color:#fff;}
/* Post Block */#content .postMain { background:url(images/postTop.png) left top no-repeat; padding:9px 0 0; width:600px;}
#content .post { background:#fff; width:570px; padding:15px; color:#454545; float:left; }
#content .post h2 a { text-transform:uppercase; color:#000; font:bold 24px/30px arial, sans-serif; letter-spacing:-1px; }
#content .post h3 { font-size:10px; color:#275d07; padding:10px 0; text-align: left; }
#content .post .postMeta { background-color: #000;border-top: 1px solid #8A8782;border-bottom: 1px solid #8A8782;margin-bottom: 5px;padding-top: 5px;padding-right: 2px;padding-bottom: 5px;padding-left: 8px;color:#fff; text-align:left;clear: both; }
#content .postMain .post .postMeta { background-color: #000;border-top: 1px solid #8A8782;border-bottom: 1px solid #8A8782;margin-bottom: 5px;padding-top: 5px;padding-right: 2px;padding-bottom: 5px;padding-left: 8px;color:#fff; text-align:left;margin-top:10px; float:left; width:550px;}
#content .post .postMeta a { color:#CE2778;text-align: left; font: 12px/18px #fff; }
#content .post p { line-height:18px; padding:0 0 10px; clear: left; text-align: left; }
#content .postFoot { background:url(images/postBot.png) left top no-repeat; height:19px; text-align: left; }
/* Footer */
#footOut { background:url(images/fooTop.png) left top no-repeat; padding:10px 0 0 0; clear:both; width:960px; }
#footOut #footIn {background: #000; }
#footIn #foot { background:url(images/fooBot.png) left bottom no-repeat; color:#fff; width:960px; }
#foot .block { text-align: left;float:left; width:288px; padding:10px 15px; margin:0 0px 0 0;}
#foot .last { margin-right:0; }
#foot .block h3 { text-transform:uppercase; font-size:22px; letter-spacing:-1px; }
#foot p, #foot ul {margin-bottom: 20px;}
/* Single Post Page */
.single #body { min-height:500px; }
/* Comments */
.commentsMain { padding:0 0 20px; }
.commentsMain h3#comments , .commentsMain #respond h3 { font:bold 18px arial, sans-serif; color:#fff; padding:20px 0 10px; }
.commentsMain .commWrap { background:url(images/postTop.png) left top no-repeat; width:600px; padding:9px 0 0; }
.commentsMain ol.commentlist { background:#fff; padding:15px; }
.commentsMain ol.commentlist li { padding:5px; margin:0 0 5px; border:1px solid #ccc; }
.commentsMain ol.commentlist li li { margin:10px; }
.commentsMain .commFoot { background:url(images/postBot.png) left top no-repeat; height:19px; }
.commentsMain form#commentform p { padding:0 0 10px; }
.commentsMain form#commentform p input, .commentsMain form#commentform p textarea { padding:5px; border:1px solid #cccccc; }
.commentsMain form#commentform p input#submit { cursor:pointer; background:#333; font-weight:bold; color:#fff; }
.sIFR-hasFlash h1 {visibility:hidden;}
.sIFR-hasFlash h2 {visibility:hidden;}
.sIFR-hasFlash #mainNav a {visibility:hidden; height:28px; cursor: pointer; }
.sIFR-hasFlash h1 {visibility:hidden; height:40px; cursor: pointer; }.sIFR-hasFlash #commentshead {visibility:hidden; height:40px; cursor: pointer;}
.sIFR-hasFlash #fcgheading{visibility:hidden; height:40px; cursor: pointer;}.sIFR-root { cursor: pointer; }
.sIFR-flash { visibility:visible !important;}
.sIFR-replaced { visibility:visible !important;}span.sIFR-alternate{ position:absolute; left:0; top:0; width:0; height:0; display:block; overflow:hidden;letter-spacing:0;}
/* Begin Images */
p img {
padding: 0;
border:1px solid #ccc;
max-width: 100%;}
/* Using ‘class=”alignright”‘ on an image will (who would’ve
thought?!) align the image to the right. And using ‘class=”centered’,
will of course center the image. This is much better than using
align=”center”, being much more futureproof (and valid) */img.centered {
display: block;
margin-left: auto;
margin-right: auto;
}img.alignright {
padding: 4px;
margin: 0 0 2px 7px;
display: inline;
}img.alignleft {
padding: 4px;
margin: 0 7px 0px 0;
display: inline;
}.alignright {
float: right;
}.alignleft {
float: left
}
/* End Images */Please don’t post huge chunks of code here. For larger blocks of code, please consider using the WordPress pastebin. It makes life easier for everyone.
The navigation code isn’t in the CSS. It’s in your theme’s index.php template file.
look here https://wordpress.pastebin.ca/1461656 , navi is missing..
After
</div><div class="postFoot png"></div> <?php endwhile; ?>
add
<ul class="prevnext"> <li class="prev"><?php previous_posts_link('Newer Posts');?></li> <li class="next"><?php next_posts_link('Older Posts'); ?></li> </ul>
Then add the following to the bottom of your theme’s stylesheet:
.prevnext { margin:20px 0; padding:0; text-align:center; } .prevnext li { margin:0; padding:0 10px; display:inline; list-style-image:none; list-style:none; }
yea i have the same problem and i did every thing that you said but when i click on next page it loads the same page, how do i get it to go to the next page …plz help
Same problem, And tryed every thing that posted Esmi above. Any idea to solve this??
hi driera…
can you try this
<?php if (have_posts()) : ?>
<?php query_posts(“category_name=somecat”); ?>
<?php while (have_posts()) : the_post(); ?>replace with
<?php if (have_posts()) : ?>
<?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; query_posts(“category_name=somecat&paged=$paged”); ?>
<?php while (have_posts()) : the_post(); ?>
- The topic ‘navigation problem’ is closed to new replies.