Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination and search not working on mobile #204

Open
roxanacaz opened this issue Aug 11, 2024 · 1 comment
Open

Pagination and search not working on mobile #204

roxanacaz opened this issue Aug 11, 2024 · 1 comment

Comments

@roxanacaz
Copy link

roxanacaz commented Aug 11, 2024

Hi. I’m having problems with smart blog: search box on mobile isn’t showing, pagination isn’t working properly, you need to click below the page number to work. When activating MODE_DEV in ps and using the ps search (not blog search), I get this error on a blank page: [Debug] This page has moved
Please use the following URL instead: https://www.mysite.ro/buscar?orderby=position&orderway=desc&search_query=pliabil
On desktop everything works as expected.

I’m using Smart Blog 2.2.0, Prestashop 1.6.1.9, PHP version: 5.6.40, theme default_bootstrap

www.scauneautocopii.ro
Any ideas what could be wrong? Thank you!

LE: Sort of solved pagination problem : In public_html/themes/default_bootstrap/css/global.css, I modified:

.pagination {
display: inline-block;
padding-left: 0;
margin: 18px 0;
line-height: 1.412;

}

to

.pagination {
display: inline-block;
padding-left: 0;
margin: 2px 0;
line-height: 2.2;

}

And in:

.top-pagination-content ul.pagination,
.bottom-pagination-content ul.pagination {
margin: 38px 0px 8px 0; }
@media (max-width: 991px) {
.top-pagination-content ul.pagination,
.bottom-pagination-content ul.pagination {
float: left; } }
.top-pagination-content ul.pagination li,
.bottom-pagination-content ul.pagination li {
display: inline-block;
float: left; }
.top-pagination-content ul.pagination li > a,
.top-pagination-content ul.pagination li > span,
.bottom-pagination-content ul.pagination li > a,
.bottom-pagination-content ul.pagination li > span {
margin: 28px 1px 0 0px;
padding: 0;
font-weight: bold;
border: 1px solid;
border-color: #dfdede #d2d0d0 #b0afaf #d2d0d0;
display: block; }
.top-pagination-content ul.pagination li > a span,
.top-pagination-content ul.pagination li > span span,
.bottom-pagination-content ul.pagination li > a span,
.bottom-pagination-content ul.pagination li > span span {
border: 1px solid #fff;
padding: 2px 8px;
display: block;
background: url(../img/pagination-li.gif) 0 0 repeat-x #fbfbfb; }

Changed margin: 8px 0px 8px 0; } to margin: 38px 0px 8px 0; } and margin: 8px 1px 0 0px; to margin: 28px 1px 0 0px;

@roxanacaz
Copy link
Author

And sort of solved the search problem by adding the code from modules/smartblogsearch/views/templates/front/smartblogsearch.tpl to all of the files from modules/smartblog/views/templates/front/ except category_loop.tpl and searchresult.tpl. Hopefullt it will be ok, I'm by no means an expert, I just guessed. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant