• kglaze

    (@kglaze)


    Hey guys. So I’m a newbie to this wordpress stuff. I added this code <?php wp_footer(); ?> and <?php wp_head(); ?> in my footer and header because my audio player wasn’t showing up. Now I can’t see audio, or my admin bar, or the slideshow plugin I just donwloaded. I’m pretty sure I messed with the theme and I just don’t understand the coding. Can someone please help me.

    Header
    <!DOCTYPE html>
    <!–[if lt IE 7 ]><html class=”ie ie6″ <?php language_attributes(); ?>> <![endif]–>
    <!–[if IE 7 ]><html class=”ie ie7″ <?php language_attributes(); ?>> <![endif]–>
    <!–[if IE 8 ]><html class=”ie ie8″ <?php language_attributes(); ?>> <![endif]–>
    <!–[if (gte IE 9)|!(IE)]><!–><html <?php language_attributes(); ?>> <!–<![endif]–>
    <head>
    <!– Basic Page Needs
    ================================================== –>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
    <title><?php bloginfo(‘name’); ?> <?php wp_title(‘-‘); ?></title>
    <?php if (of_get_option(‘disable_design’) == 0){ ?>
    <!– Mobile Specific Metas
    ================================================== –>
    <meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
    <?php } ?>

    <!– Favicons
    ================================================== –>
    <?php $favor = of_get_option(‘favicon_uploader’); ?>
    <?php if (!empty($favor)): ?>
    <link rel=”shortcut icon” href=”<?php echo $favor; ?>”>
    <?php else: ?>
    <link rel=”shortcut icon” href=”<?php echo get_template_directory_uri(); ?>/img/favicon.png”>
    <?php endif; ?>

    <?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>

    <?php
    // add facebook thumbnail to this page
    if (! is_404() ) {

    $thumbnail_id = get_post_thumbnail_id();
    if( !empty($thumbnail_id) ){
    $thumbnail = wp_get_attachment_image_src( $thumbnail_id , ‘150×150’ );
    echo ‘<meta property=”og:image” content=”‘ . $thumbnail[0] . ‘”/>’;
    }

    }

    wp_head(); ?>

    <!– end head –>
    </head>
    <body <?php body_class();?> itemscope=”itemscope” itemtype=”https://schema.org/WebPage”&gt;
    <?php if(of_get_option(‘full_box_option’) == ‘box_image_option’){ if(of_get_option(‘background_option’) == ‘background_image’){?>
    <div class=”full-background”><img id=”logo” src=”<?php echo of_get_option(‘background_large_image’);?>” alt=”” /></div>
    <?php }}?>

    <div class=”<?php if(of_get_option(‘full_box_option’) == ‘box_image_option’){echo “body_wraper_box”;}else{echo “body_wraper_full”;}?>”>
    <!– Start header –>
    <header class=”header-wraper”>

    <div class=”header-top-wraper”>
    <div class=”row”>
    <div class=”grid_6 header-top-left-bar”>
    <span class=”blank_space”>.</span>
    <?php if (of_get_option(‘enable_menu_top’) == 1){?>
    <div class=”mainmenu”>
    <?php $top_menu = array(‘theme_location’ => ‘Top_Menu’, ‘container’ => ”, ‘menu_class’ => ‘sf-top-menu’, ‘menu_id’ => ‘menu-top’, ‘fallback_cb’ => false); wp_nav_menu($top_menu);?>
    <div class=”clear”></div>
    </div>
    <?php }?>
    </div>
    <div class=”grid_6 header-top-right-bar”>
    <?php if (of_get_option(‘enable_social_top’) == 1){?>
    <ul class=”icon-wrapper”>
    <?php if(of_get_option(‘facebook_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-facebook”></span>
    <?php } ?>
    <?php if(of_get_option(‘twitter_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-twitter”></span>
    <?php } ?>
    <?php if(of_get_option(‘gplus_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-googleplus”></span>
    <?php } ?>
    <?php if(of_get_option(‘pin_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-pinterest”></span>
    <?php } ?>
    <?php if(of_get_option(‘rss_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-rss-feed”></span>
    <?php } ?>
    <?php if(of_get_option(‘linked_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-linked”></span>
    <?php } ?>
    <?php if(of_get_option(‘youtube_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-youtube”></span>
    <?php } ?>
    <?php if(of_get_option(‘vimeo_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-vimeo”></span>
    <?php } ?>
    <?php if(of_get_option(‘flickr_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-flickr”></span>
    <?php } ?>
    <?php if(of_get_option(‘instagram_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-instagram”></span>
    <?php } ?>
    <?php if(of_get_option(‘dribbble_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-dribbble”></span>
    <?php } ?>
    <?php if(of_get_option(‘picasa_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-picasa”></span>
    <?php } ?>
    <?php if(of_get_option(‘stumbleupon_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-stumbleupon”></span>
    <?php } ?>
    <?php if(of_get_option(‘delicious_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-delicious”></span>
    <?php } ?>
    <?php if(of_get_option(‘behance_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-behance”></span>
    <?php } ?>
    <?php if(of_get_option(‘deviantart_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-deviantart”></span>
    <?php } ?>
    <?php if(of_get_option(‘google_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-google”></span>
    <?php } ?>
    <?php if(of_get_option(‘GitHub_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-GitHub”></span>
    <?php } ?>
    <?php if(of_get_option(‘wordpress_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-wordpress”></span>
    <?php } ?>
    <?php if(of_get_option(‘aim_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-aim”></span>
    <?php } ?>
    <?php if(of_get_option(‘blogger_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-blogger”></span>
    <?php } ?>
    <?php if(of_get_option(‘digg_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-digg”></span>
    <?php } ?>
    <?php if(of_get_option(‘evernote_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-evernote”></span>
    <?php } ?>
    <?php if(of_get_option(‘friendfeed_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-friendfeed”></span>
    <?php } ?>
    <?php if(of_get_option(‘friendster_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-friendster”></span>
    <?php } ?>
    <?php if(of_get_option(‘furl_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-furl”></span>
    <?php } ?>
    <?php if(of_get_option(‘grooveshark_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-grooveshark”></span>
    <?php } ?>
    <?php if(of_get_option(‘lastfm_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-lastfm”></span>
    <?php } ?>
    <?php if(of_get_option(‘livejournal_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-livejournal”></span>
    <?php } ?>
    <?php if(of_get_option(‘magnolia_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-magnolia”></span>
    <?php } ?>
    <?php if(of_get_option(‘mixx_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-mixx”></span>
    <?php } ?>
    <?php if(of_get_option(‘myspace_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-myspace”></span>
    <?php } ?>
    <?php if(of_get_option(‘GitHub_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-GitHub”></span>
    <?php } ?>
    <?php if(of_get_option(‘netvibes_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-netvibes”></span>
    <?php } ?>
    <?php if(of_get_option(‘google_talk_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-google_talk”></span>
    <?php } ?>
    <?php if(of_get_option(‘newsvine_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-newsvine”></span>
    <?php } ?>
    <?php if(of_get_option(‘pownce_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-pownce”></span>
    <?php } ?>
    <?php if(of_get_option(‘reddit_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-reddit”></span>
    <?php } ?>
    <?php if(of_get_option(‘technorati_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-technorati”></span>
    <?php } ?>
    <?php if(of_get_option(‘webshots_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-webshots”></span>
    <?php } ?>
    <?php if(of_get_option(‘websitelink_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-websitelink”></span>
    <?php } ?>
    <?php if(of_get_option(‘yahoo_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-yahoo”></span>
    <?php } ?>
    <?php if(of_get_option(‘yahoo_im_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-yahoo_im”></span>
    <?php } ?>
    <?php if(of_get_option(‘yelp_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-yelp”></span>
    <?php } ?>

    <?php }?>
    <span class=”blank_space”>.</span>
    <div class=”clear”></div>
    </div>
    </div>
    </div>

    <div class=”row”>
    <div class=”<?php if (is_active_sidebar(‘banner-sidebar’)) { echo’grid_3 header-top-left’; } else { echo’grid_12 logo-position’;}?>”>

    <!– begin logo –>
    <?php if(of_get_option(‘logo_option’) == ‘logo_image_option’){?>
    <h4>
    ” alt=”<?php bloginfo(‘description’); ?>”>
    <?php $logo = of_get_option(‘logo_uploader’); ?>
    <?php if (!empty($logo)): ?>
    <img src=”<?php echo $logo; ?>” alt=”<?php bloginfo(‘description’); ?>”/>
    <?php else: ?>
    <img src=”<?php echo get_template_directory_uri(); ?>/images/logo.png” alt=”<?php bloginfo(‘description’); ?>”/>
    <?php endif; ?>

    </h4>
    <?php }else{?>
    <h2 class=”logo_text”>” alt=”<?php bloginfo(‘description’); ?>”><?php bloginfo(‘name’); ?></h2>
    <p class=”logo_description”><?php bloginfo(‘description’); ?> </p>
    <?php }?>
    <!– end logo –>
    <span class=”blank_space”>.</span>
    </div>
    <?php if (is_active_sidebar(‘banner-sidebar’)){ ?>
    <div class=”grid_9 header-top-right”>
    <?php dynamic_sidebar(‘banner-sidebar’);?>
    </div>
    <?php }?>

    </div>

    <!– end header, logo, top ads –>

    <!– Start Main menu –>
    <div id=”menu_wrapper” class=”menu_wrapper<?php if (of_get_option(‘disable_sticky’) == 0){echo ” menu_wrapper_sticky”;}?>”>
    <div class=”row”>
    <div class=”main_menu grid_12″>

    <!– main menu –>
    <div class=”mainmenu”>

    <?php
    $home_link = ‘<ul class=”sf-menu” id=”mainmenu”><li id=”home”><span id=”homeicon”>’ . __(‘Home’, ‘tl_back’) . ‘</span><i class=”icon-home”></i>%3$s’;

    $arg = array(
    ‘theme_location’ => ‘Main_Menu’,
    ‘container’ => false,
    ‘items_wrap’ => $home_link,
    ‘link_before’ => ‘<span>’,
    ‘link_after’=>'</span>’
    );
    ?>

    <?php if (has_nav_menu(‘Main_Menu’)): ?>
    <?php wp_nav_menu($arg); ?>
    <?php else: ?>
    <ul class=”sf-menu” id=”mainmenu”>
    <?php wp_list_categories(‘title_li=&orderby=id’); ?>

    <?php endif; ?>
    <!– end menu –>
    </div>
    <!– end main menu –>

    <?php if (of_get_option(‘disable_search_menu’) == 0){ ?>
    <div class=”search-button-menu”><span id=”tickersearch”><i class=”icon-search”></i></span>
    <form id=”tickersearchform” action=”<?php echo home_url(); ?>” method=”GET” role=”search”>
    <div><label for=”s” class=”screen-reader-text”><?php _e(‘Search for:’, ‘tl_back’); ?></label>
    <input type=”text” id=”s” name=”s” value=”” placeholder=”<?php _e(‘Search here’, ‘tl_back’); ?>”>
    </div>
    </form>

    </div>
    <?php }?>
    </div>

    </div>
    </div>

    <?php if (of_get_option(‘enable_newsticker’) == 1){ ?>
    <div class=”row”>
    <div class=”grid_12 news-ticker-post”>
    <div class=”latest-news”>
    <h3><?php echo of_get_option(‘latest_update’); ?></h3>
    <div class=”container”>
    <?php get_template_part(‘newsticker’); ?>
    </div>
    </div>
    </div>
    </div>
    <?php }?>

    </header>

    Footer
    <!– Start footer –>
    <footer id=”footer-container”>

    <?php if(of_get_option(‘footer_columns’) == ‘footer_0_col’) {}else{?>
    <div class=”footer-columns”>
    <div class=”row”>
    <?php if(of_get_option(‘footer_columns’) == ‘footer_2col’ || of_get_option(‘footer_columns’) == ‘footer_3col’) {?>
    <div class=”<?php if(of_get_option(‘footer_columns’) == ‘footer_2col’){echo “grid_6”;}elseif(of_get_option(‘footer_columns’) == ‘footer_3col’){echo “grid_4″;}?>”><?php if (is_active_sidebar(‘footer1-sidebar’)) : dynamic_sidebar(‘footer1-sidebar’); endif; ?></div>
    <div class=”<?php if(of_get_option(‘footer_columns’) == ‘footer_2col’){echo “grid_6”;}elseif(of_get_option(‘footer_columns’) == ‘footer_3col’){echo “grid_4″;}?>”><?php if (is_active_sidebar(‘footer2-sidebar’)) : dynamic_sidebar(‘footer2-sidebar’); endif; ?></div>
    <?php }?>
    <?php if(of_get_option(‘footer_columns’) == ‘footer_1col’ || of_get_option(‘footer_columns’) == ‘footer_3col’) {?>
    <div class=”<?php if(of_get_option(‘footer_columns’) == ‘footer_1col’){echo “grid_12”;}elseif(of_get_option(‘footer_columns’) == ‘footer_3col’){echo “grid_4″;}?>”><?php if (is_active_sidebar(‘footer3-sidebar’)) : dynamic_sidebar(‘footer3-sidebar’); endif; ?></div>
    <?php }?>
    </div>
    </div>
    <?php }?>

    <?php if(of_get_option(‘disable_copyright_footer’) == 0){?>
    <div class=”footer-bottom”>
    <div class=”row”>
    <div class=”grid_6 footer-left”> <?php echo of_get_option(‘copyright’); ?></div>
    <div class=”grid_6 footer-right”>
    <?php if (of_get_option(‘enable_menu_bottom’) == 1){ ?>

    <?php $footer_menu = array(‘theme_location’ => ‘Footer_Menu’, ‘depth’ => 1, ‘container’ => false, ‘menu_class’ => ‘menu-footer’, ‘menu_id’ => ”, ‘fallback_cb’ => false ); ?>
    <?php wp_nav_menu($footer_menu); ?>

    <?php }else{echo ” “;} ?></div>
    </div>
    </div>

    <!– End footer –>

    <?php
    $tracking_code = of_get_option(‘tracking_code’);

    if (!empty($tracking_code)) {
    echo ‘<script>’ . $tracking_code . ‘</script>’;
    }

    <?php wp_footer(); ?>
    ?>
    </body>
    </html>

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • SJW

    (@whitsey)

    Everything outside of wp_head() and wp_footer() is just HTML. There may be other PHP in there but it is not mandatory for the creation of a theme. (except inclusion of a stylesheet)

    wp_head & wp_footer is what includes all the plugins and additional code that drives vertain behaviours in WP – therefore, adding wp_head(0 should activate the admin bar and related features, not remove them.

    i am 99% confident that this is a theme issue – change themes to twentytwelve or similar – it should work as expected?

    This guide does a good job of covering the basics: https://www.siteground.com/tutorials/wordpress/wordpress_create_theme.htm

    Anything above and beyond that is extended development and I would be questioning whether you require it at the level you are at.

    Thread Starter kglaze

    (@kglaze)

    Hey thank you for that info.

    But now my audio won’t work or any of my plugins, this is because of me messing with the header and footer I would assume?

    SJW

    (@whitsey)

    You must’ve done something else because adding those 2 things should stop things from working.

    The only reason that something would stop working with these being included is a conflict. i.e. existing code was not implemented correctly and now something in the core is conflicting with it.

    Thread Starter kglaze

    (@kglaze)

    Okay last question. And thank you for your help! When I go to customizer to try and create a widget I went to the bottom of my screen and it says this;

    Parse error: syntax error, unexpected ‘<‘ in /home3/noreply/public_html/wp-content/themes/megnet/footer.php on line 45

    Would you know what that might mean?

    That means that the php code in the footer.php file is incomplete.

    Generally, if you’ve added code without using the correct syntax.

    Look on line 45 in footer.php – that line is using incorrect PHP syntax.

    Thread Starter kglaze

    (@kglaze)

    Question. I see that is the issue how do I fix this? Do I have to upload a new footer.php folder or am I able to reverse this. I’m pretty sure I messed up the header as well because like I stated the admin bar at the top of the website is missing. This is the site:
    whipradiotu.com

    I was trying to fix the music plugin and screwed everything up.

    <!DOCTYPE html>
    <!–[if lt IE 7 ]><html class=”ie ie6″ <?php language_attributes(); ?>> <![endif]–>
    <!–[if IE 7 ]><html class=”ie ie7″ <?php language_attributes(); ?>> <![endif]–>
    <!–[if IE 8 ]><html class=”ie ie8″ <?php language_attributes(); ?>> <![endif]–>
    <!–[if (gte IE 9)|!(IE)]><!–><html <?php language_attributes(); ?>> <!–<![endif]–>
    <head>
    <!– Basic Page Needs
    ================================================== –>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
    <title><?php bloginfo(‘name’); ?> <?php wp_title(‘-‘); ?></title>
    <?php if (of_get_option(‘disable_design’) == 0){ ?>
    <!– Mobile Specific Metas
    ================================================== –>
    <meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
    <?php } ?>

    <!– Favicons
    ================================================== –>
    <?php $favor = of_get_option(‘favicon_uploader’); ?>
    <?php if (!empty($favor)): ?>
    <link rel=”shortcut icon” href=”<?php echo $favor; ?>”>
    <?php else: ?>
    <link rel=”shortcut icon” href=”<?php echo get_template_directory_uri(); ?>/img/favicon.png”>
    <?php endif; ?>

    <?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>

    <?php
    // add facebook thumbnail to this page
    if (! is_404() ) {

    $thumbnail_id = get_post_thumbnail_id();
    if( !empty($thumbnail_id) ){
    $thumbnail = wp_get_attachment_image_src( $thumbnail_id , ‘150×150’ );
    echo ‘<meta property=”og:image” content=”‘ . $thumbnail[0] . ‘”/>’;
    }

    }

    wp_head(); ?>

    <!– end head –>
    </head>
    <body <?php body_class();?> itemscope=”itemscope” itemtype=”https://schema.org/WebPage”&gt;
    <?php if(of_get_option(‘full_box_option’) == ‘box_image_option’){ if(of_get_option(‘background_option’) == ‘background_image’){?>
    <div class=”full-background”><img id=”logo” src=”<?php echo of_get_option(‘background_large_image’);?>” alt=”” /></div>
    <?php }}?>

    <div class=”<?php if(of_get_option(‘full_box_option’) == ‘box_image_option’){echo “body_wraper_box”;}else{echo “body_wraper_full”;}?>”>
    <!– Start header –>
    <header class=”header-wraper”>

    <div class=”header-top-wraper”>
    <div class=”row”>
    <div class=”grid_6 header-top-left-bar”>
    <span class=”blank_space”>.</span>
    <?php if (of_get_option(‘enable_menu_top’) == 1){?>
    <div class=”mainmenu”>
    <?php $top_menu = array(‘theme_location’ => ‘Top_Menu’, ‘container’ => ”, ‘menu_class’ => ‘sf-top-menu’, ‘menu_id’ => ‘menu-top’, ‘fallback_cb’ => false); wp_nav_menu($top_menu);?>
    <div class=”clear”></div>
    </div>
    <?php }?>
    </div>
    <div class=”grid_6 header-top-right-bar”>
    <?php if (of_get_option(‘enable_social_top’) == 1){?>
    <ul class=”icon-wrapper”>
    <?php if(of_get_option(‘facebook_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-facebook”></span>
    <?php } ?>
    <?php if(of_get_option(‘twitter_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-twitter”></span>
    <?php } ?>
    <?php if(of_get_option(‘gplus_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-googleplus”></span>
    <?php } ?>
    <?php if(of_get_option(‘pin_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-pinterest”></span>
    <?php } ?>
    <?php if(of_get_option(‘rss_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-rss-feed”></span>
    <?php } ?>
    <?php if(of_get_option(‘linked_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-linked”></span>
    <?php } ?>
    <?php if(of_get_option(‘youtube_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-youtube”></span>
    <?php } ?>
    <?php if(of_get_option(‘vimeo_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-vimeo”></span>
    <?php } ?>
    <?php if(of_get_option(‘flickr_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-flickr”></span>
    <?php } ?>
    <?php if(of_get_option(‘instagram_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-instagram”></span>
    <?php } ?>
    <?php if(of_get_option(‘dribbble_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-dribbble”></span>
    <?php } ?>
    <?php if(of_get_option(‘picasa_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-picasa”></span>
    <?php } ?>
    <?php if(of_get_option(‘stumbleupon_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-stumbleupon”></span>
    <?php } ?>
    <?php if(of_get_option(‘delicious_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-delicious”></span>
    <?php } ?>
    <?php if(of_get_option(‘behance_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-behance”></span>
    <?php } ?>
    <?php if(of_get_option(‘deviantart_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-deviantart”></span>
    <?php } ?>
    <?php if(of_get_option(‘google_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-google”></span>
    <?php } ?>
    <?php if(of_get_option(‘GitHub_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-GitHub”></span>
    <?php } ?>
    <?php if(of_get_option(‘wordpress_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-wordpress”></span>
    <?php } ?>
    <?php if(of_get_option(‘aim_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-aim”></span>
    <?php } ?>
    <?php if(of_get_option(‘blogger_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-blogger”></span>
    <?php } ?>
    <?php if(of_get_option(‘digg_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-digg”></span>
    <?php } ?>
    <?php if(of_get_option(‘evernote_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-evernote”></span>
    <?php } ?>
    <?php if(of_get_option(‘friendfeed_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-friendfeed”></span>
    <?php } ?>
    <?php if(of_get_option(‘friendster_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-friendster”></span>
    <?php } ?>
    <?php if(of_get_option(‘furl_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-furl”></span>
    <?php } ?>
    <?php if(of_get_option(‘grooveshark_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-grooveshark”></span>
    <?php } ?>
    <?php if(of_get_option(‘lastfm_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-lastfm”></span>
    <?php } ?>
    <?php if(of_get_option(‘livejournal_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-livejournal”></span>
    <?php } ?>
    <?php if(of_get_option(‘magnolia_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-magnolia”></span>
    <?php } ?>
    <?php if(of_get_option(‘mixx_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-mixx”></span>
    <?php } ?>
    <?php if(of_get_option(‘myspace_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-myspace”></span>
    <?php } ?>
    <?php if(of_get_option(‘GitHub_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-GitHub”></span>
    <?php } ?>
    <?php if(of_get_option(‘netvibes_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-netvibes”></span>
    <?php } ?>
    <?php if(of_get_option(‘google_talk_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-google_talk”></span>
    <?php } ?>
    <?php if(of_get_option(‘newsvine_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-newsvine”></span>
    <?php } ?>
    <?php if(of_get_option(‘pownce_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-pownce”></span>
    <?php } ?>
    <?php if(of_get_option(‘reddit_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-reddit”></span>
    <?php } ?>
    <?php if(of_get_option(‘technorati_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-technorati”></span>
    <?php } ?>
    <?php if(of_get_option(‘webshots_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-webshots”></span>
    <?php } ?>
    <?php if(of_get_option(‘websitelink_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-websitelink”></span>
    <?php } ?>
    <?php if(of_get_option(‘yahoo_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-yahoo”></span>
    <?php } ?>
    <?php if(of_get_option(‘yahoo_im_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-yahoo_im”></span>
    <?php } ?>
    <?php if(of_get_option(‘yelp_url’)){ ?>
    <li class=”icon-lists”>“><span class=”icons-yelp”></span>
    <?php } ?>

    <?php }?>
    <span class=”blank_space”>.</span>
    <div class=”clear”></div>
    </div>
    </div>
    </div>

    <div class=”row”>
    <div class=”<?php if (is_active_sidebar(‘banner-sidebar’)) { echo’grid_3 header-top-left’; } else { echo’grid_12 logo-position’;}?>”>

    <!– begin logo –>
    <?php if(of_get_option(‘logo_option’) == ‘logo_image_option’){?>
    <h4>
    ” alt=”<?php bloginfo(‘description’); ?>”>
    <?php $logo = of_get_option(‘logo_uploader’); ?>
    <?php if (!empty($logo)): ?>
    <img src=”<?php echo $logo; ?>” alt=”<?php bloginfo(‘description’); ?>”/>
    <?php else: ?>
    <img src=”<?php echo get_template_directory_uri(); ?>/images/logo.png” alt=”<?php bloginfo(‘description’); ?>”/>
    <?php endif; ?>

    </h4>
    <?php }else{?>
    <h2 class=”logo_text”>” alt=”<?php bloginfo(‘description’); ?>”><?php bloginfo(‘name’); ?></h2>
    <p class=”logo_description”><?php bloginfo(‘description’); ?> </p>
    <?php }?>
    <!– end logo –>
    <span class=”blank_space”>.</span>
    </div>
    <?php if (is_active_sidebar(‘banner-sidebar’)){ ?>
    <div class=”grid_9 header-top-right”>
    <?php dynamic_sidebar(‘banner-sidebar’);?>
    </div>
    <?php }?>

    </div>

    <!– end header, logo, top ads –>

    <!– Start Main menu –>
    <div id=”menu_wrapper” class=”menu_wrapper<?php if (of_get_option(‘disable_sticky’) == 0){echo ” menu_wrapper_sticky”;}?>”>
    <div class=”row”>
    <div class=”main_menu grid_12″>

    <!– main menu –>
    <div class=”mainmenu”>

    <?php
    $home_link = ‘<ul class=”sf-menu” id=”mainmenu”><li id=”home”><span id=”homeicon”>’ . __(‘Home’, ‘tl_back’) . ‘</span><i class=”icon-home”></i>%3$s’;

    $arg = array(
    ‘theme_location’ => ‘Main_Menu’,
    ‘container’ => false,
    ‘items_wrap’ => $home_link,
    ‘link_before’ => ‘<span>’,
    ‘link_after’=>'</span>’
    );
    ?>

    <?php if (has_nav_menu(‘Main_Menu’)): ?>
    <?php wp_nav_menu($arg); ?>
    <?php else: ?>
    <ul class=”sf-menu” id=”mainmenu”>
    <?php wp_list_categories(‘title_li=&orderby=id’); ?>

    <?php endif; ?>
    <!– end menu –>
    </div>
    <!– end main menu –>

    <?php if (of_get_option(‘disable_search_menu’) == 0){ ?>
    <div class=”search-button-menu”><span id=”tickersearch”><i class=”icon-search”></i></span>
    <form id=”tickersearchform” action=”<?php echo home_url(); ?>” method=”GET” role=”search”>
    <div><label for=”s” class=”screen-reader-text”><?php _e(‘Search for:’, ‘tl_back’); ?></label>
    <input type=”text” id=”s” name=”s” value=”” placeholder=”<?php _e(‘Search here’, ‘tl_back’); ?>”>
    </div>
    </form>

    </div>
    <?php }?>
    </div>

    </div>
    </div>

    <?php if (of_get_option(‘enable_newsticker’) == 1){ ?>
    <div class=”row”>
    <div class=”grid_12 news-ticker-post”>
    <div class=”latest-news”>
    <h3><?php echo of_get_option(‘latest_update’); ?></h3>
    <div class=”container”>
    <?php get_template_part(‘newsticker’); ?>
    </div>
    </div>
    </div>
    </div>
    <?php }?>

    </header>

    Please HELP! I’m freaking out now

    Download a copy of the entire theme direcoty for your music theme.

    Then, re-install the bas music theme.

    One by one, add the files back in

    start with header.php and footer.php – see which file breaks it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Footer and Header’ is closed to new replies.