• 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)
  • wordpress adds a class to active page… class name is current_page_item… just edit the css for it..

    Thread Starter Binji

    (@binji)

    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).

    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/.

    Hope this help!

    Thread Starter Binji

    (@binji)

    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.