main nav highlight, category, parent and posts highlight, sidebars,multiple blogs

Discussion in 'General WordPress Discussions' started by deepakraj, Dec 26, 2011.

  1. deepakraj New Member

    I have the following queries when using the wordpress to create my website

    1) while I open my website deepakraj.in, the About Main nav button should highlight in blue. I tried to change the CSS as said in some of the forums but it didn't work

    But, when I click on About main nav button it highlights(blue color) because I have set the css for the .current-menu-item {background-color:#4f94cd;}

    2) When I click on the Recent blogs in the about page, it should re-direct to blog(main nav) page and highlight in

    blue. Or even if i click on the blogs present in the blog.php, the blog main nav button should enable to blue.

    3) Same with the category and posts. While click on the category and posts the specific category should highlight.

    4) i like to create different sidebars for all the pages. how do I do it?

    5) Can i have multiple blogs? I like to have blog, photos and drawings, videos pages in blog format. is it possible.
  2. Kevin Muldoon WordPress Fanatic!

    Hi Deepakraj,

    1) Your about menu item turns blue when I hover over it. Did you resolve this issue since posting this question?

    2 & 3) The code you have used lists the latest blog posts using excerpts. The blog link in the nav will only turn blog if the visitor is at http://deepakraj.in/blog/. I'm not sure if there is a workaround to this that will highlight the top nav whenever any blog post is viewed. If you don't have a lot of pages you could simply make the top menu show the blog link as blue as long as about, portfolio, videos, photos and drawings or contact aren't selected.

    4) The sidebar generator plugin is a quick and easy way to add different sidebars to different pages.

    5) This is what categories are for. Simple create a category for each one. The category archive page will show the latest posts for photos and drawings, videos etc. This is what I have done on WP Mods. Look at the top of the page at the WP Mods navigation menu; you will see themes, plugins, news, views, tutorials and resources listed. All of these are categories.
  3. deepakraj New Member

    Thanks Kevin.

    1) Yes, using my server I have redirected my deepakraj.in to deepakraj.in/about/ so its working fine.

    2 &3) How do I make the blog main nav selected. This is same for photos and drawings and videos page. If users click on a photo or videos they should be directed to the respective pages. Which CSS or function is hadling these in Wordpress.

    4) I am trying it. but unable to see the sidebar. I have changed the below code present in sidebar.php

    <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar Widgets')) : else : ?

    <?php endif; ?>

    into

    <?php if (function_exists('generated_dynamic_sidebar') && generated_dynamic_sidebar('Sidebar Widgets')) : else : ?>

    <?php endif; ?>

    I trying to get it right. It asks which sidebar to be replaced with the generated one. I have added categories and posts. But I am not getting right.

    5)I have understood a little what you have written, you say that the categories will help us to have different blogs.

    thanks again kevin
    -D
  4. Kevin Muldoon WordPress Fanatic!

    1) I wouldn't recommend doing that. It's not a good solution. You should be resolving this by editing the class that styles your navigation menu.

    2 & 3) This is the same issue as number 1 i.e. your navigation class is styling the menu. You're stylesheet is probably using 'current-menu-item' to style the active menu item. Am I right? I recommend reading the WordPress article Dynamic Menu Highlighting. Another good article is 'Setting the current menu state with CSS'.

    4 ) I tested the plugin for you on my test blog. The code you entered was correct but it didn't change anything. I also tried WP Sidebars and WordPress Custom Sidebar but they didn't work either. Two that did work were Content Aware Sidebars, and custom sidebars. I recommend trying one of those. :)

    5 ) No that's not what I'm saying. I'm saying you don't need to have different blogs :) Setting up a completely different blog is suitable when you want to launch something completely different. That's not what you are trying to achieve - you simply want to blog about different topics. This is very common and is what categories (and to a lesser degree tags) were created for.
  5. deepakraj New Member

    hi kevin

    Thanks.

    1) I have found out there is php file wp-nav.php I think I have to edit the file to get the main nav highlighted. So far I am unable to figure it out.

    2&3) Yes that's correct. Current menu item. I shall go through the links you provided and get back to you.

    4) This is working. I found some snippets in the net. Its working fine

    5) I am unable to solve this. My webiste has two sections main content on right and in the left it has links(Recent Updates). (the other two, header and footer).

    I created some categories in the left (recent updates) for all the four pages using sidebar. now the problem is when I click on the link it goes to seperate page(I think its singhle.php) and the sidebar goes away. I do not know how to fix it.

    Thanks Kevin

    -Deepak
  6. Kevin Muldoon WordPress Fanatic!

    With regards to number 5, I think you are a little unsure about how WordPress works. The header and footer are parts of the design and have nothing to do with the content itself.

    Your blog template needs updating. There is little meta information being displayed so users don't know what category a post has been published in. You need to understand that posts and pages are two different post types on WordPress. Pages are used for static content pages e.g. contact, about, faq etc. Posts are used to publish news, tips, links etc.

    Did you create this theme yourself or download it from someone on the web?
  7. deepakraj New Member

    I learn from web and YouTube tutorials from the Internet and also lynda.

    I have already edited and customized child theme which is easier than creating a customized template (which is easier to control and customize accordingly. but needed more time)

    And I know that header and footer are present in the WordPress themes. It uses get header, get footer, get sidebar in the pages and we have to specify the template name so the content displays correctly when page downloads.

    I just got lost in the post and pages.
  8. Kevin Muldoon WordPress Fanatic!

    I think you need to get a little more experience in editing WordPress themes. I recommend downloading a few good designs and editing them. You should start to see common functions etc and understand how templates are built. Specifically, choose a theme that has everything you need such as a home page, good blog template etc.
  9. deepakraj New Member

    I have two options. 1) Wordpress custom theme. and 2) Editing the child theme (twenty ten theme). I have my design ready. I shall go second option. Which is working fine as I needed. :)
  10. Kevin Muldoon WordPress Fanatic!

    There are thousands of free designs available though that might be set up more closely to what you are looking for. Worth remembering for the future. Plus, there's a new default design coming in the next few months.

Share This Page

Users found this page by searching for:

  1. wordpress parent blog nav current

    ,
  2. wordpress main navigation highlight

    ,
  3. wordpress current ancestor two different menus

    ,
  4. wordpress post highlight different navigation,
  5. how to create highlight posts on main page by wordpress,
  6. wordpress navigation highlight blog post,
  7. wp pages posts highlight