Support » Plugin: Simple Ads Manager » Header Ad

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author minimus

    (@minimus)

    <div style="text-align:center"><img src="http://merrytomarry.ph/wp-content/uploads/2015/08/AMagicalEvent_Platinum_728x90-2.jpg" alt="AMagicalEvent_Platinum_728x90 (2)" width="728" height="90" class="aligncenter size-full wp-image-6825" /></div>

    Set code before: <div style="text-align:center"> and code after: </div> on Ads Place Editor page…

    Thread Starter merrytomarry

    (@merrytomarry)

    thanks! but how can I place this in the header part? for now, I am using SAM using widgets for my ads placed in the sidebar.

    Thread Starter merrytomarry

    (@merrytomarry)

    The widgets/sidebar are working perfectly. my problem is how will I insert the codes in the header area without messing up the theme (header.php).

    Plugin Author minimus

    (@minimus)

    Do you have header widget area?

    Thread Starter merrytomarry

    (@merrytomarry)

    The current theme I am using (sugar and spice theme)doesn’t have that. Any other way I can do to fix this?

    Plugin Author minimus

    (@minimus)

    In this case you can only to use function in header.php

    Thread Starter merrytomarry

    (@merrytomarry)

    where in particular would I insert it and how would I do that?

    Thread Starter merrytomarry

    (@merrytomarry)

    <?php
    /**
    * The Header for our theme.
    *
    * Displays all of the <head> section and everything up till <div id=”content”>
    *
    * @package Sugar & Spice
    */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta name=”viewport” content=”width=device-width, initial-scale=1″>
    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
    <link rel=”profile” href=”http://gmpg.org/xfn/11″&gt;
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>
    <?php if ( of_get_option( ‘favicon’ ) ) echo ‘<link rel=”shortcut icon” href=”‘.esc_url( of_get_option( ‘favicon’ ) ).'” />’; ?>
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>

    <!– nuffnang –>
    <script type=”text/javascript”>
    nuffnang_bid = “0226af11c2a4fb43905ed6d39b2cecaf”;
    document.write( “<div id=’nuffnang_lb’></div>” );
    (function() {
    var nn = document.createElement(‘script’); nn.type = ‘text/javascript’;
    nn.src = ‘http://synad3.nuffnang.com.ph/lb.js&#8217;;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(nn, s.nextSibling);
    })();
    </script>
    <!– nuffnang–>

    <div id=”page” class=”hfeed site”>
    <?php do_action( ‘before’ ); ?>
    <header id=”header” class=”site-header” role=”banner”>
    <div class=”site-branding”>

    <?php if (of_get_option(‘logo_image’)) : ?>

    ” class=”logo-img”><img src=”<?php echo esc_attr( of_get_option(‘logo_image’) ); ?>” alt=”<?php bloginfo( ‘name’ ); ?>” />

    <?php else : ?>

    <h1 class=”site-title”>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
    <h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>

    <?php endif; ?>

    </div>
    <div id=”nav-wrapper”>
    <div class=”ribbon-left”></div>
    <nav id=”main-nav” class=”main-navigation” role=”navigation”>
    <div class=”skip-link”><?php _e( ‘Skip to content’, ‘sugarspice’ ); ?></div>
    <?php
    if(has_nav_menu(‘primary’)){
    wp_nav_menu( array(
    ‘theme_location’=> ‘primary’,
    ‘container’ => false,
    ‘menu_id’ => ‘nav’,
    ‘fallback_cb’ => ‘wp_page_menu’
    ) );
    } else {
    ?>
    <ul id=”nav”>
    <?php wp_list_pages(‘title_li=’); ?>

    <?php
    }
    ?>
    </nav><!– #site-navigation –>
    <div class=”ribbon-right”></div>
    </div>
    </header><!– #header –>

    <div id=”main” class=”site-main”>

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