Hi @lefterist,
I hope you are well today and thank you for your question.
You can change it by creating child theme of sparkling theme and adding the following code in the functions.php file of it that you can change however you want.
/**
* Display navigation to next/previous post when applicable.
*
* @return void
*/
function sparkling_post_nav() {
// Don't print empty markup if there's nowhere to navigate.
$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );
$next = get_adjacent_post( false, '', false );
if ( ! $next && ! $previous ) {
return;
}
?>
<nav class="navigation post-navigation" role="navigation">
<h1 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'sparkling' ); ?></h1>
<div class="nav-links">
<?php
previous_post_link( '<div class="nav-previous">%link</div>', _x( '<i class="fa fa-chevron-left"></i> %title', 'Previous post link', 'sparkling' ) );
next_post_link( '<div class="nav-next">%link</div>', _x( '%title <i class="fa fa-chevron-right"></i>', 'Next post link', 'sparkling' ) );
?>
</div><!-- .nav-links -->
</nav><!-- .navigation -->
<?php
}
Find more information about creating child theme on the following pages.
https://codex.wordpress.org/Child_Themes
http://freewptp.com/tutorials/why-and-how-to-create-and-use-wordpress-child-theme/
Best Regards,
Movin
Thanks Movin!
In the meantime I had solved the matter, all code I needed is in the inc/template-tags.php
We face another problem, how to make a simple plugin (facebook comments plugin) function under a single post..
Another theme we operated had an “end of entries” sidebar area and then it was as easy as to put the widget in the according widget.
Could you maybe point me to some documentation on this? I’ve searched both wordpress.com and colorlib.com but I couldn’t locate anything
Awesome great to see you got that solved but please note that if you make changes in the theme file then you have to make these changes again after theme updation as changes made in the theme files get lost on theme updation so it’s recommended to make changes using child theme.
We face another problem, how to make a simple plugin (facebook comments plugin) function under a single post..
The Sparkling theme also provides footer widget areas where you can add that widget.
You are most welcome here 🙂