WordPress.org

Forums

WP Bannerize
Multiple Banner Locations (4 posts)

  1. mumford
    Member
    Posted 3 years ago #

    Hi

    I have set up my banners and inserted the shortcode into my template. These banners show up on the right hand side of my site.

    Is it possible to add banners that only show say in the header of my site?

    Can someone please help on this and let me know if it is in fact possible?

    Many Thanks

    David

    http://wordpress.org/extend/plugins/wp-bannerize/

  2. gfazioli
    Member
    Plugin Author

    Posted 3 years ago #

    Hi David,
    WP Bannerize support the group keyword.

    When you add one or more banners, put these into a group.
    Simply add your own, or yours, banners in a different group, for example 'header'.

    So, just use:

    <?php if(function_exists( 'wp_bannerize' ))
              wp_bannerize('group=header'); ?>
    <?php if(function_exists( 'wp_bannerize' ))
              wp_bannerize('group=sidebar'); ?>

    Let me know if you need anymore information
    regards
    GF

  3. mumford
    Member
    Posted 3 years ago #

    Hi

    Many thanks for your response. I actually managed to do this through Widgets. And editing functions.php to include the sidebars.

    Your example would have been a lot quicker :)

    Where is the documentation for your example? Or am I being silly and have totally overlooked this?

    Thanks again

    Dave

  4. epistates
    Member
    Posted 3 years ago #

    I have a similar issue. How can I place banners only on certain post types? As I can see, it is possible with the widget to output banners for certain categories, but how can I for example make a banner only avaiable on a certain page?

    The second problem is, when I have an arcticle posted under more than one category, let's assume e.g. I post it to three categories (and for each category I created a group to assign to the category): Then there show up three banners in a list-style, what messes up my theme. How to avoid that?

    I think both problems could be solved through something like an exclude-Function?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Bannerize
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic