Title: Theme development
Last modified: September 15, 2023

---

# Theme development

 *  [Valerie Blackburn](https://wordpress.org/support/users/valmedia2023/)
 * (@valmedia2023)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/theme-development-13/)
 * Answers to this code problem are welcome. 
 * Line  88: <nav class=’primary-menu-wrapper’ aria-label='<?php echo esc_attr_x(‘
   Horizontal’, ‘menu’, ‘Theme name ); ?>’>
 * I received a warning that a translation function has an incorrect number of arguments
   in the file.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/theme-development-13/#post-17052617)
 * If that’s a direct copy-and-paste, then your problem is with the ‘s that you 
   use. Look at the code…
 *     ```wp-block-code
       <nav class=’primary-menu-wrapper’ aria-label='<?php echo esc_attr_x( ‘Horizontal’, ‘menu’, ‘Theme name ); ?>’>
       ```
   
 * Can you see where the closing ‘ is for Theme name? It’s after your closing ?>
   tag, so that’s very far out of place. Set that back to where it’s meant to be
   and you should see it work.
    -  This reply was modified 2 years, 7 months ago by [catacaustic](https://wordpress.org/support/users/catacaustic/).
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/theme-development-13/#post-17054395)
 * `‘Theme name ); ?>’>`
    The last quote is OK where it is, it closes the aria-label
   attribute value. But Theme name is still missing its closing quote. Add it so
   the parser can “see” the right number of args.
 * This topic is using the wrong quote character for coding use (curly instead of
   straight). Your original source code may be correct, the forum’s parser automatically
   makes curly quotes if the text is not within a code block.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Theme development’ is closed to new replies.

## Tags

 * [development](https://wordpress.org/support/topic-tag/development/)
 * [theme-design](https://wordpress.org/support/topic-tag/theme-design/)
 * [wordpress theme development](https://wordpress.org/support/topic-tag/wordpress-theme-development/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/theme-development-13/#post-17054395)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
