Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] Where is Not Found text generated? (http://forum.bytesforall.com/showthread.php?t=20104)

sstudebaker Apr 11, 2013 10:49 AM

[SOLVED] Where is Not Found text generated?
 
Not Found

Sorry, but you are looking for something that isn't here.

I have modified home page. Search box still works fine but I need to modify not found text by basically adding a surrounding div. Where is this generated please?

lmilesw Apr 11, 2013 11:49 AM

I generally put a copy of the Twenty Eleven 404.php in the Atahualpa folder and modify the text.

sstudebaker Apr 11, 2013 12:56 PM

Okay but what about when doing a search such as

http://74.115.229.75/?s=hello

And it is not found. When it is found search is in a good format but when not found it needs to be styled but I don't have a hook on it.

juggledad Apr 11, 2013 01:16 PM

That 'Not Found' can be found at the bottom of the index.php - you can style it using
HTML Code:

.search-no-results h2 {color: red;}
.search-no-results p {color: orange;}


sstudebaker Apr 11, 2013 01:37 PM

but funny thing is that I am not using the index page - I have custom page. Is it still referencing that code anyhow somehow?

juggledad Apr 11, 2013 02:44 PM

define a 'custom page'? did you create a new page template? did you copy index.php to make it?

If you look at the source code for the page you get with your link the body statement is
HTML Code:

<body class="search search-no-results">
which is where I got the class from.

sstudebaker Apr 12, 2013 08:47 AM

Thanks I got it. I modified index.php which was the fix even though I am using custom home page.


All times are GMT -6. The time now is 07:23 AM.

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