Adding single post navigation to your posts would require editing your theme's functions.php
. Normally, I recommend using a child theme so your changes won't be lost if the theme is updated in the future, but since the theme you're using is already a child theme, that won't be possible. As a result, you'll have to redo these changes if the theme is ever updated in the future.
You can create a basic navigation with this code in your theme's functions.php
:
function lifestyle_post_nav() { if ( is_single() ) { the_post_navigation( array( 'prev_text' => '« %title', 'next_text' => '%title »', ) ); }
}
add_action( 'omega_after_content', 'lifestyle_post_nav' );
And then you could do some basic styling with the CSS from this Pastebin: http://pastebin.com/WVWq4BDC
Finally, you could then hide the numbered navigation with this CSS:
.loop-pagination { display: none;
}
WordPress ...
ما را در سایت WordPress دنبال می کنید
برچسب : نویسنده : استخدام کار wpss بازدید : 200 تاريخ : شنبه 15 خرداد 1395 ساعت: 3:51