WordPress.org

Ready to get started?Download WordPress

Forums

GamePress
[resolved] GamePress PRO - Header Widget (10 posts)

  1. essz
    Member
    Posted 1 year ago #

    How to add a Header Widget? I would like to place a banner in the header. (left: custom image logo and next, right the header widget)

    I found that functions.php and header.php to be edited, and style.css.
    But, the banner appears under the logo.

  2. essz
    Member
    Posted 1 year ago #

    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>

  3. PB4L
    Member
    Posted 1 year ago #

    Have a link to your site?

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    Sorry, we don't support commercial themes here. You can contact your theme's vendors regarding this issue.

  5. V0ld3m0rt
    Member
    Posted 1 year ago #

    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. :(

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    Sorry, we do not support commercial themes.

    WordPress.org forums are here to support the core application and themes and plugins that are distributed on WordPress.org.

    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.

  7. V0ld3m0rt
    Member
    Posted 1 year ago #

    Is it possible to change title of this post and get rid of the PRO? It could be great feature for free theme http://wordpress.org/extend/themes/gamepress

    Anyway I understand there is not support for commercial themes.

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    You do not have the authority to change other people's thread titles.
    Create your own thread.

  9. alex27
    Member
    Theme Author

    Posted 1 year ago #

    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.

  10. V0ld3m0rt
    Member
    Posted 1 year ago #

    Great, thanks guys ;-)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.