Title: Cannot figure CSS selectors
Last modified: August 21, 2016

---

# Cannot figure CSS selectors

 *  [thelackof](https://wordpress.org/support/users/thelackof/)
 * (@thelackof)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/cannot-figure-css-selectors/)
 * I’ve been working on this for about 5 hours now and can’t wrap my head around
   what needs to be in each field.
 * I can’t say what I’ve tried so far since I’ve tried so many different options.
 * Can someone help me out?
 *     ```
       <div class="content">
   
        <?php if (have_posts()) : ?><?php $count = 0; ?>
        <?php while (have_posts()) : the_post(); ?><?php $count++; ?><?php if ($count == 1) : ?>
   
        <div id="post_holder">
   
       <div class='thumb'>
        <a href="<?php the_permalink(); ?>" rel="bookmark">
        <?php if(has_post_thumbnail()) { $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(),'thumbname' ); echo '<img src="' . $image_src[0] . '" width="726px"/>'; } ?></a>
       </div><!-- thumb -->
   
       </div><!--post_holder-->
   
       <?php else : ?>
   
       <div id="posts_bellow">
   
       <div class='thumb'>
         <a href="<?php the_permalink(); ?>" rel="bookmark">
         <?php if(has_post_thumbnail()) { $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(),'thumbname' ); echo '<img src="' . $image_src[0] . '" width="726px" />'; } ?></a>
       </div>
   
       </div><!--posts_bellow-->
   
       <?php endif; ?>
       <?php endwhile; ?>
   
       <div id='pagination'>
       <div class="nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div>
       <div class="nav-next alignright"><?php previous_posts_link( 'Newer posts' ); ?></div>
       </div>
   
       <?php else : ?>
       <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
       <?php endif; ?>
   
       </div><!-- content -->
       ```
   
 * I’ve changed my pagination because of this..
    prior it was:
 *     ```
       <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else {?>
       <div class="navhold"><?php posts_nav_link(' · ', '<< Recent', 'More >>'); ?></div>
       <?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>
       <?php } ?>
       <?php else : ?>
       <div id="notfound_holder"><h1>Not Found</h1><p>Sorry, but you are looking for something that isn't here.</p></div>
       <?php endif; ?>
       ```
   
 * What exactly am I to put in callback?
    I can’t figure what exactly my A link 
   is when it is using php for pagination (not a php pro)
 * My site is [http://www.devilonadinosaur.com](http://www.devilonadinosaur.com)
 * [http://wordpress.org/plugins/infinite-scroll/](http://wordpress.org/plugins/infinite-scroll/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [thelackof](https://wordpress.org/support/users/thelackof/)
 * (@thelackof)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/cannot-figure-css-selectors/#post-4152162)
 * I have:
 * content selector: #container .content
    navigation selector: #pagination next 
   selector: #pagination .nav-previous alignleft a:first item selector: #posts_bellow
 *     ```
       <div id='pagination'>
       <div class="nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div>
       <div class="nav-next alignright"><?php previous_posts_link( 'Newer posts' ); ?></div>
       </div>
       ```
   
 *     ```
       #pagination{}
       #pagination .nav-previous alignleft a{}
       #pagination .nav-previous alignright a{}
       ```
   
 * I can’t even get it to slightly work.

Viewing 1 replies (of 1 total)

The topic ‘Cannot figure CSS selectors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/infinite-scroll.svg)
 * [Infinite-Scroll](https://wordpress.org/plugins/infinite-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/infinite-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/infinite-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/infinite-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infinite-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infinite-scroll/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [thelackof](https://wordpress.org/support/users/thelackof/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/cannot-figure-css-selectors/#post-4152162)
 * Status: not resolved