nova.pon
Member
Posted 4 years ago #
How can I use graphical buttons instead of text for the "Pages Widget" pages links in the sidebar? I haven't been able to find anything on this anywhere. I'm trying to convert a website that was done just with html to one done with WordPress while keeping the same look. The page is http://www.novamusic.ca and I'm trying to find away do the rollover graphical navigation menu in WordPress. Thanks!!
You could do something like this:
<?php
foreach(get_pages() as $page){
echo "<a href=\"$page->guid\">";
echo "<img src=\"/images/$page->post_name.jpg\" />";
echo "</a>";
}
?>
initialsbr
Member
Posted 3 years ago #
I want to do this too. Where would I insert that code? In the sidebar.php file in the wp-admin folder?
As for doing rollovers, would I do that all in CSS?
Thanks so much.