Results 1 to 2 of 2
Jun 26, 2013, 08:20 #1
- Join Date
- Feb 2013
- 0 Post(s)
- 0 Thread(s)
some basic questions regarding menu,links,blogs in WP.
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> <?php the_content();?> <?php endwhile;?>
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.
Jul 5, 2013, 10:12 #2
- Join Date
- Jul 2003
- Northeastern USA
- 37 Post(s)
- 1 Thread(s)
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