Title: GenerateBlocks – missing CSS
Last modified: May 6, 2022

---

# GenerateBlocks – missing CSS

 *  [smile9381](https://wordpress.org/support/users/smile9381/)
 * (@smile9381)
 * [4 years ago](https://wordpress.org/support/topic/generateblocks-missing-css/)
 * Absolutely loving how lightweight this plugin is, and I’m psyched that it just
   uses Gutenberg. However, it is not respecting my GenerateBlocks at all. Is there
   a way that I can get my GB blocks to display properly? Any PHP snippet or code
   change that will enable that? Thank you!

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

 *  Thread Starter [smile9381](https://wordpress.org/support/users/smile9381/)
 * (@smile9381)
 * [4 years ago](https://wordpress.org/support/topic/generateblocks-missing-css/#post-15620283)
 * p.s. Would also love for the plugin to have a top-level link rather than be hidden
   in the settings menu. 🙂
 *  [nebin2010](https://wordpress.org/support/users/nebin2010/)
 * (@nebin2010)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/generateblocks-missing-css/#post-15788243)
 * Hi there, I have had the same issue. Dont know if you still need help.
 * Add this code snippet to your functions.php or Snippet plugin. This should work
   for you like it did for me. Had to do some digging to see what the CPT was called.
 *     ```
       add_filter( 'generateblocks_do_content', function( $content ) {
           $args = array(
               'post_type' => 'adp-popup',
               // Other args if you need them.
           );
   
           $posts = get_posts( $args );
   
           foreach ( (array) $posts as $post ) {
               if ( isset( $post->post_content ) ) {
                   $content .= $post->post_content;
               }
           }
   
           return $content;
       } );
       ```
   
 *  [Bryckroad](https://wordpress.org/support/users/bryckroad/)
 * (@bryckroad)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/generateblocks-missing-css/#post-15803624)
 * [@nebin2010](https://wordpress.org/support/users/nebin2010/) Unfortunately your
   snippet didn’t work for me. I used the Snippets plugin to add the code as a PHP
   snippet. When that didn’t work I tried to add it directly to the bottom of my
   funcitons.php file but that created a few errors. Any suggestions?
    -  This reply was modified 3 years, 11 months ago by [Bryckroad](https://wordpress.org/support/users/bryckroad/).

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

The topic ‘GenerateBlocks – missing CSS’ is closed to new replies.

 * ![](https://ps.w.org/advanced-popups/assets/icon.svg?rev=2690535)
 * [Advanced Popups](https://wordpress.org/plugins/advanced-popups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-popups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-popups/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-popups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-popups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-popups/reviews/)

 * 3 replies
 * 5 participants
 * Last reply from: [Bryckroad](https://wordpress.org/support/users/bryckroad/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/generateblocks-missing-css/#post-15803624)
 * Status: not resolved