Title: Header Advertisement
Last modified: August 31, 2016

---

# Header Advertisement

 *  Resolved [Yurez](https://wordpress.org/support/users/yurez/)
 * (@yurez)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/)
 * Здравствуйте. Подскажите, как удалить Header Ad Image?. Если удалять через настройки
   темы, оно все равно остается.

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Theme Author [Acme Themes](https://wordpress.org/support/users/acmethemes/)
 * (@acmethemes)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/#post-7186536)
 * Здравствуйте,
    Благодарим Вас за использование наших SuperMag темы. Для текущей
   версии темы не доступна, может быть, вы можете попробовать использовать белое
   изображение там :), подобные qury уже обсуждается здесь [http://www.acmethemes.com/supports/topic/default-advertisement-banner-and-images/](http://www.acmethemes.com/supports/topic/default-advertisement-banner-and-images/)
 * спасибо
 * Note: We use google translate
 *  Thread Starter [Yurez](https://wordpress.org/support/users/yurez/)
 * (@yurez)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/#post-7186550)
 * Спасибо. На счет белого, так и думал сделать. А нельзя ли вместо изображения 
   туда какой-то виджет всунуть?
 *  Theme Author [Acme Themes](https://wordpress.org/support/users/acmethemes/)
 * (@acmethemes)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/#post-7186553)
 * Если вы хотели бы использовать что-нибудь еще там, тема должна быть подгоняет.
   Мы рекомендуем использовать детскую тему для настройки [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
   
   Если вы заинтересованы в теме про вы можете проверить здесь [http://www.acmethemes.com/themes/supermagpro/](http://www.acmethemes.com/themes/supermagpro/),
   который имеет эту функцию вы хотите.
 * благодарю
 *  Thread Starter [Yurez](https://wordpress.org/support/users/yurez/)
 * (@yurez)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/#post-7186554)
 * Так а что в дочерней теме для этого нужно прописывать?
 *  Theme Author [Acme Themes](https://wordpress.org/support/users/acmethemes/)
 * (@acmethemes)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/#post-7186615)
 * It may be little bit complicated at the beginning. You need to alter/change the
   hook add_action( ‘supermag_action_header’, ‘supermag_header’, 10 ); in the file
   acmethemes/hooks/header.php by using child theme.
    The code you are looking for
   is between line number 237 and 245 on current theme version 1.2.0, [https://themes.trac.wordpress.org/browser/supermag/1.2.0/acmethemes/hooks/header.php](https://themes.trac.wordpress.org/browser/supermag/1.2.0/acmethemes/hooks/header.php)
 * Нам очень жаль, чтобы перевести вольно сложном его с помощью Google, поэтому 
   мы написали на английском языке. Вы можете использовать Google Translate [https://translate.google.com/~~dobj](https://translate.google.com/~~dobj),
   если вы не понимаете, о чем мы говорили.
 *  Thread Starter [Yurez](https://wordpress.org/support/users/yurez/)
 * (@yurez)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/#post-7186622)
 * Спасибо, переводчиком пользуюсь.
    Не совсем понятно, что именно менять нужно?
   Вы пишите про эту часть кода:
 *     ```
       <?php if ( !empty( $supermag_customizer_all_values['supermag-header-main-banner-ads'] )):
                                   $supermag_header_main_banner_ads_link = $supermag_customizer_all_values['supermag-header-main-banner-ads-link'];
                                   ?>
                                   <div class="header-ads float-right">
                                       <a href="<?php echo esc_url( $supermag_header_main_banner_ads_link ); ?>" target="_blank">
                                           <img src="<?php echo esc_url( $supermag_customizer_all_values['supermag-header-main-banner-ads'] )?>">
                                       </a>
                                   </div>
                               <?php endif; ?>
       ```
   
 *  Theme Author [Acme Themes](https://wordpress.org/support/users/acmethemes/)
 * (@acmethemes)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/#post-7186631)
 * да ты прав
 *  Thread Starter [Yurez](https://wordpress.org/support/users/yurez/)
 * (@yurez)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/#post-7186640)
 * > да ты прав
 * Но что с ним делать? Как его связать с остальным кодом?
 *  Thread Starter [Yurez](https://wordpress.org/support/users/yurez/)
 * (@yurez)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/#post-7186651)
 * Разобрался. Спасибо!
 *  Theme Author [Acme Themes](https://wordpress.org/support/users/acmethemes/)
 * (@acmethemes)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/#post-7186673)
 * Very nice to know your problem solved.
 * Best Regards,
    AcmeThemes

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Header Advertisement’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/supermag/3.1.3/screenshot.jpg)
 * SuperMag
 * [Support Threads](https://wordpress.org/support/theme/supermag/)
 * [Active Topics](https://wordpress.org/support/theme/supermag/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/supermag/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/supermag/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Acme Themes](https://wordpress.org/support/users/acmethemes/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/header-advertisement/#post-7186673)
 * Status: resolved