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
    This reply has been set as private.
    in reply to: Add Google Custom Search to theme header #82582
     cityofbuckeye
    Participant
    This reply has been set as private.
    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,

    Attachments:
    You must be logged in to view attached files.
    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

    Attachments:
    You must be logged in to view attached files.
Viewing 5 posts - 1 through 5 (of 5 total)

Log in with your credentials

Forgot your details?