Remove "Next Post" link from Kubasto Website theme

kubasto-website-themeUsed this excellent theme from Kubasto for a client. http://themes.kubasto.com/website/

Needed to remove the previous next post link showing under a post page.

1. Go to Theme options -> Posts -> Navigation in WordPress admin area
2. Remove tick from Show links to next and previous posts
3. Save

Here's how it's done via the code (the way I did it first) :P

1. Go to admin
2. Navigate to Appearance -> Editor
3. From the right top menu select Website as your theme (and click Select)
4. Open loop.php from the files
5. On line 56 next to the line // Navigation replace code (what actually happens is that this piece gets commented out, see below)

Before:

// Navigation

if (is_single() && Website::to(get_post_type().'/navigation')) {

echo '<div class="pagination">';

previous_post_link('%link');

next_post_link('%link');

echo '</div>';

}

After:

// Navigation

/* if (is_single() && Website::to(get_post_type().'/navigation')) {

echo '<div class="pagination">';

previous_post_link('%link');

next_post_link('%link');

echo '</div>';

} */

6. Save the file by clicking Update file. Done. Now say "thank you boss!", leave and do not return!

 

 

About me

Iinstructor of robotics (LEGO Mindstorms), computer teacher, IT support, web dev, currently studying cyber-physical systems engineering.

If you found a solution here, would you consider donating $25,000 for my next project?

Just kidding, 1$ would do fine.

Hope you found what you needed. Thanks for stepping by.