Skip to main content

Timeline for Enqueue Style for a page/pages only

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
May 6, 2011 at 13:12 comment added kaiser Nice to hear. Gald it worked.
May 6, 2011 at 9:06 vote accept Sisir
May 6, 2011 at 9:04 comment added Sisir Worked! The problem was with the init action hook. the conditional is false when init is called. After adding the style to wp_print_styles it worked perfectly. Thanks!
May 6, 2011 at 8:38 comment added Sisir Thanks for the get_template_directory_uri(); tips :) and directory name with dot won't cause any problems. As i said the code works fine if i don't use the conditional is_page();. I guess is_page() is false when wordpress running the functions.php file. So the style not adding.
May 5, 2011 at 22:22 history edited kaiser CC BY-SA 3.0
added 184 characters in body
May 5, 2011 at 22:17 history answered kaiser CC BY-SA 3.0