The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

wrapping html around parent links only (1 post)

  1. stabilimenta
    Posted 7 years ago #

    I am creating a custom theme for a client and am having trouble figuring out how to wrap a <div> around the top level link, and wrap the linked text in a span, but only for the parent pages in my navigation menu, like this

    <li id="community">
    	<div class="parent">
    		<a href="#"><span>Top Level Page 1</span></a>
    		<li><a href="#"">Sub Page 1</a></li>

    I'm a designer, and know very little about PHP constuctors.
    I am working in the classes.php, but can't figure out how to treat the parents differently from the children. Can anyone offer me some guidance.
    Thank you,

Topic Closed

This topic has been closed to new replies.

About this Topic