• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Google Search CSS Help

DaveM

Well-known member
#1
I have added the following code to my Widget Framework and have two styles available for the Google Search Block.

Code:
<script>
  (function() {
  var cx = '001385370372805398595:fdjvu4_y4di';
  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:search></gcse:search>
The light style as you see it blends in as it should

upload_2014-10-18_19-1-16.png

However the dark style it does not and you have this white block sitting in the middle of the side blocks, so is there anyway to change it so it blends into both my styles as it should?

upload_2014-10-18_19-3-6.png
 
Last edited:
#2
I think the google box is white background. You have to choose dark background when generate the code from google during generating process.