Thread Starter
essz
(@essz)
Because the developers have not helped, i just noted, maybe somebody else will need it…
functions.php:
register_sidebar(array(
'name' => 'Header Widget',
'id' => 'header-widget',
'before_widget' => '<div class="widget-header">',
'after_widget' => '</div>',
'before_title' => '',
'after_title' => '',
));
header.php:
<div class="header-ad-section">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Header Widget') ) : ?>
<?php endif; ?></div>
style.css:
(this code is included by default)
.header-ad-section {
}
Then, works the header widget, and with a text widget can be here insert the banner code.
However, the inserted images are not responsive.
How to solve it to be responsive?
Text widget example code:
<a href="http://example.com" target="_blank"><img src="/wp-content/uploads/ad.png" width="468" height="60"/></a>
Have a link to your site?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Sorry, we don’t support commercial themes here. You can contact your theme’s vendors regarding this issue.
I think I would be great feature to have banner on that empty place. Top menu feature also and It could be really one of the greatest themes for wp.
I don’t understand, why there is no discussion about this. ESSZ did great job to explain how to do it, and instead of getting help he gets Sorry, contact your vendor. GREAT, this is the way, spam your theme’s vendor over and over with the same issue istead of have it here for all. 🙁
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Sorry, we do not support commercial themes.
ww.wp.xz.cn forums are here to support the core application and themes and plugins that are distributed on ww.wp.xz.cn.
If you need a repository of information, ask your theme’s vendors.
Do not post on these forums regarding support for commercial products.
Contact Alex (theme author) directly regarding the Pro version of the theme.
Is it possible to change title of this post and get rid of the PRO? It could be great feature for free theme http://ww.wp.xz.cn/extend/themes/gamepress
Anyway I understand there is not support for commercial themes.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
You do not have the authority to change other people’s thread titles.
Create your own thread.
This feature is already done, just waiting for update to be pushed to the official repository. I don’t recommend doing it on your own, and if you do only via child theme.