ThemeShaper Forums » Thematic

[closed]

Conditional statement to move #access on homepage

(2 posts)
  • Started 3 years ago by elderberry
  • Latest reply from Danieliser
  • This topic is not resolved
  1. elderberry
    Member

    Hi All, still hopeless with php. Just want to move the #access div to a different location on the homepage only. I can use css and body.home #access to style it into a new location, but I really really would like to get a clue about using action hooks... Thought this would work:

    // #access from Header to abovefooter on homepage
    function move_menu() {
    if (is_front_page()){
    remove_action('thematic_header','thematic_access',9);
    add_action('thematic_abovefooter','thematic_access');
    }
    }
    add_action('init', 'move_menu');

    Posted 3 years ago #
  2. Danieliser
    Member

    Not at my computer right now but this might be the problem, missing add_action priority.

    add_action('thematic_abovefooter','thematic_access',0);

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.