Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MEMBUAT READMORE OTOMATIS
- Ganti kode berikut:
- <?php
- the_content('');
- ?>
- Dengan kode:
- <?php
- echo $flexitheme->shorten(get_the_excerpt(), '40');
- ?>
- UNTUK CATEGORY
- 1. Copy file post.php menjadi post-category.php
- 2. Baru ganti seperti di atas.
- 3. Ini berlaku juga untuk tag dan archive
- 4. Jika ingin satu untuk semua, langsung edit di post.php
- CARA LAINNYA READMORE
- First way;
- 1- in index.php replace <?php the_content(); ?>
- with <?php the_excerpt(); ?>
- 2-in function.php paste these code lines:
- function new_excerpt_more( $more ) {
- return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">Read More</a>';
- }
- add_filter( 'excerpt_more', 'new_excerpt_more' );
- Second Way
- 1-in index.php add following code lines
- <?php the_excerpt(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink to <?php the_title() ?>">Read More...</a>
- Finally save the template and see the result.Thank you for reading my article.See you next time with a new tip or trick.
- ==================================
- MEMBUAT POST BORDER
- Border di Pinggir Post:
- .post {
- margin-bottom: 15px;
- border: 1px solid #D8D8D8;
- background: #FFFFFF;
- padding: 10px 10px 0 10px;
- }
- =====================================
- TITLE HOME
- .title-home {
- color: #00366F;
- margin: 0 0 10px 0;
- padding: 0;
- font-family: 'Oswald', sans-serif;
- font-size: 12px;
- line-height: 12px;
- font-weight: normal;
- }
- Memanggil fontny, letakkan di atas bawah general:
- @import url(https://fonts.googleapis.com/css?family=Oswald);
- =====================================
- MEMBUAT KOLOM DI HOME
- <span style="width: 115px; height: 250px; float: left; margin-right: 5px; margin-bottom: 5px; overflow: hidden;">
- LOOP-POST
- </span>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement