ThemeShaper Forums » Thematic

Issue with menu - not linking properly

(9 posts)
  • Started 4 years ago by devhel
  • Latest reply from amygail
  • This topic is resolved
  1. This topic was addressed here, http://forums.themeshaper.com/topic/blog-tab-in-main-nav#post-2188 but my issue goes beyond that.

    So far, there are two navigational elements: "blog" and "about". "Blog" is meant to be the home page. The "about" page is a secondary page. Things would appear to be working, except that when you are on the "about" page and click back to "blog", the "blog" page then renders without the test posts. Weird, huh?

    This is the test site: http://www.dennisvanhuffel.org/client/rpeterson/

    Thanks in advance if anyone can provide me w/some direction or a solution!

    Posted 4 years ago #
  2. I think I may have solved this problem -- using the "page links to" widget, I'm pointing to the index page (in this instance, "blog') to the homepage.

    It seems to be working, I'm just wondering if this would be considered "good" practice or a hack that will come back to haunt me.

    Posted 4 years ago #
  3. amygail
    Member

    The home page is already, by default, the blog.
    If you go back to your 'reading' section and set it so "front page displays: your latest posts" - you'll should be good.

    Is there a reason you wanted to use a static page instead?

    Posted 4 years ago #
  4. Thanks for the input Amy. In error, I may have deleted the original homepage that came with the install. But I did think that it would be easy enough to create a new page (which is what I thought I did by following the instructions from the thread I linked to in my first post).

    Whether or not it is being demonstrated, my intention is that the 'blog' page is dynamic and the 'about' page is static. Though, depending on the business requirement, I can envision a scenario for brochure-ware website that would need to have some marketing message front and center.

    -Dennis

    Posted 4 years ago #
  5. amygail
    Member

    If you want the "home" page to be the "blog" page - you don't need to worry about setting a page template - or even creating the page - it's auto-magic.

    There's no 'homepage' template, you didn't delete it. By default, the 'blog' page is actually the index. Make sense?

    If you're just going to have the "blog" and "about" page, it will make your life a bit easier to go with the method I mentioned above.

    Posted 4 years ago #
  6. I'm following you, but if I delete the page I manually created for "blog", I also lose it as a navigational element. My question would be, how/where would a navigational element for that page then get created? Is this something obvious and automated that I'm missing?

    Thanks!

    Posted 4 years ago #
  7. amygail
    Member

    You can add the "home" link with this (in your functions.php)

    function childtheme_menu_args($args) {
        $args = array(
            'show_home' => 'Home',
            'sort_column' => 'menu_order',
            'menu_class' => 'menu',
            'echo' => true
        );
    	return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args');

    If you want it to say "Blog" instead of "Home" change
    'show_home' => 'Home',
    to

    'show_home' => 'Blog',

    Posted 4 years ago #
  8. Amy, you rock. I'm just digging into all this and operating on a learning curve. I also tend to jump into things and slowly work my way out. I didn't realize that the functions.php file was commented out until I went in there.

    Posted 4 years ago #
  9. amygail
    Member

    Cool! Glad it worked for you.

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.