Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor styles #7

Open
samikeijonen opened this issue Dec 15, 2014 · 1 comment
Open

Editor styles #7

samikeijonen opened this issue Dec 15, 2014 · 1 comment

Comments

@samikeijonen
Copy link

I was wondering about how WP loads editor styles. I have used this with relative path and seems working fine with child themes.

/* Add the theme's editor styles. This also checks child theme's css/editor-style.css file. */
$editor_styles[] = 'css/editor-style.css';

Is there some benefits that I'm missing using absolute path and is_child_theme check like in Saga Theme?

@justintadlock
Copy link
Owner

When you define an absolute path versus a relative path, it changes the order they're loaded. I can't remember which was loaded first. I just remember doing them all the same way for consistency and making sure I was in control of what was loaded when. I'm not sure if that's changed in recent WP versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants