Title: Problems with functions.php and echo do_shortcode
Last modified: June 4, 2020

---

# Problems with functions.php and echo do_shortcode

 *  Resolved [madinal](https://wordpress.org/support/users/madinal/)
 * (@madinal)
 * [6 years ago](https://wordpress.org/support/topic/problems-with-functions-php-and-echo-do_shortcode/)
 * Hi!
 * I am struggeling now over 3 weeks, and I think I have the same problem as shown
   [here](https://wordpress.org/support/topic/issue-between-envira-bootstrap-and-jquery/#post-9885486).
 * I don´t have the big experience with the functions.php.
    When I click on a button
   on my side, ajax is calling an action in my functions.php, and the “echo do_shortcode(‘[
   envira-gallery id=”38767″]’);” delivers back the gallery. But, when I click on
   one picture, I have the same problem as described above in the link.
 * How do I emplement the code from the solution into my functions.php?
    I have 
   downloaded the newest version of the bootstrap and stored it in the same folder
   as the functions.php lies:
 * function pwwp_enqueue_my_scripts() {
    // jQuery is stated as a dependancy of 
   bootstrap-js – it will be loaded by WordPress before the BS scripts wp_enqueue_script(‘
   bootstrap-js’, ‘../wp-content/themes/fk-kronborg-divi/bootstrap.bundle.min.js’,
   array(‘jquery’), true); // all the bootstrap javascript goodness } add_action(‘
   wp_enqueue_scripts’, ‘pwwp_enqueue_my_scripts’);
 * But it doesn¨t help/work.
 * Would anybody please be so kind and help me with that?
    Thanks in advance! Martin.

Viewing 1 replies (of 1 total)

 *  [edwinenvira](https://wordpress.org/support/users/edwinenvira/)
 * (@edwinenvira)
 * [6 years ago](https://wordpress.org/support/topic/problems-with-functions-php-and-echo-do_shortcode/#post-12943897)
 * Hello [@madinal](https://wordpress.org/support/users/madinal/)
 * We would need to investigate the specific installation to further investigate
   and check what is causing that please submit a support request [HERE](https://enviragallery.com/contact/)
   so you can share the details and our support team can handle it.
 * Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Problems with functions.php and echo do_shortcode’ is closed to new replies.

 * ![](https://ps.w.org/envira-gallery-lite/assets/icon-256x256.png?rev=2022837)
 * [Envira Gallery - Image Photo Gallery, Albums, Video Gallery, Slideshows & More](https://wordpress.org/plugins/envira-gallery-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/envira-gallery-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/envira-gallery-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/envira-gallery-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/envira-gallery-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/envira-gallery-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [edwinenvira](https://wordpress.org/support/users/edwinenvira/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/problems-with-functions-php-and-echo-do_shortcode/#post-12943897)
 * Status: resolved