WordPress.org

Ready to get started?Download WordPress

Forums

Ad King Pro
[resolved] Two adverts side by side in one advert type (7 posts)

  1. footmark
    Member
    Posted 10 months ago #

    Hi Ash

    I want to get two ads displaying side by side in a div. I thought if I just allocated them to the same Advert type they would do this, but I see that instead only one ad appears and changes for each page impression.

    Is there a simple way to get both ads to appear side by side - or should I allocate them different Advert types and put each separately into the div with a new PHP code for each?

    Thanks

    http://wordpress.org/plugins/adkingpro/

  2. footmark
    Member
    Posted 10 months ago #

    Tried the following, but the ads just disappear:

    <?php if (function_exists('adkingpro_func')) echo do_shortcode("[adkingpro banner='{1608}, {1629}' render='2']") ?>

  3. footmark
    Member
    Posted 10 months ago #

    Ah OK got it - no curly brackets!

  4. footmark
    Member
    Posted 10 months ago #

    Right now working but it imposes the 'sidebar' advert type - which comes with some css attributes that I don't want, ad which disrup another class in my own CSS. Can I use the 'render' attribute alongside a 'type=' parameter to display specified ads of the same type alongside each other?

    I tried
    <?php if (function_exists('adkingpro_func')) echo do_shortcode("[adkingpro type='Homepage' render='2']") ?>
    but it messes up the layout.

    Sorry for all the posts answering my own questions!

  5. Ash Durham
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Footmark,

    Interesting chat you had with yourself ;)

    Your certainly on the right track. There is a number of ways you can achieve what your after. You named most of them.

    I believe the code you put in your last post is the correct code. I have the working here. When you say it messes up the layout, is that just a CSS issue with your theme?

    Regarding the conflicting CSS with the sidebar class, that doesn't really have anything to do with the functionality of the plugin, but there are ways around that in specifying the parent of your sidebar class in your CSS (ie "#mycontainer > .sidebar" then use ".adkingpro_container > .sidebar")

    Let me know how you go.

  6. Ash Durham
    Member
    Plugin Author

    Posted 10 months ago #

    Footmark,

    Can I assume that you have sorted this out via CSS? I'm going to mark this as resolved as it wasn't really an issue with the plugins functionality.

  7. footmark
    Member
    Posted 10 months ago #

    Ash

    Apologies for not feeding back.

    Yes, just to let you know the syntax <?php if (function_exists('adkingpro_func')) echo do_shortcode("[adkingpro type='Homepage' render='2']") ?> works OK, but then need to fiddle with the css to get things to layout as I wished.

    I found it useful to define a css class .adkingprocontainer .adkingprobanner.Homepage to define the layouts.

    Thanks for the help!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.