• Resolved digitaura

    (@digitaura)


    Hello, I’m new to using WordPress and have only just started creating a site for a wildlife rescue charity using the Tiny Forge Theme which is brilliant! Since I wanted to customise the theme, I created a Child theme. My only problem is as follows:

    I wanted my front page to be static so I’ve assigned the posts page to be the ‘news’ page on my site. Unfortunately, the header image isn’t showing up as it’s still calling up the default image in the parent theme. How can I change this and why is it only a problem on the posts page? Thank you in advance for your help!

    The page in question is this one: http://wp.wildlifeambulance.org/news/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Theme Author Tomas Mackevicius

    (@tomasm)

    I remember someone else had this issue. That’s how WordPress works in this situation – front page gets default header.

    Overall if you display new topics, I would not select specific front page, but just display regular index page with posts (“your latest posts” option), unless you want to show only particular posts on the news.

    In case of custom header, you can create new header.php file. Please see:

    http://wordpress.org/support/topic/get_headercustom-header?replies=4

    and

    http://wordpress.org/support/topic/load-different-header-on-homepage?replies=12

    Thread Starter digitaura

    (@digitaura)

    Thank you so much for your quick reply, I really appreciate it and I think your theme is superb for beginners like myself. But I’m sorry, I’m a little confused about what I need to do.

    I basically want to have a ‘News’ content page which displays the latest news items (hopefully I can specify how many) in the content area rather than as links in the side bar. Is this possible? I’d also like to select a featured image for the news page (which woudl need to be the same as the feature image on all the news posts), and now understand that using the Front Page template isn’t the way to do it. Unfortunately I don’t know php, so I can’t easily look at the files and determine what I need to change. I apologise in advance if this is a relatively simple thing to do that I should have figured out myself by reading the Codex.

    Thread Starter digitaura

    (@digitaura)

    I’ve now changed the template for the ‘News’ page back to the default template. But I’ve now noticed that all my posts have the same problem, i.e., not showing the feature image? Is this because I am using a child theme rather than the original parent theme? I looked at the source code and every post is calling up an image that doesn’t exist (wp-content/themes/tiny-forge-child-01/images/headers/TinyForge-header.jpg”). How can I change this please so that the posts look for the feature image like all the other pages?

    Thread Starter digitaura

    (@digitaura)

    Sorry, only now realised that I have to select a feature image for each post otherwise it will look for the default image as specified in the parent theme. Will continue looking for a way to display the posts in the content area, thank you.

    Theme Author Tomas Mackevicius

    (@tomasm)

    If you want to display news in a listing, just create a category “news” and assign posts that you want to that category – no need to create separate page for that. And link menu item to that category.

    And what do you want to display on front page? Front page template lets you have static front page with some general info as can see here:

    http://hughesd.com

    Thread Starter digitaura

    (@digitaura)

    Thank you Tomas. I’m just creating all the pages at the moment and will then work on the overall design tweaks. Eventually I’d like to add a twitter feed to the homepage as well as a facebook feed, if possible (along with the latest posts, all on the right hand side). So I think that’s now sorted. Thank you for your help.

    Theme Author Tomas Mackevicius

    (@tomasm)

    Remember that pages usually represent static info (about us, contacts, etc.), other info that is “dynamic” or related to certain date should be post, like events, blog posts, news… Also other info that you would post in chunks, like tips or tutorials can be posts, because then you can easily assign them to categories and display automatic listings. PAges do not have such capabilities.

    Thread Starter digitaura

    (@digitaura)

    Sorry that’s what I meant to say, that I am creating the content for the site first, so all the static information is going on pages, and all the news and press releases are going to be posts (I already created categories for press releases and rescue news).

    What I am struggling with is identifying which template is used when posts are displayed because if I don’t assign a featured image to each post, it displays a broken image link. How can I remove the need for a feature image on the post template?

    I temporarily switched themes and do not have this problem with Twenty Twelve, but I don’t know which part of the php code I need to copy into my child theme to remove the feature image from posts while retaining them on my (static) pages. I’m sorry for all my questions!

    Thread Starter digitaura

    (@digitaura)

    .. I also get a broken image link when I look at the monthly archives 🙁

    Theme Author Tomas Mackevicius

    (@tomasm)

    That’s because you have to upload one default header image (or several and make them rotate) – via Admin menu > Appearance > Header.

    Thread Starter digitaura

    (@digitaura)

    Thank you again Tomas. Yes, I’ve seen this, but I don’t want a generic header or a random selection of images for these as each post will already be media-heavy (with images and embedded video). Is there any way of removing the header from posts and monthly archives?

    Theme Author Tomas Mackevicius

    (@tomasm)

    Not without PHP editing… unless you could search for some custom header control plugin.

    Thread Starter digitaura

    (@digitaura)

    Thank you! At least I know that it wasn’t something I was doing wrong, which is comforting 🙂

    Theme Author Tomas Mackevicius

    (@tomasm)

    Actually I have to correct myself. You could use style.css to hide header image using category based BODY class names with:

    dsiplay: none;

    Thread Starter digitaura

    (@digitaura)

    Thank you Thomas! I will try that 🙂

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Child theme: Header image not displaying on posts page’ is closed to new replies.