Title: insert script for our flipbook
Last modified: August 19, 2016

---

# insert script for our flipbook

 *  [tylerlemke](https://wordpress.org/support/users/tylerlemke/)
 * (@tylerlemke)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/insert-script-for-our-flipbook/)
 * I am new to wordpress.
 * I want to insert this script:
    ——————————————————————- <script type=”text/javascript”
   src=”[http://viewer.zmags.com/js/tinyCatalog.js”></script&gt](http://viewer.zmags.com/js/tinyCatalog.js”></script&gt);
   <script> var mag = new TinyCatalog(130636, “Omaha Magazine Jan Feb 2009 – Best
   of Omaha”); mag.setBackgroundColor(“#FFFFFF”); mag.setSize(260, 168);
 *  // Change line below to link to an url
    // mag.setLaunchURL(“[http://www.dom.tld&#8221](http://www.dom.tld&#8221););//
   mag.setTarget(“_self”); mag.draw(); </script> ——————————————————————- but I am
   not sure how.
 * The above script puts a box on my page that show a flipbook and links to the 
   full flip version.
 * Here is an example of the script in action:
    [http://readonlinenow.com/](http://readonlinenow.com/)
 * Can someone please tell me how to insert the a script into my wordpress pages?
 * Thank you,
    Tyler

Viewing 1 replies (of 1 total)

 *  [kweilbacher](https://wordpress.org/support/users/kweilbacher/)
 * (@kweilbacher)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/insert-script-for-our-flipbook/#post-963404)
 * Tyler, I had the same issue as you. The javascript for zmags works fine if placed
   within a text widget, but not if you wanted it to display in the body of a page.
   Here’s a solution that finally worked for me:
 * Step 1: Copy and paste the first line of code (“< script type= … < / script>”)
   into the header.php file of your template. Place it between the Meta and Stylesheet
   section.
 * Step 2: Create a text file on your computer (name it anything you wish, perhaps
   vmags.txt) and copy and paste the rest of your code (“< script> var mag … < /
   script>”) into the text file and upload it to your website.
 * Step 3: Download the following plugin and install on your WordPress site. This
   allows you to implement free form HTML, Javascript, and PHP code: [http://www.myvirtualdisplay.com/2008/09/11/including-free-form-php-into-wordpress/](http://www.myvirtualdisplay.com/2008/09/11/including-free-form-php-into-wordpress/)
 * Step 4. On the page where you wish to display your emag, enter the following 
   code: [include_HTML: [http://yourdomain.com/vmags.txt%5D](http://yourdomain.com/vmags.txt%5D)
 * That’s it!

Viewing 1 replies (of 1 total)

The topic ‘insert script for our flipbook’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [kweilbacher](https://wordpress.org/support/users/kweilbacher/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/insert-script-for-our-flipbook/#post-963404)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
