coldclimber Posted February 23, 2008 Share Posted February 23, 2008 I have a menu item in html that works fine like this <li><a href="http://www.web-blogs.co.uk/"><b>Home</b></a></li> but i want to apply this to my word press site i have found where the link is generated from, from the classes page so what i need to do is to change this this line here $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape(apply_filters('the_title', $page->post_title)) . '">' . apply_filters('the_title', $page->post_title) . '</a>'; to include the <b> text link</b> I have been trying different things for ages but no joy so now i need help from a pro Quote Link to comment Share on other sites More sharing options...
drisate Posted February 23, 2008 Share Posted February 23, 2008 theres probably a loop or something ... use this after or before $output .= '<li><a href="http://www.web-blogs.co.uk/"><b>Home</b></a></li>'; Quote Link to comment Share on other sites More sharing options...
coldclimber Posted February 23, 2008 Author Share Posted February 23, 2008 Hi sorry you must have misunderstood me the html link is just an example all i need to do is to place the <b> </b> somewhere in the php code as that is what outputs the text link Quote Link to comment Share on other sites More sharing options...
drisate Posted February 23, 2008 Share Posted February 23, 2008 oh then just place it in lol <?php $output .= $indent . '<li class="' . $css_class . '"><b><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape(apply_filters('the_title', $page->post_title)) . '">' . apply_filters('the_title', $page->post_title) . '</a></b>'; ?> Quote Link to comment Share on other sites More sharing options...
coldclimber Posted February 23, 2008 Author Share Posted February 23, 2008 Ah fixed it with trial and error i got there in the end $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape(apply_filters('the_title', $page->post_title)) . '"><b>' . apply_filters('the_title', $page->post_title) . '</b></a>'; Quote Link to comment Share on other sites More sharing options...
drisate Posted February 23, 2008 Share Posted February 23, 2008 if puting it out of the <a> did'int work it probably meand your class="' . $css_class . '" was taking care of the formating. you could of just edit the css Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.