Join Chris Converse for an in-depth discussion in this video Locating and modifying the gallery markup, part of Creating a Photo Gallery in WordPress with jQuery.
…Now when we moved our custom gallery from one theme to…another, we have some slight variations in some of the design.…This is because from theme to theme, some of the markup…might be a little bit different, or some of the CSS rules.…And because we wrote the CSS rules to work off of the markup generated by WorkPress.…This leaves us a little bit vulnerable to some of the mark-up in differnet themes.…So what we're going to do in this movie is change the core HTML so…that the markup is always the same, as we move our content from theme to theme.…So the first thing we're going to do is go back…to the main WordPress folder, which is part of your installation.…
Let's come down into the wp-includes.…Let's scroll down here, and let's find a file called media.php.…Once you locate that, let's open that up in our text editor.…And this is one of the core PHP files that's part…of the WordPress Installation that controls how media elements are coded.…So if you scroll through here you can see all of…the different markup, and all of the different queries to the database.…
Skill Level Beginner
Q: This course was updated on 11/24/2014. What changed?
A: We added one new movie about the dangers of modifying updateable themes.