Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   [SOLVED] Footer showup question (http://forum.bytesforall.com/showthread.php?t=12674)

Innocent Feb 7, 2011 01:40 PM

[SOLVED] Footer showup question
 
if (!is_search() ) {..........}

I tried to wrap footer code in ATA (style and edit center column) to stop showing in search results, but that doesn't work.

I am not sure is this really called 'search results' as I am talking about posts/pages that are compiled by tags.

(last Atahualpa and WP version)

juggledad Feb 7, 2011 02:43 PM

(so you are on Atahualpa 3.6.1 and WP 3.0.3?)

Innocent Feb 7, 2011 03:53 PM

Atahualpa 3.6.4 WP 3.0.4

juggledad Feb 7, 2011 06:31 PM

Could you explain a little more about what you are trying to do?

Innocent Feb 8, 2011 04:41 AM

I am trying to disable post/page footer info to show in search/tag results.
When suggested list of posts appears, each has a visible admin, date, comments, social bookmarks etc that are in footer (though pages don't have footer configured, but those info still show).

juggledad Feb 8, 2011 05:05 AM

add to CSS Inserts
HTML Code:

body.search #footer {display:none;}

Innocent Feb 8, 2011 06:55 AM

Tried, footer's still there :)

In a meanwhile, I updated my WP, so now it is 3.0.5

juggledad Feb 8, 2011 06:58 AM

Works for me, that's all I added. What is your url?

Innocent Feb 8, 2011 07:37 AM

http://kteis.com/tag/black/

juggledad Feb 8, 2011 07:46 AM

I don't see a search on your page??
explain, with steps, what you do on the page to get a search.

Innocent Feb 8, 2011 08:35 AM

The results are compiled referring to tags (see the link http://kteis.com/tag/black/), I don't have any search link on my site.
I am using Simple-tags plugin to configure tags for pages, but they work without that plugin, too.
To get the results you need to pull some of the options from the menu in left sidebar.

juggledad Feb 8, 2011 09:45 AM

so you are not doing a search, you are looking at a tag page. to remove the footer you use the CSS Rule 'display:none;' and just have to put it with a CSS selector.

The selector will be in the format of 'body.xxxxxxx #footer' so you will have
HTML Code:

body.xxxxxx #footer {display:none;}
where xxxxxxx is a class on the <body>. You should go to the page in question and then view the source and find the <body and use an appropriate class to finish the statement.

Using Firebug with Firefox is a good way to find these things

Innocent Feb 8, 2011 09:48 AM

oh, great idea - firebug (somehow i always forget about it) :)

many thanks, juggledad!

btw, am I supposed to see Gold forums?

juggledad Feb 8, 2011 09:59 AM

you should be able to see them, click the 'home' link and you will see all the forums

Innocent Feb 8, 2011 10:46 AM

Yes, I see that they are existing, but I can't get to read them. :)

Innocent Feb 11, 2011 01:38 PM

I looked at the Firebug to find name of the selector, and this is it:

body class=archive tag tag-black logged-in

Now, I tried this code:

body.archive #footer {display:none;}

without result.

So, can you pls tell me what am I missing here?

Also, I can't read gold forums, says 'private'.

juggledad Feb 11, 2011 07:58 PM

Reason you couldn't get to the gold forum was you never replied to the email to confirm your registration. I fixed it so try again

Innocent Feb 12, 2011 05:51 AM

I don't remember receiving any confirmation e mail, but ok, I see the forum now, thanks.

Do you have any idea on my footer problem?

juggledad Feb 12, 2011 07:11 AM

Your CSS is incorrect. Did you try exactly what I showed (substutine 'archive' for 'xxxxxx'?
HTML Code:

body.xxxxxx #footer {display:none;}
on your page I see
HTML Code:

body.archive/tag #footer {display:none;}

body.archive tag tag-yellow #footer {display:none;}

the selectors are invalid. If you want the footer to NOT display when you are on a page that has both the classes of 'archive' and 'tag-yellow, you would use
HTML Code:

body.archive.tag-yellow #footer {display:none;}
If you want to get outside the given theme options and customize your site, you must learn CSS and html.

Innocent Feb 12, 2011 07:28 AM

Ok, thanks, I was just trying different combination as I really don't know much about CSS and html and I hope I can learn something while customizing my site.

Innocent Feb 12, 2011 07:37 AM

body.archive.tag-yellow #footer {display:none;}

However, this code isn't working either.

juggledad Feb 12, 2011 08:07 AM

Sure that code is working, go to the 'color yellow' page and there is no footer.

It's doing what you told it to do, which might not be what you want it to do.

Innocent Feb 12, 2011 08:12 AM

Yes, the site footer is missing, but I was talking about post/page footer as called in Atahualpa. I don't know how else to name that.

Quote:

Originally Posted by Innocent (Post 57293)
I am trying to disable post/page footer info to show in search/tag results.
When suggested list of posts appears, each has a visible admin, date, comments, social bookmarks etc that are in footer (though pages don't have footer configured, but those info still show).


juggledad Feb 12, 2011 02:10 PM

I'm sorry, I thought you wanted the page footer gone. If you want the post footer's gone on the archive page for tag-yellow use
HTML Code:

body.archive.tag-yellow .post-footer {display:none;}

Innocent Feb 12, 2011 04:38 PM

YES!
That's it! Thanks, juggledad!


All times are GMT -6. The time now is 01:48 AM.

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