Title: Insert animation thrue &#039;PHP Code Widget&#039;
Last modified: August 22, 2016

---

# Insert animation thrue 'PHP Code Widget'

 *  Resolved [adminbart](https://wordpress.org/support/users/adminbart/)
 * (@adminbart)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/insert-animation-thrue-php-code-widget/)
 * Hi,
 * I’m using the ‘Vantage’-theme with the Page Builder ([http://siteorigin.com/theme/vantage/](http://siteorigin.com/theme/vantage/)).
 * I additionally installed the widget ‘PHP Code Widget’.
    What I wanted to do is
   to insert the necessary PHP code, in order to display my Edge composition, ID
   number 1:
 *     ```
       <?php
          if(function_exists('edge_suite_view')){
            echo edge_suite_view(1);
           echo 'it exists';
          }
        ?>
       ```
   
 * Unfortunately this won’t show my compostion. But ‘it exists’ does show …
 * Does somebody have an idea of what’s wrong?
 * Thanks in advance!
    Bart Raymakers Belgium
 * [https://wordpress.org/plugins/edge-suite/](https://wordpress.org/plugins/edge-suite/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [ti2m](https://wordpress.org/support/users/ti2m/)
 * (@ti2m)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/insert-animation-thrue-php-code-widget/#post-5279780)
 * Try using the snippet at the bottom of the linked tutorial:
 * [http://old.edgedocks.com/content/edge-suite-integrate-edge-animate-wordpress](http://old.edgedocks.com/content/edge-suite-integrate-edge-animate-wordpress)
 *  Thread Starter [adminbart](https://wordpress.org/support/users/adminbart/)
 * (@adminbart)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/insert-animation-thrue-php-code-widget/#post-5279783)
 * Hi ti2m,
 * Thank you for your reply. I tried this but does’nt do the trick 🙁
 *     ```
       <?php
        if(function_exists('edge_suite_comp_view_inline')){
            echo edge_suite_comp_view_inline(1); echo 'ok';
          }
       ?>
       ```
   
 * It echoes ‘ok’ so the function exists. I did show multiple compositions using
   iframes. Pretty ugly solution, certainly when the design needs to be responsive.
 *  Plugin Author [ti2m](https://wordpress.org/support/users/ti2m/)
 * (@ti2m)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/insert-animation-thrue-php-code-widget/#post-5279820)
 * Can you try using a shortcode with id 1 and see if that works, just to make sure
   you got the right id.
 *  Plugin Author [ti2m](https://wordpress.org/support/users/ti2m/)
 * (@ti2m)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/insert-animation-thrue-php-code-widget/#post-5279849)
 * Marking as resolved, feel free to reopen.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Insert animation thrue 'PHP Code Widget'’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/edge-suite.svg)
 * [Edge Suite](https://wordpress.org/plugins/edge-suite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/edge-suite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/edge-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/edge-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/edge-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/edge-suite/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [ti2m](https://wordpress.org/support/users/ti2m/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/insert-animation-thrue-php-code-widget/#post-5279849)
 * Status: resolved