Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating and styling a dropdown menu

From: Templating with Joomla! 3 and Bootstrap

Video: Creating and styling a dropdown menu

I am at joomla.kinetecoinc.com. This is the finished state of the Joomla! 3.0 Essential Training Course, and I just wanted to take a look at the old navigation bar that I had here. So, before what I was able to do, was I would to mouse over some of these navigation items that have secondary navigation, and I had a dropdown menu that I was able to use here on this website, this was driven by the protostar template. In my custom template, right now what I have is the navigation bar the html, for that we just added in a previous video. But I don't have these dropdown menus.

Creating and styling a dropdown menu

I am at joomla.kinetecoinc.com. This is the finished state of the Joomla! 3.0 Essential Training Course, and I just wanted to take a look at the old navigation bar that I had here. So, before what I was able to do, was I would to mouse over some of these navigation items that have secondary navigation, and I had a dropdown menu that I was able to use here on this website, this was driven by the protostar template. In my custom template, right now what I have is the navigation bar the html, for that we just added in a previous video. But I don't have these dropdown menus.

And the reason why is that the dropdown menu styling, dropdowns are actually built into Bootstrap, the ability to have the dropdowns, but the specific dropdown implementation that you have here inside of protostar is part of the protostar template itself. If you like the dropdowns here, why not we just borrow from those and make those appear on my website. Why re-invent the wheel? Why try to figure out the whole Bootstrap dropdown implementation? Let's just borrow from protostar, and borrow the CSS from there, and then incorporate that into our template.

That's what I am going to show you how did you in this particular video. Back here in Dreamweaver, I am going to go open up File>Open, the protostar.css. I'm going to go to my protostar folder, and I am going to go to the css folder, and I am going to go to template.css. This is all of the html that's making up the protostar template. What I can do now is I am going to do a Find for some kind of .nav followed by .nav-child.

Because in the protostar template, the html is marked up this way. This is where the dropdown menus are located. I am going to go ahead and find this here inside of the protostar template.css. Where I'm interested in starting is right here at line 6186. So, this says .navigation .nav-child and this goes on for quite a while, there are several styles that are associated with these dropdown menus. We are going to need to get all of this. We are going to scroll on down through the page here.

At line 6278 is a media query, we are going to stop just before that. All of this code that is located here, all has to do with the dropdown menus. So, I am going to copy all of this, Ctrl +C or Cmd+C to copy. Then I am going to switch over to my custom.css style sheet and I am going to put in a little comment here, that says this is the code for dropdown menus taken from Protostar.

And after that I'm going to Ctrl+V or Cmd+V and so I have pasted in all of those styles that I took from Protostar. This should make our dropdown menus work, right? If you can't go through and find this particular css inside of the Protostar style sheets by all means, I have given you a free exercise file that has a copy of the Protostar CSS in it. And I have another file that I'll give you that has the copy of my modified protostar styles, because we are going to need to modify these a little bit. So, if just say File>Save and I am going to go back to Firefox and I am going to hit Refresh, absolutely nothing happens. Why is that? Well, if we view the source for this web page, and we scroll on down here to our navigation bar in the HTML, you will see that we have our nav appears up here at the top, right our

Show transcript

This video is part of

Image for Templating with Joomla! 3 and Bootstrap
Templating with Joomla! 3 and Bootstrap

58 video lessons · 8950 viewers

Jen Kramer
Author

 
Expand all | Collapse all
  1. 4m 35s
    1. Welcome
      53s
    2. Using the exercise files
      1m 36s
    3. Course prerequisites
      2m 6s
  2. 12m 9s
    1. Installing the starting state exercise files
      6m 17s
    2. Exploring template changes in Joomla! 3
      2m 11s
    3. Discussing CSS and LESS
      3m 41s
  3. 33m 13s
    1. Reviewing the graphic designs
      3m 0s
    2. Understanding Joomla! template file structures
      5m 22s
    3. Configuring a Dreamweaver site and populating it with Bootstrap CSS
      9m 48s
    4. Building the grid
      10m 11s
    5. Adding the Google font
      2m 50s
    6. Adding a custom style sheet
      2m 2s
  4. 36m 58s
    1. Understanding the index.php file
      4m 48s
    2. Converting from index.html to index.php
      7m 41s
    3. Using the module and component insertion code
      7m 26s
    4. Creating a template thumbnail and preview
      2m 51s
    5. Creating a favicon
      2m 17s
    6. Understanding the XML file
      3m 54s
    7. Creating a new XML file
      5m 40s
    8. Creating the ZIP package install
      2m 21s
  5. 19m 48s
    1. Installing the package file
      4m 5s
    2. Fixing typical installation problems
      5m 51s
    3. Assigning modules to the correct positions
      6m 7s
    4. Fixing image paths
      3m 45s
  6. 24m 29s
    1. Using the Firefox Web Developer Toolbar
      6m 14s
    2. Using Firebug
      2m 49s
    3. Using ColorZilla
      2m 42s
    4. Dreamweaver CS6 and Joomla!: Setup
      7m 21s
    5. Dreamweaver CS6 and Joomla!: Workflows
      5m 23s
  7. 1h 20m
    1. CSS workflows
      6m 1s
    2. Fixing the path to custom.css
      2m 16s
    3. Styling the header
      5m 21s
    4. Incorporating Bootstrap markup in the navigation HTML
      6m 48s
    5. Creating and styling a dropdown menu
      6m 14s
    6. Styling the navigation bar
      9m 35s
    7. Styling the navigation text
      6m 47s
    8. Styling the navigation indicator
      2m 48s
    9. Styling the navigation dropdowns
      6m 45s
    10. Styling the main content area
      9m 8s
    11. Styling the testimonials
      7m 50s
    12. Styling the breadcrumbs
      1m 32s
    13. Styling the search button
      5m 31s
    14. Styling the footer
      4m 16s
  8. 33m 48s
    1. Styling the tablet and phone menu button
      5m 55s
    2. Styling the navigation bar for tablets and phones
      8m 13s
    3. Including the mobile logo
      6m 49s
    4. Styling the head of the mobile design
      4m 36s
    5. Styling the body and footer of the mobile design
      8m 15s
  9. 31m 22s
    1. Assigning "optional regions" in a Joomla! template
      5m 22s
    2. Incorporating multiple layouts in a single Joomla! template
      6m 37s
    3. Working with template overrides
      9m 55s
    4. Layout overrides: Modules
      9m 28s
  10. 28m 53s
    1. What is a template style?
      5m 38s
    2. Editing the XML file
      6m 57s
    3. Making changes to index.php for the logo upload
      5m 44s
    4. Making changes to index.php for the header background color
      4m 48s
    5. Configuring the styles
      5m 46s
  11. 1m 55s
    1. Next steps
      1m 55s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Templating with Joomla! 3 and Bootstrap.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.