Advertisement:

Author Topic: [SOLVED] How to display the search bar on all page?  (Read 4886 times)

mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Re: [SOLVED] How to display the search bar on all page?
« Reply #15 on: November 13, 2017, 06:21:12 pm »
it did not affected even I have increased margin-top: untill 70 px
I have also tried ;
@media only screen and (max-width: 740px) {
    .main-search { margin-bottom: 70px !important; }

This also did not affected, I have cleared cache each time and checked.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [SOLVED] How to display the search bar on all page?
« Reply #16 on: November 13, 2017, 06:30:40 pm »
Sorry, works for me here...  ???

Regards

mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Re: [SOLVED] How to display the search bar on all page?
« Reply #17 on: November 13, 2017, 06:40:56 pm »
<div class="wrapper wrapper-flash">
<h6 class="xxxx">

Under "wrapper-flash" given up, I had inserted a h6> text line ( I wrote some short informations there )

I used your code for this H6> class and now space between search-bar and  <div class="wrapper wrapper-flash"><h6 class="xxxx"> is good.

Code changed as ;
@media only screen and (max-width: 740px) {
    .xxxx { margin-top: 70px !important; }

Thank you, solved

mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Re: [SOLVED] How to display the search bar on all page?
« Reply #18 on: January 04, 2018, 03:11:05 am »
Can you also advice how to display search bar on all page for OsclassWizard Theme?
It is not same with BENDER theme and above mentioned code is not exist into Wizard Theme
« Last Edit: January 04, 2018, 03:12:39 am by mrtsoftware »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [SOLVED] How to display the search bar on all page?
« Reply #19 on: January 04, 2018, 02:10:39 pm »
Hi,

osclasswizards/header.php

Locate:

Code: [Select]
if( osc_is_home_page() ) {
if(osc_get_preference('show_banner', 'osclasswizards_theme')=='1'){

Replace with:

Code: [Select]
// if( osc_is_home_page() ) {
        if( 1 == 1 ) {
// if(osc_get_preference('show_banner', 'osclasswizards_theme')=='1'){
if(osc_is_home_page() && osc_get_preference('show_banner', 'osclasswizards_theme')=='1'){

Regards
« Last Edit: January 04, 2018, 02:13:55 pm by teseo »

mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Re: [SOLVED] How to display the search bar on all page?
« Reply #20 on: January 04, 2018, 04:47:51 pm »
Thank you , it works..

omid_firoznia

  • Newbie
  • *
  • Posts: 37
Re: [SOLVED] How to display the search bar on all page?
« Reply #21 on: January 20, 2019, 07:29:47 pm »
Hi,

Add this at the bottom of your bender/css/main.css:

Code: [Select]
.main-search { display: table; }
Regards

Hi thank you. the code for desktop version work very good.

But i use the code for mobile Its in city does not work!   {  domain.com/search/city,41025/region,743227}
(i use RTL theme i put the code also in main-rtl.css but still doesn't work.

muratbora

  • Full Member
  • ***
  • Posts: 234
Re: [SOLVED] How to display the search bar on all page?
« Reply #22 on: May 17, 2019, 01:58:14 pm »
How to display search bar on item pages? Above code display also into categories / subcategories pages, too...
No need above categories / subcategories pages because it is already indicates search-sidebar.php on left side.

Item page is lack of search bar...
« Last Edit: May 17, 2019, 02:00:13 pm by muratbora »