• I would like to add a small bar (image) just below the navigation menu of my header on a custom post page. What is the easiest way to do this? I am a neophyte and did not set up the custom post page myself – although I have a basic understanding of how it works and can get to the php files involved, if necessary. The custom post page I want to change is: dearchristiancounselor.com/blog. Please answer as though you were talking to a first-grader; I have found that many forum answers assume a lot of things I do not know – but I want to learn! Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Well, you have to find the page template (php file inside your theme folder) that handles the blog.

    One trick could be editing the “Blog” page through the WordPress admin, it will probably say what page template is it using (see screenshot: https://cloudup.com/cYydlo3lCUb )

    If the image you’re trying to add is under the navigation perhaps it’s not the custom page template you’re looking for. Try the header.php file.

    Then just add the image tag wherever you see fit:

    `<img src=”URL to the image” />’

    Good luck!

    Thread Starter lholz58

    (@lholz58)

    I did try this, putting the line you suggested in a number of different php files, since I’m not sure which one controls the blog page. Using your technique, it appears that the Template name is Blog. So I changed blog.php and header-blog.php. When I inspect the page with Firebug, it looks like the format is coming from archive.php, so I tried changing that, too. Nothing I tried made any difference to the page appearance. Other thoughts?

    You should definitely take a look at the header (do you have header.php?). I’d assume that the blog uses it along with the blog template, archive, search, single… So adding the image to the header should be enough.

    What theme is it?

    Thread Starter lholz58

    (@lholz58)

    It’s a Twenty-Eleven child theme. I don’t want to change the header on every page, just the custom post blog page. Maybe I’ll try adding that image command to the header.php and see if that does anything – even if it DOES put it on all my pages. I’ll let you know.

    Thread Starter lholz58

    (@lholz58)

    OK. Good. That’s a start. When I added it to the bottom of my header.php file in my child theme, it added the correct image to EVERY page of my website. Now I just have to figure out how to get it added to JUST the one page.

    hiya just downloaded Phomedia theme. the preview on the purchase page had scroler but i cant find it in my down load or in my admin pages

    Maybe you could use a Conditional Tag to specify the page. e.g:

    if ( is_page(123) ){
    echo "<img src='URL to Image' alt='' />
    }

    You can get the page ID when you from the URL when you edit it in the admin

    Codex: https://codex.www.ads-software.com/Function_Reference/is_page

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add an image to custom post page header’ is closed to new replies.