you can use replace plugin for your pagination. There are lot of replace plugin available in wordpress.
replace plugin is used when you want to change older stories or older post to pagination.
just have a look at this website Guneet.in
because this will help you to overwrite the code of your default theme.
if you still facing same problem, please let me know.