Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • in reply to: Add Google Custom Search to theme header #83187
     cityofbuckeye
    Participant

    Hello Laura –

    Below you will find the credentials. Thanks you in advance for you assistance. This is our testing server so I will have to duplicate any changes you make on the live site. It would be greatly greatly appreciated if you could provide instructions/notes as to what changes you will make and to what documents. Thank you again.

    Hostname: 345.374.myftpupload.com
    Port: 22
    SFTP Username: e3452596347539
    Password: bir0KW(4PJ2

    in reply to: Add Google Custom Search to theme header #82582
     cityofbuckeye
    Participant

    this is a test of the set as private reply

    in reply to: Add Google Custom Search to theme header #82581
     cityofbuckeye
    Participant

    Hi Laura – I am happy to provide ftp credentials but I don’t want that information to be public on the forum. Can you provide an email account I could send it to? My understanding is that all tickets are public on the forum?

    Thanks,

    in reply to: Add Google Custom Search to theme header #82132
     cityofbuckeye
    Participant

    Forgot to attach this. Thanks,

    in reply to: Add Google Custom Search to theme header #82130
     cityofbuckeye
    Participant

    Hello Laura –

    Thank you for the speedy response. I haven’t had much success utilizing plugins. As a result, I am attempting to hard code the google custom search into the site.

    I would ultimately like user to be able to hover over the search icon and type in a search query as it currently exist (see attached image) on the theme but use Google Custom Search to provide results? Is it possible you could assist by telling me WHERE to add the following code in my header.php file?
    ______________________________________________________________________________________________
    Instructions from Google Custom Search:

    Copy the following code, and paste it into a <div> element in your site’s <body> section, where you want the search box to render.

    Note: For the most cross-browser compatibility, it is recommended that your HTML pages use a supported doctype such as <!DOCTYPE html>. CSS hover effects require a supported doctype.

    <script>
    (function() {
    var cx = ‘010288930059507962473:mk17zrzx1e0’;
    var gcse = document.createElement(‘script’);
    gcse.type = ‘text/javascript’;
    gcse.async = true;
    gcse.src = (document.location.protocol == ‘https:’ ? ‘https:’ : ‘http:’) +
    ‘//cse.google.com/cse.js?cx=’ + cx;
    var s = document.getElementsByTagName(‘script’)[0];
    s.parentNode.insertBefore(gcse, s);
    })();
    </script>
    <gcse:searchbox></gcse:searchbox>
    ________________________________________________________________________________________________________

    Sorry, I cant seem to figure it out for the life of me.

    Thank you in advance

Viewing 5 posts - 1 through 5 (of 5 total)

Log in with your credentials

Forgot your details?