Hi there,
Yeah that was going to be my next question, page load as this is going in the header. As long as this is nothing to worry about great however I'll do tests when we make the site live tomorrow. A little concerning anything should increase page size.
Ok you say add:
if ( is_page( 1234 ) ) {
add_action('wp_head', 'my_custom_styles', 100);
}
Your code inside the patch starts with:
<?php
/**
* New custom code snippet (replace this with snippet description).
*/
toolset_snippet_security_check() or die( 'Direct access is not allowed' );
// Put the code of your snippet below this comment.
add_action('wp_head', 'my_custom_styles', 100);
function my_custom_styles()
{
echo '<style>
/* Toolset Support patch */
If the home page is: post=12
Are you suggesting adding this?
Like:
<?php
/**
* New custom code snippet (replace this with snippet description).
*/
toolset_snippet_security_check() or die( 'Direct access is not allowed' );
// Put the code of your snippet below this comment.
if ( is_page( 1234 ) ) {
add_action('wp_head', 'my_custom_styles', 100);
function my_custom_styles()
{
echo '<style>
/* Toolset Support patch */
Can you show by example, thing is thsi appears on three pages so far....how would you code look with three separate page/post id's
Thanks, Pete