WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. YTC
    Member
    Posted 2 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!!

    http://wordpress.org/extend/plugins/google-document-embedder/

  2. k3davis
    Member
    Plugin Author

    Posted 2 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.

    Kevin

  3. YTC
    Member
    Posted 2 years ago #

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

    Tammy

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic