…So now that we have all of our markup in place, next we're going to…take all of that markup and we're going to store it in a Java Script variable.…So let's switch back to our theme folder, and inside the mymarquee folder…let's open up JS and let's open up marquee.js in our text editor.…Now let's switch back to B snippets, inside of here let's scroll down and find…snippet 11 What we are going to do inside…the Java Script file is declare a variable.…We're going to call this marqueeVars.…Now I am using curly brackets here, because we're going to use this as an…object and, inside we're going to set all of the variable up as paired values.…
So screenSize: and then this is going to be stored as a string literal.…We're going to use the words large and small.…We have a width, we're going to set the default to zero.…Mobile size, this is going to be the minimum…width before we switch between large and small.…We have a series of other variable here that are going to be used…to control the user experience over the marquee, we'll talk about those later.…
This course was created by Chris Converse. We're honored to host this training in our library.
- Adding photos to the Media Library
- Creating a custom post type
- Adding custom CSS to your theme
- Retrieving data from the custom post type
- Injecting HTML and navigation
- Styling the large and small marquees
- Reordering the marquee panels
Skill Level Intermediate
Q: This course was updated on 11/25/2014. What changed?
A: We added one new movie about the dangers of modifying updateable themes.