Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Search is missing (http://forum.bytesforall.com/showthread.php?t=19115)

gnosis Dec 12, 2012 02:20 PM

[SOLVED] Search is missing
 
I updated to Ata 3.7.9 and running WP 3.5

Appearance=>ATA Theme Options=>Style& Edit Header Area =>Show search box?
set to <YES>

but does not appear:
http://library.gc.cuny.edu/


here is an exported theme settings file:
http://library.gc.cuny.edu/ata-libra...u-20121212.txt


Please help

juggledad Dec 12, 2012 03:19 PM

the search box only shows when you are using the %logo option in the header

gnosis Dec 12, 2012 05:39 PM

When I add %logo my header image becomes duplicated. In the <Configure Header Area> section, I currently have this:

<div id="mylogo"><a href="http://www.gc.cuny.edu"><img src="http://library.gc.cuny.edu/mrl365_2/wp-content/themes/atahualpa/images/gc_logo.jpg" alt="Mina Rees Library" /></a></div><h2 class="blogtitle"><a href="http://library.gc.cuny.edu/">Mina Rees Library</a></h2><p class="tagline"><a href="http://www.gc.cuny.edu/">CUNY Graduate Center</a></p>
%pages %image

juggledad Dec 12, 2012 06:43 PM

what version were you on?
did you do a db backup before updating?

gnosis Dec 12, 2012 06:51 PM

ATA Version 3.7.10
WP Version 3.5

regretfully did not perform a backup.

gnosis Dec 12, 2012 06:56 PM

By the way, I used to edit the bfa_header_config.php and functions.php files to accomplish overriding the logo link+

gnosis Dec 13, 2012 06:21 AM

I guess I was not clear. What I meant is that I used to edit those files until I started putting customizations in the theme options.

Anyway, I tried restoring from a database last week and the search is still not there.

What do you suggest?

Maybe edit the wp-options table? If so, what field and values?

juggledad Dec 13, 2012 06:30 AM

if you edited the theme files, you need to re-edit them and put your changes back in.

remember the theme is made up of two parts
1) the theme code - it is in the theme folder and totally gets replaced on an automatic update
2) the theme options - are stored in the database and remain over updates

if you modify the theme code you better have good notes so you can go back and put those changes back in.

gnosis Dec 13, 2012 06:31 AM

No, I meant I at one time used to edit the files. I no longer. The last two upgrades reflect the official distribution. I just mentioned that I used to adjust the header via a hack of the files until you advised a while back to insert into options.

gnosis Dec 13, 2012 06:54 AM

Also, this is a completely different site:

http://library.gc.cuny.edu/LP_TEST/

Atahualpa 3.7.9
Wordpress 3.4.2

ATO=>Style & edit Header Area

Show search box? set to <YES>

If I add %logo to Configure Header Area then the search appears, but then there is duplication.

Here is the custom code:
<div id="mylogo"><<a href="http://www.gc.cuny.edu"><img src="http://library.gc.cuny.edu/mrl365_2/wp-content/themes/atahualpa/images/gc_logo.jpg" alt="Mina Rees Library" /></a></div><h2 class="blogtitle"><a href="http://library.gc.cuny.edu/">Mina Rees Library</a></h2><p class="tagline"><a href="http://www.gc.cuny.edu/">CUNY Graduate Center</a></p>
%logo %pages %image

How do I make my logo go use an overide link, but preserve the search?

lmilesw Dec 13, 2012 07:32 AM

Do you have anything in the Show Logo Image box? If so take it out.

gnosis Dec 13, 2012 08:15 AM

That did it.
Thanks.

Last question. How to modify the CSS so the logo, blog title and tagline are lower and on the same level as the search?

lmilesw Dec 13, 2012 08:33 AM

Since you now have changed the standard way logo shows you have to "fiddle" with positioning and such using a code inspector like Firebug.

You could also take out %logo and put a search widget in the sidebar or look at the source code for the search box and paste that in the same place you have your logo code. You would again have to fiddle with positioning.

gnosis Dec 13, 2012 08:37 AM

OK and thanks.

gnosis Dec 13, 2012 10:07 AM

Struggling. Search box appears to be in a separate div. Should Logo and Search be in the same?

lmilesw Dec 13, 2012 10:49 AM

I would put it in a separate div for ease of styling.

gnosis Dec 13, 2012 10:57 AM

in
ATO=>Sytle & Edit Header Area=>Logo Area: Styling
or
ATO=>Add HTML/CSS Inserts=>CSS Inserts

I am not a CSS person.

can you give me a start?


I currently have this defined in CSS Inserts:

div.searchbox-form {
margin: 5px 0 15px 5px;
}
div#menu1 ul.rMenu {
background: transparent;
border: none;
}
div#imagecontainer {
border-top: solid 2px #333;
border-bottom: solid 2px #333;
}

lmilesw Dec 13, 2012 04:55 PM

Try the following in CSS Inserts
HTML Code:

.searchbox {
    position: absolute;
    top: 70px;
    right: 20px;
}

I have the top set at 70px so that if you look at the site in a narrow browser window it clears the menu items.

gnosis Dec 13, 2012 05:42 PM

This is great. Thanks for the help. Greatly appreciated!


All times are GMT -6. The time now is 09:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.