Bird
0
0

You want to create a WordPress dashboard navigation that highlights the current page link. Which method is best?

hard📝 Scenario Q8 of 15
Wordpress - WordPress Basics and Architecture
You want to create a WordPress dashboard navigation that highlights the current page link. Which method is best?
AManually change link colors in the menu editor
BAdd JavaScript to reload the page on every click
CUse CSS classes like 'current-menu-item' added automatically by WordPress
DCreate separate menus for each page
Step-by-Step Solution
Solution:
  1. Step 1: Understand WordPress menu CSS classes

    WordPress adds classes like 'current-menu-item' to highlight active links automatically.
  2. Step 2: Choose best method for highlighting current page

    Using these CSS classes with styles is the best practice.
  3. Final Answer:

    Use CSS classes like 'current-menu-item' added automatically by WordPress -> Option C
  4. Quick Check:

    Auto CSS classes highlight current menu [OK]
Quick Trick: WordPress auto-adds CSS classes for active links [OK]
Common Mistakes:
  • Manually changing colors is inefficient
  • Reloading page with JS is unnecessary
  • Creating many menus is complex

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes