Google Doc Embedder
[resolved] Color of background (3 posts)

  1. YTC
    Posted 4 years ago #

    How/where can I change the default grayish color that is the background to the documents that are added? I would like to change it from the gray to blue, but I can't find which file that might be in to change the color. Can you tell me how to locate this? Thanks!!


  2. k3davis
    Plugin Author

    Posted 4 years ago #

    In order to do this you'll have to do a little trickery:

    1) Switch to Enhanced Viewer in GDE Settings, if you're not already using it

    2) Go to the plugin editor and edit the proxy.php file, inserting the lines below:

    // proxy the javascript file
    	$search[] = "gview/resources_gview/client/js";
    	$replace[] = "?jsfile=gview/resources_gview/client/js";
    	$search[] = "#content-pane { background-color: #ebebeb;";
    	$replace[] = "#content-pane { background-color: blue;";

    The first 3 lines are just to give you context; insert the last 2 lines in the appropriate place. Of course you'll have to substitute "blue" for the exact color you want.

    I may add an option to more easily override the included style sheet sometime in the future, but for now this is the best option.


  3. YTC
    Posted 4 years ago #

    Thanks so much, Kevin! It worked and looks great!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Doc Embedder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic