• Resolved sakicmilan

    (@sakicmilan)


    hi, i want to put my ad code above header BUT using theme editor. i put it on my mains site betly.info above header banner but i use multisites and i want to put it on all sites on network

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author ronangelo

    (@ronangelo)

    You can use the code below on functions.php, preferably on a child-theme.

    add_action( 'frontier_before_body', 'ad_above_header' );
    
    function ad_above_header() {
    ?>
       // Add your ad codes here
    <?php
    }
    Thread Starter sakicmilan

    (@sakicmilan)

    Thank you, it works, can you tell me how to center it and to make sam space between that banner and top of the site.. i mean to put it on center and few px down?

    Theme Author ronangelo

    (@ronangelo)

    Wrap your ad code in Div tags then add some top padding and text-align: center; using inline css.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ad above header with theme editor’ is closed to new replies.