• itdoesnttastelikechicken

    (@itdoesnttastelikechicken)


    Hi There,

    So I did a silly thing. I added a header ad into the code in Header section. Before doing this I didn’t back up my header section. Agh. Now I would like to remove the ad, but somehow the code that I inserted changed, and I can’t tell which parts are the ad. I am lousy at coding (obviously). Can anyone help me remove the ad? I would really appreciate it, and I will immediately back up my site before doing anything silly again.
    Thanks!!

    Samantha
    This is what is in the header section right now:

    <!DOCTYPE html>
    <!--[if IE 6]><html id="ie6" <?php language_attributes(); ?>><![endif]-->
    <!--[if IE 7]><html id="ie7" <?php language_attributes(); ?>><![endif]-->
    <!--[if IE 8]><html id="ie8" <?php language_attributes(); ?>><![endif]-->
    <!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!--><html <?php language_attributes(); ?>><!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    
    <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
    
    <title><?php wp_title('|', true, 'right'); ?></title>
    
    <link rel="profile" href="https://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css" media="screen" type="text/css" />
    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/stylesheet.css" media="all" type="text/css" />
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lora:400,400italic|Muli:400,400italic|Montserrat" media="all" type="text/css" />
    
    <!--[if lt IE 7]><script src="https://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js"></script><![endif]-->
    <!--[if lt IE 8]><script src="https://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script><![endif]-->
    <!--[if lt IE 9]><script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <!--[if lt IE 9]><script src="https://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><![endif]-->
    
    <?php if( is_singular() && esc_attr( get_option('thread_comments') ) ) wp_enqueue_script('comment-reply'); wp_head(); ?>
    
    <?php wp_enqueue_script('jquery'); ?>
    
    <?php wp_enqueue_script('jquery-ui-widget'); ?>
    
    <?php echo adelle_theme_header_scripts() || adelle_theme_css();  ?>
    
    </head>
    <body <?php body_class(); ?>>
    
    <header class="header" role="banner">
    
      <?php echo adelle_theme_heading(); ?>
    
      <nav class="nav" role="navigation">
        <?php wp_nav_menu( 'theme_location=top_menu&container_class=menu&fallback_cb=wp_page_menu&show_home=1' ); ?>
    
      </nav><!-- .nav -->
    
    </header><!-- .header -->
    
    <section class="container">
Viewing 2 replies - 1 through 2 (of 2 total)
  • First of all: whenever you want to change anything in your theme, you may want to look into the concept of child themes. This will allow you to add things on top of your theme, as opposed to changing the theme itself, so if you make a mistake you can always fall back on the original theme.

    Since you’ve changed the header.php file, I would suggest you download a fresh copy of the Adelle theme and compary your header.php code to the one that’s in the untouched theme. Then perhaps you can locate what you did wrong.

    I just checked a fresh version of the theme and compared it to your code, and I don’t see any code for any ads right away actually.

    Thread Starter itdoesnttastelikechicken

    (@itdoesnttastelikechicken)

    Hi Senff,

    Thanks for responding! Yeah I have heard of childs theme…I will set that up next time for sure. I’m all new to this, so I am learning…often the hard way!

    This is the code I originally entered at the top of the header section

    <script id="mNCC" language="javascript"> medianet_width='600'; medianet_height= '120'; medianet_crid='532025163'; </script> <script id="mNSC" src="https://contextual.media.net/nmedianet.js?cid=8CUFJX35G" language="javascript"></script>

    But now that seems to have disappeared, but if you go to my site, itdoesnttastelikechicken.com the ad is very much there…and off center, which just makes it doubly annoying!

    I did try downloading the original code, but when I replaced that, it just messed up the menu and the ad was still there!? Do you think the code could have some how moved? Sorry if that is ridiculous question!

    Thanks so much,

    Samantha

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove Banner Header Ad?’ is closed to new replies.