Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Anywhere in your page, where you want the ad to appear, let's say inside a <code>&lt;div&gt;</code>, use:</p> <pre><code>&lt;div&gt; &lt;?php include('thatfiletheysentyou.php'); ?&gt; &lt;/div&gt; </code></pre> <p>This will make output of that file appear where <code>include</code> is.</p> <p><strong>EDIT: Complete rewrite:</strong></p> <p>This is content of footer.php. I just installed wordpress for you, took 3 minutes. I edited footer.php including <code>&lt;?php include('ads.php'); ?&gt;</code> (see below), which appeared in footer, as expected</p> <pre><code>&lt;?php /** * The template for displaying the footer. * * Contains the closing of the id=main div and all content after * * @package WordPress * @subpackage Twenty_Eleven * @since Twenty Eleven 1.0 */ ?&gt; &lt;/div&gt;&lt;!-- #main --&gt; &lt;footer id="colophon" role="contentinfo"&gt; &lt;?php /* A sidebar in the footer? Yep. You can can customize * your footer with three columns of widgets. */ if ( ! is_404() ) get_sidebar( 'footer' ); ?&gt; &lt;div id="site-generator"&gt; &lt;div&gt; &lt;?php include('ads.php'); ?&gt; &lt;/div&gt; &lt;?php do_action( 'twentyeleven_credits' ); ?&gt; &lt;a href="&lt;?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?&gt;" title="&lt;?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?&gt;"&gt;&lt;?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?&gt;&lt;/a&gt; &lt;/div&gt; &lt;/footer&gt;&lt;!-- #colophon --&gt; &lt;/div&gt;&lt;!-- #page --&gt; &lt;?php wp_footer(); ?&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Now if you got a file from the ad company, change <code>ads.php</code> above to this file name. If you got a code pasted in (i don't know, an e-mail, website) - create a file <code>ads.php</code> and paste whatever you got from them. Place that file in <code>twentyeleven</code> subfolder. My file looks like this:</p> <pre><code>&lt;?php echo 'HEHEHE!'; //instead of this just paste your code here ?&gt; </code></pre> <p>and on the page it is like so: <a href="http://www.spzozwolsztyn.internetdsl.pl/wpress.jpg" rel="nofollow noreferrer">1 http://www.spzozwolsztyn.internetdsl.pl/wpress.jpg</a></p> <p>If you got tired of them remove include line from footer.php.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload