Title: Calling the CSS
Last modified: August 30, 2016

---

# Calling the CSS

 *  Resolved [xycris](https://wordpress.org/support/users/xycris/)
 * (@xycris)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/calling-the-css/)
 * Hi,
 * I noticed that Page Builder automatically adds this code to the wp_head():<style
   type=”text/css” media=”all” id=”siteorigin-panels-grids-wp_head”>
 * I am trying to child theme that does not have a wp_head() code so all codes related
   to Page Builder is not included. Is there a php code that can possibly call this
   manually outside the wp_head() function?
 * Thanks
 * [https://wordpress.org/plugins/siteorigin-panels/](https://wordpress.org/plugins/siteorigin-panels/)

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

 *  Plugin Support [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/calling-the-css/#post-6211940)
 * Hi [@xycris](https://wordpress.org/support/users/xycris/)
 * Thanks for reaching out.
 * Is there a particular reason you’re looking to remove `wp_head` ? It’s arguably
   one of the most essential theme hooks.
 *  Thread Starter [xycris](https://wordpress.org/support/users/xycris/)
 * (@xycris)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/calling-the-css/#post-6211959)
 * Hi misplon, Thank you very much for the immediate response.
 * I understand. We are also in need of that hook for templates we made, however,
   this specific template of our client calls for codes that are not hosted in our
   client’s server that we have a hard time to over ride. It is a very old template
   and our client wants to keep it. I am not sure when was the table the “in thing”
   for building themes.
 * We are creating simplified pages that totally ignores the `wp_head()` hook and
   just contain the body without any navigation or footer much like a dead end page.
   These pages are actually just secret pages accessible to members only. I can’t
   show you a sample because of its nature.
 * Is that possible?
 *  Plugin Support [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/calling-the-css/#post-6211987)
 * Thanks for explaining. That makes sense.
 * On line 1029 of siteorigin-panels.php you’ll find the function in question. I
   guess you could remove the action on line 1049 (remove_action) and then add your
   own action to replace.
 * Page Builder previously had the option to add CSS as a file instead of inline.
   This caused significant performance issues so it was dropped. I think that option
   was available pre 2.0. If you’re working in a safe development environment you
   could perhaps try out 1.4.12 and see if the option is in that version:
 * [https://wordpress.org/plugins/siteorigin-panels/developers/](https://wordpress.org/plugins/siteorigin-panels/developers/)
 *  Thread Starter [xycris](https://wordpress.org/support/users/xycris/)
 * (@xycris)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/calling-the-css/#post-6212086)
 * Hi Misplon,
 * Thank you very much for you response.
 * I am confused now.
 * I tried the following code but gives me only the meta keyword ‘yes’:
 *     ```
       <?php if ( function_exists('siteorigin_panels_print_inline_css')) : ?>
           <meta name="keywords" content="yes">
           <?php
               add_action('xycris','siteorigin_panels_print_inline_css');
               echo do_action('xycris');
           ?>
       <?php else : ?>
           <meta name="keywords" content="no">
       <?php endif; ?>
       ```
   
 * Am I doing it right?
 * I wish the following code could appear:
 * `<style type="text/css" media="all" id="siteorigin-panels-grids-wp_head">/* Layout
   1386 */ #pl-1386 .panel-grid-cell .so-panel { margin-bottom:30px } #pl-1386 .
   panel-grid-cell .so-panel:last-child { margin-bottom:0 } @media (max-width:780px){#
   pg-1386-0 .panel-grid-cell { float:none;width:auto } #pl-1386 .panel-grid { margin-
   left:0;margin-right:0 } #pl-1386 .panel-grid-cell { padding:0 } } </style>`
 *  Plugin Support [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/calling-the-css/#post-6212102)
 * I’ll ask [@gpriday](https://wordpress.org/support/users/gpriday/) if he can check
   this for us later but the following is working in my Vantage Child theme, although
   it’s a normal child theme with a wp_head hook:
 *     ```
       remove_action( 'wp_head', 'siteorigin_panels_print_inline_css', 12 );
       add_action( 'vantage_main_top', 'siteorigin_panels_print_inline_css', 12 );
       ```
   
 * vantage_main_top is an existing theme hook in the theme I’m working with. That’s
   the only value that needs changing above.
 * Hope it helps.
 *  Plugin Support [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/calling-the-css/#post-6212106)
 * [@gpriday](https://wordpress.org/support/users/gpriday/) took a look now. The
   above should do the trick 🙂
 *  Thread Starter [xycris](https://wordpress.org/support/users/xycris/)
 * (@xycris)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/calling-the-css/#post-6212146)
 * Hi Misplon,
 * Thank you very much for staying with me on this.
 * I will check the code out and see how it works with this task of mine.
 * I will let you know the result.
 *  Plugin Support [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/calling-the-css/#post-6212147)
 * For sure 🙂 Let us know how you come along.
 *  Thread Starter [xycris](https://wordpress.org/support/users/xycris/)
 * (@xycris)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/calling-the-css/#post-6212256)
 * Hi Misplon,
 * Just to let you know, things worked best for our client.
 * Thank you very much!
 *  Plugin Support [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * (@misplon)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/calling-the-css/#post-6212257)
 * Super, really glad to hear it 🙂
 * All the best.

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

The topic ‘Calling the CSS’ is closed to new replies.

 * ![](https://ps.w.org/siteorigin-panels/assets/icon.svg?rev=2556869)
 * [Page Builder by SiteOrigin](https://wordpress.org/plugins/siteorigin-panels/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/siteorigin-panels/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/siteorigin-panels/)
 * [Active Topics](https://wordpress.org/support/plugin/siteorigin-panels/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/siteorigin-panels/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/siteorigin-panels/reviews/)

## Tags

 * [php code](https://wordpress.org/support/topic-tag/php-code/)
 * [style](https://wordpress.org/support/topic-tag/style/)

 * 10 replies
 * 2 participants
 * Last reply from: [Andrew Misplon](https://wordpress.org/support/users/misplon/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/calling-the-css/#post-6212257)
 * Status: resolved