ThemeShaper Forums » Thematic


remove_action problems

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


    I am trying
    // Remove default Thematic actions
    function remove_thematic_actions() {
    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');


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

    Posted 11 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.


    Posted 11 years ago #
  3. lenmason

    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 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.