Title: Does not working with php function in text widget.
Last modified: November 25, 2016

---

# Does not working with php function in text widget.

 *  Resolved [charlesjdvp](https://wordpress.org/support/users/charlesjdvp/)
 * (@charlesjdvp)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/does-not-working-with-php-function-in-text-widget/)
 * My project have a text widget, where has some php code. If this text is a simple
   like <?php echo Hello world;?> , “Fixed Widget” pluggin works well. I scroll 
   down a mensagem comes down.
    But if text widget has any php function like <?php
   echo component_cart_menu();?> , “Fixed Widget” pluggin doesn’t work. I scroll
   down and not happens.

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

 *  Plugin Contributor [Max Bond](https://wordpress.org/support/users/max-bond/)
 * (@max-bond)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/does-not-working-with-php-function-in-text-widget/#post-8482062)
 * Well… You have to investigate deeper! The plugin cannot be affected by php in
   described way, but it can be affected by php generated code!
 * Check frontend for javascript errors after <?php echo component_cart_menu();?
   > output!
 *  Thread Starter [charlesjdvp](https://wordpress.org/support/users/charlesjdvp/)
 * (@charlesjdvp)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/does-not-working-with-php-function-in-text-widget/#post-8502601)
 * I fixed. I diffined id (<div id=”teste_function”>) in the plugin where contain
   php function.
    Thank you.
 *  Plugin Contributor [Max Bond](https://wordpress.org/support/users/max-bond/)
 * (@max-bond)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/does-not-working-with-php-function-in-text-widget/#post-8502702)
 * Good!

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

The topic ‘Does not working with php function in text widget.’ is closed to new 
replies.

 * ![](https://ps.w.org/q2w3-fixed-widget/assets/icon-256x256.png?rev=2384479)
 * [Fixed Widget and Sticky Elements for WordPress](https://wordpress.org/plugins/q2w3-fixed-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/q2w3-fixed-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/q2w3-fixed-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/q2w3-fixed-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/q2w3-fixed-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Max Bond](https://wordpress.org/support/users/max-bond/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/does-not-working-with-php-function-in-text-widget/#post-8502702)
 * Status: resolved