ThemeShaper Forums » Thematic

[closed]

Menu Disappears after updating to 0.9.7.7

(13 posts)
  • Started 7 years ago by blueblue
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. blueblue
    Member

    Guys need some help, the menu disappeared when i updated to the latest thematic version, but it shows in the other categories

    In Firefox and IE , the menu in #access doesnt show up. The search button in the sidebar disappears too.

    When I click one of the categories, the menu + search button shows up in IE but not in firefox, any thoughts on this ?

    Everything worked fine until I updated to the latest version, and to wordpress 3.0.2

    This is my site btw :

    www.blue2x.com

    Posted 7 years ago #
  2. blueblue
    Member

    tried copying this but still no luck

    define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
    define('THEMATIC_COMPATIBLE_POST_CLASS', true);
    define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);
    define('THEMATIC_COMPATIBLE_FEEDLINKS', true);

    Posted 7 years ago #
  3. blueblue
    Member

    this is my functions.php

    <?php

    function remove_thematic_branding() {
    remove_action('thematic_header','thematic_blogdescription',5);
    remove_action('thematic_header','thematic_access',9);
    }
    add_action('init','remove_thematic_branding');

    // Add the Logo and Search Box next to the menu
    function childtheme_access(){ ?>
    <div id="access">
    <div class="skip-link">"><?php _e('Skip to content', 'thematic'); ?></div>
    <div id="menu">
    <?php wp_page_menu('sort_column=menu_order') ?>
    </div>
    </div><!-- #access -->
    <?php
    }
    add_action('thematic_header', 'childtheme_access', 4);

    // ---------- Add Home Page in the menu
    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');

    // Filter away the default scripts loaded with Thematic
    function childtheme_head_scripts() {
    // Abscence makes the heart grow fonder
    }
    add_filter('thematic_head_scripts','childtheme_head_scripts');

    function childtheme_favicon() { ?>
    <link rel="shortcut icon" href="<?php echo
    bloginfo('stylesheet_directory') ?>/images/favicon(2).ico" />
    <?php }
    add_action('wp_head', 'childtheme_favicon');

    function childtheme_content() {
    return 'full';
    }
    add_filter('thematic_content', 'childtheme_content');

    define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
    define('THEMATIC_COMPATIBLE_POST_CLASS', true);
    define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);
    define('THEMATIC_COMPATIBLE_FEEDLINKS', true);

    ?>

    Posted 7 years ago #
  4. you are trying to filter a function that isn't running anymore. you've removed the thematic access and replaced it with your own wp_page_menu. so either you drop your child access function and simply move the thematic_access and use the filter:

    // ---------- Add Home Page in the menu
    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');
    
    add_action('thematic_header', 'thematic_access', 4);

    OR

    you ditch the filtering function and just use your child access

    function childtheme_access(){ ?>
    <div id="access">
    <div class="skip-link">"><?php _e('Skip to content', 'thematic'); ?></div>
    <div id="menu">
    <?php 
    
    $args = array(
    'show_home' => 'Home',
    'sort_column' => 'menu_order',
    'menu_class' => 'menu',
    'echo' => true
    );
    wp_page_menu($args) 
    
    ?>
    </div>
    </div><!-- #access -->
    <?php
    }
    add_action('thematic_header', 'childtheme_access', 4);

    since you don't appear to be doing anything special in your childtheme_access i'd probably go the first route. didn't test either, but i think they ought to work.

    Posted 7 years ago #
  5. Hi,

    There is a bug in the current release that is causing this interaction with your childtheme_menu_args function. I believe you can solve the echo issue with the current release version by adding a priority 11 like so:

    add_filter('wp_page_menu_args','childtheme_menu_args', 11);

    This issue has been resolved in the latest svn branch.

    -Gene

    Posted 7 years ago #
  6. blueblue
    Member

    still having problems =(

    Posted 7 years ago #
  7. merge my code with gene's. get rid of everything else until you sort this out.

    // ---------- Add Home Page in the menu
    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', 11);
    
    add_action('thematic_header', 'thematic_access', 4);
    Posted 7 years ago #
  8. Any success here?

    Posted 7 years ago #
  9. blueblue
    Member

    still no luck, when i use this

    add_filter('wp_page_menu_args','childtheme_menu_args');

    its okai but the home menu image doesn't show up.

    add_filter('wp_page_menu_args','childtheme_menu_args', 11);

    using this breaks the menu , it shows vertically and the images dont show up.

    btw did i miss an image here in the menu , its like when the text images in the menu have a delay or something,

    Posted 7 years ago #
  10. You're not getting the sf-menu class. Thematic has a function to add it.

    If you are using Helga's code above to pass the arguments from a function then change the echo parameter to FALSE and use this code:

    echo  thematic_add_menuclass( wp_page_menu( childtheme_menu_args() ) );
    Posted 7 years ago #
  11. guido-wagner
    Member

    Hello,
    my Name is Guido. I´m from Berlin, Germany. My friend and i have a problem with the Thematic-Theme 0.9.7.7.

    We can´t get the "home-Button". We put following Code into the functions.php, but it dosen´t work.

    <?php

    // ---------- Add Home Page in the menu
    function staytuned_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','staytuned_menu_args', 20);

    ?>

    What is our mistake? Is the functions.php the right php-folder? What must we do?

    Thank you for your help!

    Posted 7 years ago #
  12. Hi Guido,

    first, i would have recommended starting your own thread versus bumping one from months ago.

    second, i'd upgrade to a newer thematic:
    http://developing.thematic4you.com/thematic-development-release/

    third you can read everything about menus here:
    http://forums.themeshaper.com/topic/thematic-menus-demystified-1

    if you still have issues, start your own thread. and "it doesn't work" is extremely vague. tell us what you are seeing instead. that helps us help you.

    prost!

    Posted 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.