- This topic is empty.
Viewing 1 post (of 1 total)
-
AuthorPosts
-
September 24, 2011 at 4:02 pm #34493
mikeman
Memberand i didnt do anything to the nav menu code.. so i dont get it..
this is my functions.php i was working on a custom footer(BOTTOM of THE CODE, right next to the hard coded nav menu and i realized the menu doesnt display now.. :(
http://ocixx.com/joseph/
// Add a widgetized aside just below the header
function childtheme_leaderasides() { ?>
echo ''. "n" . ''. "n";- ' . "n";
dynamic_sidebar('1st-leader-aside');
echo '
} ?>
echo ''. "n" . ''. "n";- ' . "n";
dynamic_sidebar('2nd-leader-aside');
echo '
} ?>
echo ''. "n" . ''. "n";- ' . "n";
dynamic_sidebar('3rd-leader-aside');
echo '
} ?>
add_action('thematic_belowheader','childtheme_leaderasides',6);
/* end 3 widgets above content */
/* this shit is commented out, go down a ways
// Add a widgetized aside above the main asides with the start of a wrapper: #sidebar
function childtheme_sidebarstart() { ?>
*/
// Add Thematic Power Blog Subscribe Widget
function thematic_power_blog_subscribe() { ?>
// Register new widgetized areaa and the new widgets
function childtheme_widgets_init() {
/* // Register new widgetized areaa
register_sidebar(array(
'name' => 'Crown Aside',
'id' => 'crown-aside',
'before_widget' => '- ',
",
'after_widget' => "
'before_title' => "",
n",
'after_title' => "
));
*/
register_sidebar(array(
'name' => '1st leader Aside',
'id' => '1st-leader-aside',
'before_widget' => '- ',
",
'after_widget' => "
'before_title' => "",
n",
'after_title' => "
));
register_sidebar(array(
'name' => '2nd leader Aside',
'id' => '2nd-leader-aside',
'before_widget' => '- ',
",
'after_widget' => "
'before_title' => "",
n",
'after_title' => "
));
register_sidebar(array(
'name' => '3rd leader Aside',
'id' => '3rd-leader-aside',
'before_widget' => '- ',
",
'after_widget' => "
'before_title' => "",
n",
'after_title' => "
));
// Register the new widgets
register_sidebar_widget('Thematic Power Blog Subscribe', 'thematic_power_blog_subscribe');
}
add_action( 'init', 'childtheme_widgets_init' );
function child_remove_pagetitles() {
// Make changes to the original function
if (is_page('some-cool-page') || is_page('some-other-cool-page') || is_page('monkasia')) {
$posttitle = '';
} elseif (is_single()) {
$posttitle = '' . get_the_title() . "
n";
//continue with original function
} elseif (is_404()) {
$posttitle = '' . __('Not Found', 'thematic') . "
n";
} else {
$posttitle = '$posttitle .= get_permalink();
n";
$posttitle .= '" title="';
$posttitle .= __('Permalink to ', 'thematic') . the_title_attribute('echo=0');
$posttitle .= '" rel="bookmark">';
$posttitle .= get_the_title();
$posttitle .= "
}
return $posttitle;
}
add_filter('thematic_postheader_posttitle' ,'child_remove_pagetitles');
// This will create your widget area
function my_widgets_init() {
register_sidebar(array(
'name' => 'Header Aside',
'id' => 'header-aside',
'before_widget' => '- ',
'after_widget' => "",
'before_title' => "",
n",
'after_title' => "
));
}
add_action( 'init', 'my_widgets_init' );
// adding the widget area to your child theme
function my_header_widgets() {
if ( function_exists('dynamic_sidebar') && is_sidebar_active('header-aside') ) {
echo ''. "n" . ''. "n";- ' . "n";
dynamic_sidebar('header-aside');
echo '' . "n" . '
}
}
add_action('thematic_aboveheader', 'my_header_widgets', 8);
// Remove the default Thematic Access
function remove_thematic_actions() {
remove_action('thematic_header','thematic_access',9);
}
add_action('init','remove_thematic_actions');
// My custom menu
function custom_childtheme_access(){?>
function my_footer($thm_footertext) {
$thm_footertext = 'Copyright © 2011 JoosephJacobo.com
Licenseing & RE-USE Info';
return $thm_footertext;
}
add_filter('thematic_footertext', 'my_footer'); -
AuthorPosts
Viewing 1 post (of 1 total)
- The forum ‘Back End’ is closed to new topics and replies.