ThemeShaper Forums » Thematic

[closed]

remove_action problems

(3 posts)
  • Started 9 years ago by RahulB
  • Latest reply from lenmason
  • This topic is not resolved
  1. RahulB
    Member

    Hi,

    I am trying
    // Remove default Thematic actions
    function remove_thematic_actions() {
    remove_action('thematic_header','thematic_access',9);
    if (is_singular() || is_home())
    {
    remove_action('thematic_navigation_above', 'thematic_nav_above',2);
    remove_action('thematic_navigation_below', 'thematic_nav_below',2);
    }
    remove_action('thematic_indexloop', 'thematic_index_loop');

    }
    add_action('init','remove_thematic_actions');

    But the pagenav and indexloop are still seen.
    Where should I dig to get a solution?
    -Rahul

    Posted 9 years ago #
  2. Hi,

    conditional tags won't work at 'init'. Remove the actions and create a new one including the regular part and the one for is_home / is_singular.

    Chris

    Posted 9 years ago #
  3. lenmason
    Member

    Chris, Could you explain what you wrote for RahulB, please. This is similar to what I am facing.

    Conditional statements cannot be used at "init." Are you saying to remove the actions and then set up a conditional inside a new function that will add them back if necessary?

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.