• I want to add a picture to all posts. How to hardcode a php to show the banner on all posts. I think i edit page.php but how?

    ../uploads/banner.png

    m.

Viewing 4 replies - 1 through 4 (of 4 total)
  • as the name suggests, page.php is for pages;
    for posts try index.php or single.php;

    the html code for an image is:

    <img src="../uploads/banner.png" alt="" />

    you will possibly need to use the absolute path to the image.

    Thread Starter zookie_333

    (@zookie_333)

    index.php:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter zookie_333

    (@zookie_333)

    Where to add the image tag?

    this is my Single.php

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I want to add a picture to all posts.

    Where to add the image tag?

    you need to describe in more detail where you want the image to show – then someone might be able to point to the location in your template where to add the image code.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Insert banner into all posts (page.php)’ is closed to new replies.