Support » Plugin: Tutor LMS - eLearning and online course solution » How to create a button at Previous/Next pagination (TUTOR LMS)

  • I’m editing the Tutor LMS Plugin and I want to input a button at Previou/Next pagination on the lessons page.

    I found the file, but don’t know how to insert:


    <div class="tutor-next-previous-pagination-wrap">
    	if ($previous_id){
    		<a class="tutor-previous-link tutor-previous-link-<?php echo $previous_id; ?>" href="<?php echo get_the_permalink($previous_id);
    		?>">&leftarrow; <?php _e('Anterior') ?></a>
    	if ($next_id){
    		<a class="tutor-next-link tutor-next-link-<?php echo $next_id; ?>" href="<?php echo get_the_permalink($next_id); ?>"><?php _e('Seguinte') ?>

    Can somebody help me?

Viewing 1 replies (of 1 total)
  • Plugin Support Parag Das


    Hello @victorharuo

    Please replace the button link code with the following code. Replace lines 20-21 with the previous button code and replace lines 27-29 with the next code.
    Previous button:

    <a class="tutor-btn bordered-btn" href="<?php echo get_the_permalink($previous_id);?>">
            &leftarrow; <?php _e('Previous') ?> </a>

    next button

    <a class="tutor-btn bordered-btn" href="<?php echo get_the_permalink($next_id); ?>">
    		<?php _e('Next') ?> &rightarrow;</a>

    Thank you!
    Best Regards,

    • This reply was modified 4 months, 2 weeks ago by Parag Das.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.