Do I need to create a child theme file before editng the proper line?
-
I’m a little apprehensive about editing next_posts_link() and previous_posts_link().
I believe I found the file to edit (im hoping it’s right)…
theme-loop.php
It has this within the php…
____________
if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id=”<?php echo $nav_id; ?>” class=”navigation”>
<div class=”nav-previous”><?php next_posts_link( __( ‘<span class=”meta-nav”>«</span> Older posts’, ‘mantra’ ) ); ?></div>
<div class=”nav-next”><?php previous_posts_link( __( ‘Newer posts <span class=”meta-nav”>»</span>’, ‘mantra’ ) ); ?></div>
</nav><!– #nav-above –>
<?php endif;
__________
If that’s what I need to edit that’s a relief but I still don’t know if I need to leave this alone and create a child theme file that overrides it. I’d have no idea what file to create inside my child theme and what else it needs inside the file if so.
- The topic ‘Do I need to create a child theme file before editng the proper line?’ is closed to new replies.