1. 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

Discussion in 'Styling and Customization Questions' started by DaveM, Oct 18, 2014.

  1. DaveM

    DaveM Well-Known Member

    I have added the following code to my Widget Framework and have two styles available for the Google Search Block.

      (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);
    The light style as you see it blends in as it should


    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?

    Last edited: Oct 18, 2014
  2. AlexKim

    AlexKim Member

    I think the google box is white background. You have to choose dark background when generate the code from google during generating process.

Share This Page