Title: Creating custom menu links structure
Last modified: August 19, 2016

---

# Creating custom menu links structure

 *  [Binji](https://wordpress.org/support/users/binji/)
 * (@binji)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/creating-custom-menu-links-structure/)
 * Hi
    im very new to WordPress so please be patient 🙂
 * Im currently making my own theme and im not really sure how to solve one of my
   problems.
    I want to have rounded cornes for the background of current page using
   image files but i cant seem to find a good way to do it. Function _wp\_page\_menu_
   looks only useful if i want to add something around ALL links – not only current
   page. Is there a more flexible function?
 * Another way would be to get links from database and format them to my desires.
   If i understand correctly i can use pull data from wp_posts table where post_type
   equals page and then use is_page function to check if im on a selected page.
   
   I also tried to see how wp_page_menu gets its data but could find the code anywhere.
 * Any suggestions? 🙂
    Thank you

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

 *  [Rafael Sirotheau](https://wordpress.org/support/users/rsirotheau/)
 * (@rsirotheau)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/creating-custom-menu-links-structure/#post-1623574)
 * wordpress adds a class to active page… class name is current_page_item… just 
   edit the css for it..
 *  Thread Starter [Binji](https://wordpress.org/support/users/binji/)
 * (@binji)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/creating-custom-menu-links-structure/#post-1623626)
 * I know it does.. but i need to change the structure (add 2 extra divs for rounded
   borders) not just change the css….
 * Thanks for your post though but i really dont see any way how to accomplish it
   by css only (except by using CSS3).
 *  [Rafael Sirotheau](https://wordpress.org/support/users/rsirotheau/)
 * (@rsirotheau)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/creating-custom-menu-links-structure/#post-1623706)
 * You can try using jQuery (if you have some knowledge about js) to dinamically
   add/change content in your code.. but it’s not hard..
 * look at [http://api.jquery.com/](http://api.jquery.com/).
 * Hope this help!
 *  Thread Starter [Binji](https://wordpress.org/support/users/binji/)
 * (@binji)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/creating-custom-menu-links-structure/#post-1623728)
 * Thanks..didnt think of that before 🙂

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

The topic ‘Creating custom menu links structure’ is closed to new replies.

 * 4 replies
 * 2 participants
 * Last reply from: [Binji](https://wordpress.org/support/users/binji/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/creating-custom-menu-links-structure/#post-1623728)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
