Ad banner above header

Posted in: Newspaper
Post count: 104

Hi!

My costumer wants an above header area with managable ads. In other words, my customer wants to upload and/or delete the ads himself.

I have tried to add a child theme and register a widget with a slider on it but the widget is simply not showing. (here is the tut I followed). I Find it unbelivable that it’s 2015 and I can~t find a single plugin that solves this problem when there are so many people that have the same issue.

How can I solve this? Thanks in advance!

Post count: 7909

Hi,

You can use do_shortcode function to place a custom ad in header.php file that it ca be overwritten by child theme – http://screencast.com/t/tfSHbmlm and paste your code in Theme Panel > Ads – Custom ad – http://screencast.com/t/Ai0jnyHcOkh

<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>

You customize it using custom css in Theme Panel > Custom Css – http://screencast.com/t/82VwxRmtg

Or if you want to register a new sidebar you can do this in functions.php from child theme – http://screencast.com/t/vrZ2ti3WJxhttp://screencast.com/t/oVcC46g3DO

<?php dynamic_sidebar('extra'); ?>

register_sidebar(array(
    'name'=> 'extra',
    'id' => 'extra-widget', //the id is used by the importer
    'before_widget' => '<aside class="widget %2$s">',
    'after_widget' => '</aside>',
    'before_title' => '<div class="block-title"><span>',
    'after_title' => '</span></div>'
));

And place the sidebar in header.php like I suggested above with custom ad – http://screencast.com/t/E2EVTuZAHut it should work fine – http://screencast.com/t/Qg6RwbYoxA4r

<?php dynamic_sidebar('extra'); ?>

Thanks!

Post count: 104

Well, this was a very special case, my customer doesn’t want one but many ads above the header. It is solved now: http://varnamo.srv01.wpeasy.se/

Anyway, the conclusions after my research (for a solution) and many failed attempts were that this would be an incredible idea for a plugin. I wish I was a programmer! 😀 The ads don’t actually have to be in the header, they just have to look like they are there! – take this as a suggestion for a new update or a brand new plugin or deluxe addon to this amazing theme 😉

Anyway, my problem was that the customer wanted to have an easy managable ads area above the header where he could easily change and manage ads.

Solution:

I bought this plugin: http://codecanyon.net/item/visual-composer-in-sidebars-addon/8558485 so that the customer could easily manage the ads in a consistent way with the rest of the website. Then I created a child theme because this was no longer about CSS editing. Then I created a new widget and a new sidebar on the header. Last but not least, I added the ads as simple images using the bought plugin on a 1/6 grid.

It works and it rocks but it was painful. In my opinion, you could either include this in a next update as a default feature or you could develop this as an extra paid plugin, I am 100% sure (after have seen so many people with the same problem when I google) that a lot of people want to do this.

Cheers!

Post count: 7909

Hi,

Glad that you solved this and thanks for suggestion we will think about it!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.