Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #255233

    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.

    #255313

    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

    #255462

    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?

    #255688

    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

    #255710

    http://iszene.com/news/
    But I had to remove the banner.

    #255716

    Add it again, i need to see it live in order to debug it.

    Cheers!
    Josue

    #255718

    The banner is online now

    #255722

    I’m not seeing it yet:

    Cheers!
    Josue

    #255725

    I can see the ad on every page:

    #255729

    Oh, i forgot the cache. Please try now.

    #255730

    Hey!

    Try adding this code to the Quick CSS:

    .title_container .breadcrumb {
        top: 15% !important;
    }

    Cheers! 
    Josue

    #255737

    Wow, thats cool. I have changed to 19%.

    thank you Josue

    #255748

    You are welcome, glad we could help :)

    Regards,
    Josue

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Adsense banner after breadcrumbs’ is closed to new replies.