Join Chris Converse for an in-depth discussion in this video Adding custom CSS files to your theme, part of Creating a Marquee in WordPress with jQuery.
- View Offline
…Now we're going to add some custom CSS into our theme as well.…Now, for CSS files, we don't have to…register these, we can add them into the header.…But we're going to put these into an…include, just like we did with our functions.…So, let's switch back to our theme folder.…And inside of the My Marquee folder let's open MarqueeHeaderInclude.php.…Now, with this open in our text editor, let's switch back to our snippets file.…We're in snippets A.…Let's come down and find snippet 5.…In here, I have a link to a style sheet.…Inside of the href, we have a php echo…statement, which is going to use the get template…directory, which gives us the path to the activated…theme, and then the mymarquee folder, css, and then marquee.css.…
We also have an ie conditional statement here, which checks to see…if somebody's using a version of Internet explorer less than version 9.…If they are, we have a link to a Google…HTML5 shiv which will enable IE8 to understand and render HTML5.…And we also have the link to our…own custom stylesheet, specifically for IE8 called marquee_ie8.…
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