Okay
  Public Ticket #1911806
Search not returning results
Closed

Comments

  • Peter Ridgway-Davies started the conversation

    hi

    I have not altered the search.php file at all but I an not getting any results from pages on the site. Am I missing something?

  •  807
    Linh replied

    Hi Peter,

    Did you custom any code for the theme function on any other file? It might conflict by your code with search function.

    Thanks

  • Officexpert replied

    The only changes to php files was to add a mailchimp to header.php as follows

    <?php
    /**
     * The header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="content">
     *
     * @package Infinity
     */
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
        <meta charset="<?php bloginfo( 'charset' ); ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1">
       
        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
     <?php wp_head(); ?>
     <meta name="format-detection" content="telephone=no">
     
    </head>
    <body <?php body_class(); ?>>
    <div id="page" class="site">
     <?php require_once( TM_FINANCE_THEME_DIR . '/template-parts/' . Kirki::get_option( 'tm-finance', 'header_type' ) . '.php' ); ?>
        <div id="content" class="site-content">

    I have added css quite extensively but no javascript


  • Officexpert replied

    oops. for some reason the code is not pasted from the header.php. The line added is a script line - ahh. That's why its not pasting as this web page will not allow a script in it!

  •  807
    Linh replied

    Hello

    Did you control the custom code and make the theme function work back? 

    Please contact if you have any other question so i can help.

    Best regards

  • Peter Ridgway-Davies replied

    I don't understand your question. What code?

  •  807
    Linh replied

    Hello

    I mean does the problem is fixed? I can not access your site to check the search function because your site is in maintenance mode. 

    Thanks

  • Peter Ridgway-Davies replied

    No problem is not fixed. The login to the site is username peterr password !cumbrian123

    To access go to https://Solvetech.com

  •  807
    Linh replied

    Hi,

    Could you please provide

    • The WordPress admin information (login URL, username & password)
    • The FTP login information (server address, username & password)

    So, I can give a thorough check and find a solution for you.

    Thanks

  • Officexpert replied

    You know I am disappointed in the responses to this support request. I provided you with the log in details last Friday in my previous comment.

  • Officexpert replied

    I do not use FPT

  •  807
    Linh replied

    Hello

    When i try to search on your site now, the result is show up as well:

    https://solvetech.com/?s=Make

    Thanks

  • Peter Ridgway-Davies replied

    No the search is not working. Our site sells SharePoint services. Try searching for SharePoint and you get nothing. The search result you saw was a demo blog page. Does the search only look at blog pages. We don't use them.

  •  807
    Linh replied

    Hello

    Currently, theme is just allow to search for normal post. If you want to search for service post, please follow my image bellow to remove a  bit code in functions.php file to get that:

    https://prnt.sc/mtgokg

    Thanks

  • Peter Ridgway-Davies replied

    I need better information than this. Exactly what do I change and does this enable normal pages to be searched?

    Is there any documentation on this?

  • Officexpert replied

    Ahh. You meant to delete the code snippet! Yes I have done that and the search is now working. You can close the call

  •  807
    Linh replied

    That is great to hear. 

    Please contact if you have any other question so i can help.

    Thanks