Jump to content

Search box position.


Recommended Posts

Hello everyone!I am relatively new to the whole idea of web developing,and I am currently learning most of the things.I've created a website using joomla,but I constantly have this problem,which I cannot find how to solve.Basically joomla has its administrator control panel where you can edit some things,but if you want to edit more than the basic you have to locate,and edit css or html (correct me if Im wrong). And this is where my problem starts. Although I can sometimes edit something using firebug tool of the browser,I cannot find the css file (through FTP) to edit and make my changes permanent.Could you please show me how I can do that step by step?What I am currently trying to do is change the position of the search box (I am trying to do exactly what this website here has done with its search box,so top right corner),but there is only one ''module position'' as its called in joomla,and this is the ''nav'' position.Once the search box is placed in the nav position,it is being placed directly underneath the home tab (as seen in the screenshot).You can see in the screenshot where I would like it to be with red letters.The website is: http://www.georld.com/Help guys !

post-189493-0-69914800-1442269490_thumb.jpg

Link to post
Share on other sites

Here's the tutorial that will tell you how to find your css. Even if someone just gave you the correction you probably need, you'd still have to know how to find your css to make the change.

 

This willl show you how to find it:

 

http://www.w3schools.com/css/css_howto.asp

Link to post
Share on other sites

Its in the templates folder, under your theme, in its css folder usually called template.css.But you also edit it in backend, template manager, select what would be your template and you should have list of css appear where can select and edit.

Edited by dsonesuk
Link to post
Share on other sites

Here's the tutorial that will tell you how to find your css. Even if someone just gave you the correction you probably need, you'd still have to know how to find your css to make the change.

 

This willl show you how to find it:

 

http://www.w3schools.com/css/css_howto.asp

 

 

Its in the templates folder, under your theme, in its css folder usually called template.css.But you also edit it in backend, template manager, select what would be your template and you should have list of css appear where can select and edit.

Thank you both for your answers.-Niche: the article you provided me shows how to insert CSS (if Im correct) not how to locate it. I've read it through and now I have some rough idea how to insert it,but I still dont understand how to find it ?-dsonesuk: I looked in the template.css file for the div: div.search. It doesnt exist (or my Notepad++ is buggered).Also,I do not know which value to put,so that the element will go to the right. I tried float: right; although all it does it slightly move the search box up.Also on the second attachment,you can see the supposedly source of the css file. It doesn't exist (using Filezilla).

post-189493-0-43166100-1442435904_thumb.jpg

post-189493-0-04762600-1442436818_thumb.jpg

Edited by Georld.com
Link to post
Share on other sites

That is a css cached file, it combines all your css files together and minifies them, what you should do is as i suggest and identify your template folder then look for template.css in css folder, that is more than likely the one with css for search box, you amend that file, save it, then you have to clear you joomla cache so the css files are re-cached and your amendments will show, you also have the option to select developer mode, where the cache is turned off, and works directly from individual css files.

Link to post
Share on other sites

That is a css cached file, it combines all your css files together and minifies them, what you should do is as i suggest and identify your template folder then look for template.css in css folder, that is more than likely the one with css for search box, you amend that file, save it, then you have to clear you joomla cache so the css files are re-cached and your amendments will show, you also have the option to select developer mode, where the cache is turned off, and works directly from individual css files.

Ok, I have found the template.css file. Could you please tell me what css I should add in it ?

Link to post
Share on other sites

Actually what you could do is just add class to menu container and search button container so they fit properly using percentage widths, it uses 12 grid layout so changing or adding

<div class="moduletable_menu">

to

<div class="moduletable_menu span10">

and

<table cellspacing="0" cellpadding="0" class="moduletable">

to

<table cellspacing="0" cellpadding="0" class="moduletable span2">

should fix the problem

  • Like 1
Link to post
Share on other sites

Actually what you could do is just add class to menu container and search button container so they fit properly using percentage widths, it uses 12 grid layout so changing or adding

<div class="moduletable_menu">
to
<div class="moduletable_menu span10">
and
<table cellspacing="0" cellpadding="0" class="moduletable">
to
<table cellspacing="0" cellpadding="0" class="moduletable span2">
should fix the problem

 

Works perfect using firebug.However I cannot locate those lines in the template.css file. Here is my template css file:

Edited by Georld.com
Link to post
Share on other sites

You do not edit css, you edit html, depending on joomla version (vast difference from 2 and 3) you can find thes html element and add class to index.php or find modules, menu and add/select these classes from backend.

Sorry there are no html files in my website. They are either php,or css. I am literally lost when trying to find files. Where do I start from ? This is why I am here because I don't know.

Link to post
Share on other sites

NOT HTML file name, html coding which is found in index.php see http://www.favthemes.com/tutorials-developers/49-how-to-change-the-width-of-the-menu.html step 3 to edit index.php, you will have to find elements shown in post #7 add add span class as shown.

I did find the element: fav-nav,and once change the value to span 8 (which is smaller) the whole nav bar got smaller,but the search box stayed where it currently is (under the home button).The element: <table cellspacing="0" cellpadding="0" class="moduletable"> Does not exist in the index.php file,so I cannot edit it. :sorry:

Link to post
Share on other sites

Tell me you didn't change it to span8, but ADDED span8 and not span 8.What you should be able to do is look up main menu and search modules in module manager and add required class under the module class input box.

PROBLEM SOLVED :D :D :D !Check the website it is perfect now (lol far from perfect)! Thank you so much for your time on this ! Basically all I had to do was to go,to the module called ''main menu'' through the module manager,and in the box ''Module class suffix'' I've added the simple word ''span10'' . It did the trick :happy0046: I have another question now. When using the search,the results I get are slightly irrelevalnt. For example the website has the meta tag ''pearl'' in it,as long as many other words. If a user searches ''pearl'' I don't want him to see all the pages that have the ''pearl'' meta tag,but I want him to see items that are named pearl,or have pearl in their text.Also in the search refinements there are unwanted options that I would like to remove as seen in the screenshot : news feeds,contacts,brands,tags because those stuff are irrelevant. Is that possible?

post-189493-0-41350200-1442529747_thumb.png

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...