-
Notifications
You must be signed in to change notification settings - Fork 93
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
Workshops: Move layout elements from post_content
to theme.
#203
Conversation
Having them in `post_content` means that we have to manually update all existing posts every time we change the layout.
253f8f4
to
b1e8102
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good, and doesn't seem to break anything. A few comments below.
Also, I wonder if while we're at this, we should just get rid of the 'template_lock' => 'all'
property of the workshop CPT entirely. I think we set it originally to make sure that the stuff in the sidebar didn't get accidentally deleted, and now that the sidebar is hard-coded, it seems like more of a hinderance than anything else.
<textarea | ||
id="workshop-video-url" | ||
name="video-url" | ||
class="large-text" | ||
rows="4" | ||
><?php echo esc_url( $post->video_url ); ?></textarea> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why a textarea instead of just a text input?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's never enough room to display the full URL in a text
input, even with the .large-text
class
wp-content/themes/pub/wporg-learn-2020/single-wporg_workshop.php
Outdated
Show resolved
Hide resolved
Removed |
Having them in
post_content
means that we have to manually update all existing posts every time we change the layout.See #195, https://wordpress.slack.com/archives/C01KC5VDQBC/p1616436392000400
Closes #201
Blocker for #200