Title: Plugin not applying the code
Last modified: September 23, 2020

---

# Plugin not applying the code

 *  Resolved [eli1356](https://wordpress.org/support/users/eli1356/)
 * (@eli1356)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-applying-the-code/)
 * HI
    I have tested a few diffrent codes – Also Css And also php this for example
   when adding it as a snippet it didn’t work } ul, ol { margin: 0 0 0 0 !important;}
 * > [View post on imgur.com](https://imgur.com/XxPCYUa)
 * 
    but when addin in into elemntor css it did work Can you please help Thanks!

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

 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-applying-the-code/#post-13447032)
 * Hello.
 * You have a CSS error. Remove the } at the beginning.
 *     ```
       ul, ol {
       margin: 0 0 0 0 !important;
       }
       ```
   
 *  Thread Starter [eli1356](https://wordpress.org/support/users/eli1356/)
 * (@eli1356)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-applying-the-code/#post-13453983)
 * Hi
    You where right about that I really had a problem with the code. However,
   I have a similar problem with a PHP code
 * Here is the code that I am trying to use
    add_filter( ‘cartflows_page_template’,‘
   change_page_template’, 10, 1 );
 * function change_page_template( $page_template ){
    $page_template = ‘default’;
 *  return $page_template;
    } I have entered it into woody as needed as you can 
   see here [https://i.imgur.com/tl1pnvf.png](https://i.imgur.com/tl1pnvf.png) only
   when adding the code into functios.php the code is working. Can you please help
   Thanks again for your amazing plugin and support!
 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-applying-the-code/#post-13454174)
 * Read the documentation for this hook. It is possible to run it in the snippet–
   it’s too late. You can try this
 *     ```
       add_action('init', function(){
       add_filter( 'cartflows_page_template', 'change_page_template', 10, 1 );
       function change_page_template( $page_template ){
       $page_template = 'default';
       return $page_template;
       }
       });
       ```
   
 *  Thread Starter [eli1356](https://wordpress.org/support/users/eli1356/)
 * (@eli1356)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-applying-the-code/#post-13465875)
 * Amazing! Thanks so much it worked!!!
    Not only an amazing plugin but also amazing
   support!

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

The topic ‘Plugin not applying the code’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3475630)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [eli1356](https://wordpress.org/support/users/eli1356/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-applying-the-code/#post-13465875)
 * Status: resolved