jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: pinarayi on 14.08.2016 05:46:36

Title: Template getting shifted to right when using search option [not jD bug]
Post by: pinarayi on 14.08.2016 05:46:36
See the original position of web site. It is aligned central in the browser.

http://202.88.254.120/ksebin . But when you use search option in jdownloads, entire site is getting right aligned. http://202.88.254.120/ksebin/index.php/en/blog/latest-tenders/search . How to solve this?
Title: Re: Template getting shifted to right when using search option [Not jD bug]
Post by: ColinM on 14.08.2016 08:24:46
Hi
Thanks for clear example links
Because it moves the entire page to the right this must be due to the template as jD only affects what is in part of the entire page.
Your template generates the HTML <body class="search ltr boxed"> which refers to CSS class search.
In template.css line 737 it has
.search {
  float: right;
}

You could edit template.css of course but that could be a problem if you update the template at a later date.

I cannot be certain without superuser access to your site but this may be overcome by using the template custom.css
ksebin/templates/zo2_hallo/assets/zo2/css/custom.css
with a css statement such as
.search {
  float: none;
}
or in jdownloads_custom.css by including
.search {
  float: none !important;
}
The !important is needed because jdownloads_custom.css is loaded before your template css

You could of course make positve use of cclass .search by say giving the search page a different background colour for example
Colin

NOTE this is not a jDownloads bug so I have moved this topic to General
Title: Re: Template getting shifted to right when using search option [not jD bug]
Post by: pinarayi on 14.08.2016 14:58:17
Great!!! Thanks