News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Template getting shifted to right when using search option [not jD bug]

Started by pinarayi, 14.08.2016 05:46:36

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pinarayi

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?
  •  

ColinM

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
Colin M
  •