3 Rookie questions

Discussion in 'WordPress' started by quatto, Dec 11, 2010.

  1. #1
    1. My top nav menu is identical to the footer menu. What if I only want certain menu items on the top menu but all on the footer menu?

    2. How can I put my blog archive/all posts as a menu item without making the front page static?

    3. How can I put images in my footer? Do I need a footer widget?
     
    quatto, Dec 11, 2010 IP
  2. WebPageMistakes

    WebPageMistakes Well-Known Member

    Messages:
    91
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    110
    #2
    This would depend on how your blog theme is constructed. e.g. if your navigation is showing your pages then it would be using the wp_list_pages coding in the theme files. Possibily they have used the same coding in the footer.
    In the sidebar list recent posts, categories or archives by year (I wouldn't do both). Is this along the lines of what you were thinking?
    Again, depending on how your theme was constructed, you put the coding in the footer.php file of your theme.
     
    WebPageMistakes, Dec 11, 2010 IP
  3. quatto

    quatto Peon

    Messages:
    196
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Where would I find this code? index.php? footer.php?
     
    quatto, Dec 11, 2010 IP
  4. WebPageMistakes

    WebPageMistakes Well-Known Member

    Messages:
    91
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    110
    #4
    Different parts of the rendered page are in different files. Which files depends on the designer.

    Usually, if there is a sidebar the file for this section is called sidebar.php.

    The top navigation might be in the header.php file.

    Backup your theme to your computer via FTP before you start messing around editing the files, either offline and uploading or via the built-in theme editor in Wordpress. If ya mess up, you have the original to go back to.;)
     
    WebPageMistakes, Dec 11, 2010 IP
    quatto likes this.
  5. quatto

    quatto Peon

    Messages:
    196
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    OK, here is the bottom of my header.php - now how do I get it so only certain pages show on the top nav menu?

    <li><a href="<?php echo get_option('home'); ?>">Home</a></li>
    <li><?php wp_list_pages('title_li='); ?></li>
    </ul>

    </div>
     
    quatto, Dec 12, 2010 IP
  6. WebPageMistakes

    WebPageMistakes Well-Known Member

    Messages:
    91
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    110
    #6
    WebPageMistakes, Dec 12, 2010 IP
  7. quatto

    quatto Peon

    Messages:
    196
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks, that helped alot. I am more on the right track however, I try to put this in the code above and I keep screwing up my top nav menu...where does this piece of code go based on my above code?

    <?php wp_list_pages('exclude=17,38' ); ?>
     
    quatto, Dec 12, 2010 IP
  8. WebPageMistakes

    WebPageMistakes Well-Known Member

    Messages:
    91
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    110
    #8
    WebPageMistakes, Dec 12, 2010 IP
  9. quatto

    quatto Peon

    Messages:
    196
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    quatto, Dec 13, 2010 IP
  10. Yuuko008

    Yuuko008 Member

    Messages:
    682
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    33
    #10
    I'll try to answer your question.

    1.] For the top menu, try to open header.php, and look for wp_list_pages(). You can use either the include or exclude.

    2.] I don't really understand your question. Do you want the blog archive/all posts on the main content or on the sidebar. Try to go to wordpress.org and search for the terms is_home() and is_front_page(). This will help you.

    3.] If the theme provides you a footer widget then you can just use "Text" as the widget then put it on the footer widget section. But if there's no footer widget available, you can hard-code it on the footer.php

    I hope i helped :)
     
    Yuuko008, Dec 13, 2010 IP
    quatto and homeworker11 like this.
  11. homeworker11

    homeworker11 Banned

    Messages:
    1,549
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #11
    LOL don't know about OP, but it did help me :)
     
    homeworker11, Dec 13, 2010 IP
  12. quatto

    quatto Peon

    Messages:
    196
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    As for #2...

    What I mean is, I want in my nav menu lets say a item that says "posts". If clicked, it goes to a page with ALL my posts. But I want it in my nav menu as a choice.
     
    quatto, Dec 13, 2010 IP
  13. Yuuko008

    Yuuko008 Member

    Messages:
    682
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    33
    #13
    LOL, no problem :) You can alwasy click the "Add to this user's reputation" if I helped you on any way :)

    Ahh ok i understand now. Well if you are new to wordpress or if you don't know how to edit wordpress templates yet then i strongly suggest that you use the front page/post page feature of wordpress. Or else you need to edit your index.php or add a new template.
     
    Yuuko008, Dec 13, 2010 IP
  14. quatto

    quatto Peon

    Messages:
    196
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Won't using the wordpress feature make the front page static?
     
    quatto, Dec 13, 2010 IP