New Landing How can we help? Themeforest Theme Support Dante Adding Google Custom Search plugin to website

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #139160
    tsimarketing
    Member
    Post count: 267

    I’m not sure if you will be able to help me with this issue, but I thought I would ask. I am trying to add the Google custom search plugin to my website and they have given me two snippets of code and have told me where I should put it, but I am having trouble finding the area to put the code.

    •The first code is for the search box, they said to paste it into a <div> element in your site’s <body> section, where you want the search box to render. We are a little confused on where the <body> section is.
    Below is the code:

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

    •The second code is for the search results. They said to paste it into a <div> element in your site’s <body> section, where you want the search results to render. And again we’re confused on where the <body> section is.

    <gcse:searchresults></gcse:searchresults>

    #139280
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Unfortunately that level of customisation is beyond our scope of support. While we’d love to be able to support every customisation request, we simply don’t have the time. We recommend that you seek a freelance developer if you need that functionality, potentially from one of the below resources:

    https://codeable.io

    Home

    http://www.microlancer.com

    Hope that helps.

    – Kyle

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

You must be logged in to reply to this topic.