How is it possible to add a banner after “Header Title and Breadcrumbs” on all pages of my site?
Its not working in the header.php.
To put the code in every single template file (index.php, single.php,…), is an updating nightmare.
Hey!
There is a hook that you can use to insert content into the breadcrumb HTML, something like this will do it (put it in your functions.php file):
function after_breadcrumb_func($breadcrumb){
$output = $breadcrumb;
$output .= "<div>adsense here</div>";
return $output;
}
add_action('avia_breadcrumbs', 'after_breadcrumb_func');
Cheers!
Josue
Unfortunately it puts my ad code into the breadcrumb div, and now is the banner on the breadcrumb:
Is there a way to fix that?
Hi!
It requires some CSS tweaking, can you post a link to your website?
Alternatively you can directly edit the breadcrumb file (/framework/php/class-breadcrumb.php) if you want.
Cheers!
Josue
http://iszene.com/news/
But I had to remove the banner.
Add it again, i need to see it live in order to debug it.
Cheers!
Josue
The banner is online now
I’m not seeing it yet:
Cheers!
Josue
I can see the ad on every page:
Oh, i forgot the cache. Please try now.
Hey!
Try adding this code to the Quick CSS:
.title_container .breadcrumb {
top: 15% !important;
}
Cheers!
Josue
Wow, thats cool. I have changed to 19%.
thank you Josue
You are welcome, glad we could help :)
Regards,
Josue