Advertisement
pusatdata

WP: Theme For List/Directory Article Versi 1

Jan 25th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. Use this theme:
  2. Theme Name: Twenty Twelve
  3. Theme URI: https://wordpress.org/themes/twentytwelve/
  4. Author: the WordPress team
  5.  
  6. Install this plugin:
  7. Prime Strategy Page Navi (https://wordpress.org/plugins/prime-strategy-page-navi/)
  8. Auto Numbering Post (https://wordpress.org/plugins/auto-numbering-post/)
  9.  
  10. Open file: /wp-content/themes/twentytwelve/index.php
  11.  
  12. Find this code (line 25):
  13. <?php get_template_part( 'content', get_post_format() ); ?>
  14.  
  15. Replace with this code:
  16. <?php if ( function_exists( 'page_navi' ) ) page_navi( 'items=7&prev_label=Prev&next_label=Next&first_label=First&last_label=Last&show_num=1&num_position=after' ); ?>
  17. <?php /* Start the Loop */ ?>
  18. <?php while ( have_posts() ) : the_post(); ?>
  19. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  20. <div class="entry-title">
  21. <a href="<?php echo get_permalink($recent->ID); ?>">
  22. <?php the_title(); ?>
  23. </a>
  24. </div>
  25. </div><!-- #post -->
  26. <?php endwhile; ?>
  27. <?php if ( function_exists( 'page_navi' ) ) page_navi( 'items=7&prev_label=Prev&next_label=Next&first_label=First&last_label=Last&show_num=1&num_position=after' ); ?>
  28.  
  29. Save file and close.
  30.  
  31. 2. Open file: /wp-content/themes/twentytwelve/style.css
  32.  
  33. In bottom, pasaste this code:
  34.  
  35. /* =Style for Prime Strategy Page Navi
  36. ----------------------------------------------- */
  37. .page_navi {
  38. text-align: center;
  39. }
  40.  
  41. .page_navi li {
  42. display: inline;
  43. list-style: none;
  44. }
  45.  
  46. .page_navi li.current span {
  47. color: #000;
  48. font-weight: bold;
  49. display: inline-block;
  50. padding: 3px 7px;
  51. background: #fee;
  52. border: solid 1px #fcc;
  53. }
  54.  
  55. .page_navi li a {
  56. color: #333;
  57. padding: 3px 7px;
  58. background: #eee;
  59. display: inline-block;
  60. border: solid 1px #999;
  61. text-decoration: none;
  62. }
  63.  
  64. .page_navi li a:hover {
  65. color: #f00;
  66. }
  67.  
  68. .page_navi li.page_nums span {
  69. color: #fff;
  70. padding: 3px 7px;
  71. background: #666;
  72. display: inline-block;
  73. border: solid 1px #333;
  74. }
  75.  
  76.  
  77. Save file and close.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement