• Resolved pigsta

    (@pigsta)


    Hi Ash,

    I have an ad placed using the short code function, when i only have one add displayed everything works fine. I have an ad aligned to the center, but when i want to rotate ads, things get messy, when an ad changes the ad shoots to the left from the center.

    any help?

    thanks

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ash Durham

    (@ashdurham)

    Hi Pigsta,

    Sounds like its a CSS issue. The rotating containers differ to those of the single ads. Without seeing the page itself, its quite hard for me to debug for you.

    Check that your CSS/another plugin isn’t conflicting with the AdKingPro containers. A simple #sidebar > .div would be enough to through it off. All AdKingPro containers are prefixed with either akp_ or adkingpro_.

    Hope that helps. Let me know if you get it working correctly and what you found the issue to be incase others run into the problem.

    Thread Starter pigsta

    (@pigsta)

    Hi Ash,

    I cant seem to find anything, heres a link to the page with ad

    http://www.thepigsta.com/2014/01/22/1662/

    still looking

    Thanks

    Plugin Author Ash Durham

    (@ashdurham)

    Hi,

    I can only see one ad in your list to rotate. Is this correct? You will need more than one for it to rotate correctly.

    Also, what browser are you testing this in?

    Plugin Author Ash Durham

    (@ashdurham)

    Hi mate,

    Just checked again and I see your issue. Have you tried making your container the width of your ads? ie 300px wide?

    Then you center it, use margin: 0 auto;

    Should do the trick.

    Thread Starter pigsta

    (@pigsta)

    Hi Again, Sorry about the delay, I was away from the net for a week.

    Sorry to be a pain, but i cant find where to change this, i have used the Inspect element to find what to change but cant find it in any CSS?

    I am currently just using a text editor to find the elements, but may have to step up to a more visual editor.

    Thanks

    Thread Starter pigsta

    (@pigsta)

    Heres where I call the shortcode

    `
    <?php
    /**
    * Single post template
    */

    ?>
    <?php get_header(); ?>
    <center>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <?php if ( has_post_thumbnail() ) { ?>

    <h1>“><?php the_title(); ?></h1>

    <?php
    if (function_exists(‘adkingpro_func’)){
    echo do_shortcode(“[adkingpro type=’TopPost’ rotate=’true’ ]”);
    } ?>

    <?php the_content(‘Read more’); ?>
    <div class=”post-nav”>
    <div class=”post-prev”><?php previous_post_link(‘%link’, ‘←’); ?></div>
    <div class=”post-next”><?php next_post_link(‘%link’, ‘→’); ?></div>
    </div>
    <div class=”tapiture_tapit_button”></div>
    <script type=”text/javascript” src=”//static.tapcdn.com/mosaic/tap_button.js”></script>
    <div class=”pinbin-copy”>
    <?php } else { ?>
    <div class=”post-nav”>

    <div class=”post-prev”><?php previous_post_link(‘%link’, ‘←’); ?></div>
    <div class=”post-next”><?php next_post_link(‘%link’, ‘→’); ?></div>
    </div>
    <div class=”pinbin-copy”>
    <div class=”pinbin-category”><p><?php the_category(‘, ‘) ?></p></div>
    <?php } ?>

    <div class=”pagelink”><?php wp_link_pages(); ?></div>
    <div class=”posttags”><?php the_tags(); ?></div>
    <div class=”clear”></div>

    <?php comments_template(); ?>

    </div>

    </div>

    <?php endwhile; endif; ?>
    </center>

    <?php get_footer(); ?>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘ad location changing’ is closed to new replies.