• I am new to wordpress.

    I want to insert this script:
    ——————————————————————-
    <script type=”text/javascript” src=”https://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(“https://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:
    https://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)
  • 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: https://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: https://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.