GN2011
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Remove "post date", "author" & "reply" from search resultsEwww just noticed something a bit weird while pasting that link above.. I’ve changed the form button on my search page (https://www.gnhousecall.com/v2/archive/search) from a standard button into an image using the following in searchform.php :
<div id="searchsubmit-button"><input type="image" src="https://www.gnhousecall.com/v2/wp-content/themes/housecall/images/search-button.png" width="59" height="30" border="0" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyeleven' ); ?>" /> </div>
And it seems to have changed the search string from the original format –
https://www.gnhousecall.com/v2/?s=house&submit=Search
to this new onehttps://www.gnhousecall.com/v2/?s=house&submit.x=0&submit.y=0
I know this isn’t anything to do with this thread but if anybody has any idea why that is happening i’d be grateful.
Forum: Fixing WordPress
In reply to: Remove "post date", "author" & "reply" from search resultsBooom! Worked liked a charm ??
Thanks once again my friend!
One last thing if you don’t mind? How do I get rid of those margins at the top and bottom of the results that are breaking the bg image?
I’m guessing it’s in the styling somewhere.
https://www.gnhousecall.com/v2/?s=jamie+lewis&submit.x=0&submit.y=0
Forum: Fixing WordPress
In reply to: Remove "post date", "author" & "reply" from search resultsYou sir, are a legend! ??
It’s all gone apart from the “reply”. Is there a different tag to disable that or it is turned off in the admin section?
Forum: Fixing WordPress
In reply to: Remove "post date", "author" & "reply" from search resultsAhh that’s great!
I’ve created the theme myself so that’s why there’s probably tons of important stuff missing ??
Ok I’ve changed the
<body>
tagReally appreciate this George, thanks man!
Forum: Fixing WordPress
In reply to: Remove "post date", "author" & "reply" from search resultsThanks George,
Here’s my site with a search loaded so you can see what I want to remove.
https://www.gnhousecall.com/v2/?s=house&submit=Search
Cheers,
Grant
P.S. The footer not loading problem has just appeared from nowhere, I’ve just made another thread about it, no idea why this has started happening as I didn’t touch a thing. About 2 hours ago it was fine, when I came back and loaded up my blog it had disappeared..
Forum: Fixing WordPress
In reply to: Remove "post date", "author" & "reply" from search resultsSorry to bump, but anybody have an idea where I need to be looking for this?
Fixed..
Re-uploaded entire TwentyEleven theme and now it’s updating perfectly!
Ok, last thing i’m gonna post because this thread is getting big… (apologies)
For clarification..
1) I’m using a child theme of ‘twentyeleven’ called ‘housecall’
2) ‘housecall’ is the active theme
3) There is no search.php in ‘housecall’
4) Here is the source of twentyeleven/search.php : https://pastebin.com/MXyw8JJh
I’ve removed the default section & container divs and added some text to the file just to show that whatever I do or put into search.php isn’t being parsed to the search results. It’s being totally ignored.
5) Here are some search results – https://www.gnhousecall.com/v2/?s=house
If you ‘view source’ you will see that none of my edits have made it to the outputted page.
Help! ??
Bloody hell. Haha!
Ok I found out about post formats!
I think this is why having the search.php file in my theme isn’t working. Looks like I have to set up a post format in searchform.php, call it in search.php and create a new template called content-formatname.php to display the results!
Does that sound right to you?
Sounds a bit long winded just to get search results to me!
None of this changes the fact that the twentyten/search.php isn’t playing nice though..
Hmm ok, just looking at this comment in the search file..
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/1) I’m guessing that “overload” should read “override”?
2) What is the Post Format name? Where would I find this?
Cheers
This is what happens if I remove the twentyeleven search.php and upload it to my child theme..
https://www.gnhousecall.com/v2/?s=house
Totally broken now..
I’ve tried using it in this directory both ways as below..
1) leaving ref’s in the search code to ‘twentyeleven’ as is..
2) changing them to the name of my child theme ‘housecall’
Neither way makes any difference
Oh and – style.css
Here you go chip…
404 Template
(404.php)Footer
(footer.php)Header
(header.php)Main Index Template
(index.php)Page Template
(page.php)single-dj.php
(single-dj.php)single-djs.php
(single-djs.php)single-page.php
(single-page.php)single-post.php
(single-post.php)single-stations.php
(single-stations.php)Yep just tried altering the index.php in the twentyeleven theme just in case it was defaulting to that instead of my child’s index.php but that’s made no difference either.
Here you go Chip – https://pastebin.com/vdNshCxH
I’ve tried playing with the index.php and that doesn’t make any difference either. It’s like it’s not using any of the regular template file to output the code into.