Remove the [ and ] from post pagination

Started by brettuk, December 18, 2018, 04:31:13 PM

Previous topic - Next topic

brettuk

Hi all,

I have recently re-styled my pagination, however, trying to remove the '[' and ']' that's being rendered before and after the pagination sequence in post view.

Does anyone know where this code is stored? and how to do this, it would be much appreciated, I've tried looking everywhere for it today, but no luck.

The brackets only appear between the pagination number the user is on.

Thanks,

Arantor

It's in Subs.php, inside constructPageIndex().

brettuk

Quote from: Arantor on December 18, 2018, 04:35:11 PM
It's in Subs.php, inside constructPageIndex().

Works a treat, thank you.

For anyone looking to do this, I removed [ and ] from the following line:
// Show the current page. (1 ... 6 7 >[8]< 9 10 ... 15)
if (!$start_invalid)
$pageindex .= '[<strong>' . ($start / $num_per_page + 1) . '</strong>] ';
else
$pageindex .= sprintf($base_link, $start, $start / $num_per_page + 1);

Advertisement: