have some beginner questions regarding menus/links.
my current code for the top nav:
<?php wp_nav_menu(array('menu_id' => 'primary'))?>
Thats all i got, now i want to add fontello icons next to every pagelink, how do I do this? When creating a static site this could look like this: <a href="#><i class="icon-home"></i>Home</a> ... but how can i do this in WP when all i see is the php above?
(im a noob to WP)
So i got an image on my site, that i want to make a link of. But the static <a href="imgdir"><img></a> wont work. So the question is.. how do i link between pages?
I have made a template file named news.php with template name "blog", and I have added this code:
<?php while(have_posts()): the_post()?>
<h2><a href="<?php the_permalink()?>"><?php the_title() ?></a></h2>
The problem is that nothing is shown when i create a new page and use the blog template. The exact same code works fine if i put it on index.php.
This will show all the options you have available to you for the wp_nav_menu function:
I'm not sure what you're asking with your image question. Are you trying to insert an image into a post or page? Or your theme?
I don't understand what you're trying to accomplish with your news.php file. Here's how file naming works in wordpress:
You should also have a look at this: http://codex.wordpress.org/Theme_Development
This topic is now closed. New replies are no longer allowed.