- This topic has 17 replies, 3 voices, and was last updated 14 years, 11 months ago by imported_Ryan.
-
AuthorPosts
-
January 1, 2010 at 8:57 pm #7393imported_RyanMember
Try this:
[code:32vu4qgv]
<?php if ( function_exists(‘pixopoint_menu’) ): ?>
<?php pixopoint_menu(); ?>
<?php else : ?>
<ul class="sf-menu menu clearfix">
<li><a href="<?php bloginfo(‘url’) ?>"><?php echo arras_get_option(‘topnav_home’) ?>[/url]</li>
<?php
if (arras_get_option(‘topnav_display’) == ‘pages’) {
wp_list_pages(‘sort_column=menu_order&title_li=’);
} else if (arras_get_option(‘topnav_display’) == ‘linkcat’) {
wp_list_bookmarks(‘category=’.arras_get_option(‘topnav_linkcat’).’&hierarchical=0&show_private=1&hide_invisible=0&title_li=&categorize=0&orderby=id’);
} else {
wp_list_categories(‘number=11&hierarchical=1&orderby=id&hide_empty=1&title_li=’);
}
?>
</ul>
<?php endif ?>
<ul class="rss clearfix">
<?php if ($feed == ”) : ?>
<li><a href="<?php bloginfo(‘rss2_url’); ?>"><?php _e(‘Posts’, ‘arras’) ?>[/url]</li>
<?php else : ?>
<li><a href="<?php echo $feed; ?>"><?php _e(‘Posts’, ‘arras’) ?>[/url]</li>
<?php endif; ?>
<?php if ($comments_feed == ”) : ?>
<li><a href="<?php bloginfo(‘comments_rss2_url’); ?>"><?php _e(‘Comments’, ‘arras’) ?>[/url]</li>
<?php else : ?>
<li><a href="<?php echo $comments_feed; ?>"><?php _e(‘Comments’, ‘arras’) ?>[/url]</li>
<?php endif; ?>
</ul>
<?php arras_below_nav() ?>
<div id="main">
<div id="container" class="clearfix">
[/code:32vu4qgv]January 2, 2010 at 9:42 pm #7394AnonymousMemberYou mean, in "header.php", I should replace these lines :
if ( !function_exists(‘pixopoint_menu’) ) {
wp_enqueue_script(‘hoverintent’, get_template_directory_uri() . ‘/js/superfish/hoverIntent.js’, ‘jquery’, null, false);
wp_enqueue_script(‘superfish’, get_template_directory_uri() . ‘/js/superfish/superfish.js’, ‘jquery’, null, false);
}by the ones you posted? Is that right? I almost lost my entire site once by altering a few lines of code, so I won’t take any more chances.
January 3, 2010 at 12:39 am #7395imported_RyanMemberNo. I meant to replace the code [b:3pjhwn5b]you[/b:3pjhwn5b] posted, with the code [b:3pjhwn5b]I[/b:3pjhwn5b] posted.
If you are backing everything up, then breaking your theme shouldn’t really matter.
I break entire sites multiple times every day. But since I have backups it doesn’t matter.
If you aren’t doing it already, then working on a local or test site would be a good idea too instead of breaking your actual live site, even if only for a few seconds before you get the backup loaded again.
-
AuthorPosts
- You must be logged in to reply to this topic.