Not signed in (Sign In)

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
  1.  
    Apologies if this is a WP question--I did my best to search the Tarski forum and also WP support for a solution, but I wasn't able to find a solution that matched my skills. (My PHP is weak, but I have basic HTML ability and I have a basic understanding of WP--I've set up WP blogs before, but none with the Tarski theme.) Thanks for your help.

    I'm running WP 2.2 and Tarski 1.4 and I have set up a sample site here to demonstrate my problem: www.littleimpact.com

    I'd like to create a 3-page site, which looks like this:

    Welcome (static front page)
    2nd page (static page)
    Blog

    I have created those pages, modified page order, and used Option>Reading>Front Page to assign a static front page.

    Now I have two problems with my navigation menu:
    1) I'd like to remove the "Home" link which appears before "Welcome";
    2) I'd like the dynamic navigation to work for the "Blog" page. (Currently, the link does not go "green" when it is the current page.

    I was able to solve #1 by editing function.php and deleting lines 278-9:

    if(is_home()) { $homeStatus = $current; }
    echo '<li><a id="nav-home" ' . $homeStatus . 'href="' . get_settings('home') . '">' . __('Home', 'tarski') . "</a></li>\n";

    But I couldn't solve #2. Also, I'm hoping to find a cleaner solution to #1, if possible.

    Grateful for any assistance--looking forward to using this theme,
    Sam
  2.  

    Thanks for bringing this up, ideally (given that WP provides an option for a static front page which it didn’t used to) all this would be dealt with by the template without having to fudge stuff. I’ll see what I can do on that end.

    In the meantime, removing the ‘Home’ reference fixes #1 as you’ve found, not sure what you can do for #2 besides taking the ‘Blog’ page off the list on the Tarski Options page and adding it in the place of the ‘Home’ link (which you could move to the end if you like).

  3.  
    Thanks for your quick reply--I appreciate it.

    I'll leave the sample site as is (www.littleimpact.com) so others can see the problem I'm trying to solve, and I'll try to apply your suggestion to another installation.

    Re #2: I'm struggling a bit to get the dynamic menu to work when I manually add the "Blog" link to the navbar (I'm doing it as an include in constants.php), but I think I can dig into the php a little and figure it out. Learning as I go. . .

    thanks again
    Sam
  4.  

    Changes committed to trunk as revisions 25/26, get that and then let me know if it doesn’t work properly (or as expected).

  5.  
    Outstanding! Issue resolved.

    I tried my best to break your solution by re-naming/re-ordering pages, turning the static front page on/off, re-assigning the blog page. Still works perfectly on my end.

    I appreciate your responsiveness--I'll be converting several blogs over to your theme this afternoon. Donation to follow. Thanks Ben.

    Best,
    Sam
  6.  

    Glad it’s working ok, I’ve just submitted another small fix (I wrote ‘post’ instead of ‘posts’ in a couple of places) to trunk. Thanks for bringing this up, I’ve not used static front pages myself before so I doubt it would have come up otherwise.

  7.  
    @Sam,

    How do you change the posting page's name into "blog", mine is called "Home", i am using 1.5