• Resolved mydigitaldreams

    (@mydigitaldreams)


    Hi,

    I just need to put place the following shortcode on my site so it sits in the centre of the empty black bar on top of my footer links.

    [bannergarden id=”1″]

    Where do I put this in?

    https://www.3d-mad.com/

    All help much appreciated.

    Regards,

    Tom

Viewing 14 replies - 1 through 14 (of 14 total)
  • use the do_shortcode function and add it to your theme in the correct place.

    Thread Starter mydigitaldreams

    (@mydigitaldreams)

    Thanks for the tip. I have tried to use the code as follows but it has placed the banner below the black box instead of in it. Any ideas about how I get it in the centre of black box. Sorry if this is basic I am a novice but learning fast!!

    <div class=”clear”>
    <div id=”Home_Footer_Band”></div>
    <?php echo do_shortcode(‘[bannergarden id=”1″]’); ?>
    <div id=”Footer_Background”>
    <div id=”footer-widgeted”>
    <div class=”footer-widgeted-1″>
    <ul id=”footer-widget-1″>
    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Footer #1’) ) : ?>

    without checking try adding it in the div for the Home_Footer_Band …

    Thread Starter mydigitaldreams

    (@mydigitaldreams)

    Hi,

    I’ve tried this and a few permutations but still no joy?

    I’ve uploaded the footer.php to pastebin here:

    https://wordpress.pastebin.com/ZBi14DQr

    Would you mind taking a look?

    Cheers,

    Tom

    that doesn’t help me, because I can’t tell what the shortcode is producing. Can you add that shortcode to a page as well, and let me have a link to that.

    Thread Starter mydigitaldreams

    (@mydigitaldreams)

    Sorry for the delay, I have put the code in to the footer on my site. It is generating an adsense banner at present but I intend to change this.

    See:

    https://www.3d-mad.com/

    I just need to centralise it now in the middle of the black bar but I’m unsure of the code to do this?

    Cheers,

    Tom

    to specifically center that one I change the following:

    #Header_Banner #wrap div {
    text-align:center;
    }
    a img {
    border:medium none;
    margin-top:20px;
    }

    Thread Starter mydigitaldreams

    (@mydigitaldreams)

    thanks for this but it is the Adsense banner at the bottom of the page I am referring too. I have tried the code here too but no joy? Cheers, Tom

    my apologies try this

    #Home_Footer_Band #wrap div {
    text-align:center;
    }
    #Home_Footer_Band a img {
    border:medium none;
    margin-top:20px;
    }

    Thread Starter mydigitaldreams

    (@mydigitaldreams)

    Hi,

    As you can see the footer banner is still aligned left?

    https://www.3d-mad.com/

    Here is the current css I am using.

    Any further ideas of how we can get it centralised?

    It must be something simple?!

    Cheers,

    Tom

    /************************************************
    * Home_Footer_Band *
    ************************************************/

    #Home_Footer_Band {
    background: #111111;
    height: 100px;
    margin: 0px auto;
    position: relative;
    width: 960px;
    overflow: hidden;
    position: relative;
    text-align: center;
    }

    #Header_Footer_Band div {text-align:center;}
    #Home_Footer_Band #wrap div {
    text-align:center;
    }
    #Home_Footer_Band a img {
    border:medium none;
    margin-top:20px;
    }

    In firfox if I disabe the styles for
    #Header_Banner #wrap div
    &
    #Header_Banner div

    it fixes it.
    so try changing them to:
    #Header_Banner #wrap
    &
    #Header_Banner

    Thread Starter mydigitaldreams

    (@mydigitaldreams)

    sorry it is the footer banner i’m struggling with not the header ??

    yes I know, but the style is interfering.

    Thread Starter mydigitaldreams

    (@mydigitaldreams)

    elfin you are are a legend. thanks so much it has been bugging me for days!! ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How to embed banner shortcode?’ is closed to new replies.