Kontera plugin didnt work (3 posts)

  1. menj
    Posted 10 years ago #

    I am using the Kontera plugin:


    But it does not seem to be working on my site. Is there an alternative plugin to insert the Kontera script in every page of WordPress?

    - MENJ

  2. davidchait
    Posted 10 years ago #

    You could just add it to your theme directly. Fairly easy.

    Alternatively, it depends on how you want to insert them. Something like my CG-Inbetween plugin will let you, for instance, include an HTML file (which could contain javascript for Kontera, or Adsense, or...), at a given interval -- say, after the first post on each page, or at the end of each page, etc. It requires a one-line insertion into your theme.

    But if you just say want your Kontera ad block at the top of each page, you should 'build it into the theme' directly. header.php is a possible location to look at (as index.php might be overridden in a given theme by single.php or others, in which case you'd be modding multiple files...).


  3. rshupe
    Posted 9 years ago #

    The problem is your Theme (MW.) The Theme you are using does not contain a call to the wp_footer API hook.

    This plugin utilizes the wp_footer API hook to add the Javascript into the footer. If the API hook call is missing nothing will be added to the page’s footer by the plugin.

    To fix this all you need to do is add the following code to the footer.php file before the <body> tag:<?php do_action('wp_footer'); ?>

    To ensure that compatibility is maximized it is best to make sure the wp_footer API is not wrapped by <div> tags.

    Also make sure both check boxes under “Enable DynamicContext” on the options screen are checked.

Topic Closed

This topic has been closed to new replies.

About this Topic