• Hi, I have been adding some plug-ins to my website and when I tried search the results I got were without link to the post, but actually with a link to the comments of the posts. You can see it here: https://tinyurl.com/y9fl664
    I installed search unleashed but it didn’t help. Than I tried with search everything, still the same, no improvement.
    My guess is that the culprit could be one of the other plug-ins but before I start deactivating the plug-ins one by one, I wanted to hear some thoughts on that issue.
    Thanks!

Viewing 15 replies - 1 through 15 (of 18 total)
  • Have you checked your theme’s search.php template? And a link to your site would help. An image isn’t of much use.

    Thread Starter dokidok

    (@dokidok)

    I am not that experienced with the editing of the theme. I opened the search.php but don’t know what to look for.
    The link to the website is https://mnemocine.net

    Thread Starter dokidok

    (@dokidok)

    Hope the problem will be resolved soon.

    It’s definitely the search.php template file that’s at fault. Can you place a copy of that file into use the WordPress pastebin and post the pastebin url here? Someone may be able spot the problem (I’m going to be away for a few hours now).

    Thread Starter dokidok

    (@dokidok)

    @esmi, thank you so much. This is the wp pastebin url https://wordpress.pastebin.ca/1760954
    hope someone will help
    thank you

    Try the code at https://wordpress.pastebin.ca/1761566

    It almost certainly won’t look too good initially but, I think a little CSS tweaking is all that will be needed. If you let me know when you have that up and running, I’ll have another look at it and give you some CSS edits.

    Thread Starter dokidok

    (@dokidok)

    @esmi: Great work! Now definitely you can see the posts, which is a big improvement from what it was before. Actually my goal is to have nothing more than the look similar to the search results on any of the wordpress.com blog. I mean the date, the post, and the comments are on one row, aligned.

    Revised template: https://wordpress.pastebin.ca/1761675
    Still needs some CSS work to get the display right but it’s getting closer.

    Thread Starter dokidok

    (@dokidok)

    Yes, it is getting closer. I activated again the search unleashed plug-in because I want the searched words to be highlighted. If that messes with the tweaking of the code, let me know, and I will deactivate it. I am happy with the results so far. Thanks!

    Now try adding:
    .entries span.searchterm1,.entries span.comments_number (display:inline;}
    to the bottom of style.css

    Thread Starter dokidok

    (@dokidok)

    I added the line to the stylesheet (style.css) https://tinyurl.com/ydrnfsj, but nothing changes in the way it looks.

    There is also a template style-options.php, don’t know if that can change something.

    Remember to press CTRL and F5 simultaneously when viewing an updated page/site. Or try emptying your browser cache. This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache.

    Thread Starter dokidok

    (@dokidok)

    I did clean the browser cache, still not changes. I can keep it this way too, it is way better than before. It’s up to you, if you want we can try something else, and I can give you the username and password and you can take a look…or we can stop at this point. I am very satisfied with the results so far.

    Can you try adding that line in again so I can see what (if any) effect it has? And remember to press CTRL and F5 simultaneously when viewing the updated page. Or try emptying your browser cache. This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache.

    Thread Starter dokidok

    (@dokidok)

    I did it, still no change. BTW, I am not sure that I am adding the line in the right place. On this style.css the information is mostly about the Vugilance theme I use. Could the culprit be in some of the plug-ins? If I change the theme is it going to show the same in the search results?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘search gives the resutls in a stange way’ is closed to new replies.