Pagination problem, How I can remove the current page from right side ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: Pagination problem, How I can remove the current page from right side ? (/showthread.php?tid=73887) |
Pagination problem, How I can remove the current page from right side ? - sarath_unrelax - 06-18-2019 Hello, I have pagination, Everything works fine. But I need to remove current page from right side. Here it is 7 (In Screenshot) My code : PHP Code: $this->load->library('pagination'); RE: Pagination problem, How I can remove the current page from right side ? - neuron - 06-18-2019 it looks like it is a CSS styling problem not related to backend code. some styles given to .active class making it to display in this way RE: Pagination problem, How I can remove the current page from right side ? - InsiteFX - 06-18-2019 I have seen that also before and it was due to extra code in the html file on the end of the statement. This was a bootstrap html page with a font awesome <i> tag. RE: Pagination problem, How I can remove the current page from right side ? - sarath_unrelax - 06-19-2019 (06-18-2019, 03:56 AM)InsiteFX Wrote: I have seen that also before and it was due to extra code in the html fileWhere I can change that buddy RE: Pagination problem, How I can remove the current page from right side ? - jreklund - 06-19-2019 You can't remove it with Codeigniter, it's hardcoded in there. You will need to hide it with CSS. Code: ul.pagination li.active {display: none;} Or better yet style it. Here is a bootstrap example: https://getbootstrap.com/docs/4.3/components/pagination/#disabled-and-active-states RE: Pagination problem, How I can remove the current page from right side ? - sarath_unrelax - 06-19-2019 @jreklund Buddy, still not working RE: Pagination problem, How I can remove the current page from right side ? - sarath_unrelax - 06-19-2019 screenshot is in attachment what I'm actually looking for. Actually Code from the template Code: <nav aria-label="Page navigation"> My Codeigniter pagination config PHP Code: public function sale() RE: Pagination problem, How I can remove the current page from right side ? - sarath_unrelax - 06-19-2019 Can you make necessary changes and help out me with it ? RE: Pagination problem, How I can remove the current page from right side ? - jreklund - 06-19-2019 This is a CSS matter. And can't be changed with Codeigniter settings. https://www.w3schools.com/cssref/pr_background-color.asp https://www.w3schools.com/cssref/pr_text_color.asp Apply your styling inside this tag. Code: ul.pagination li.active { |