• Hi,

    it’s kind of desperate now, I have to ask it here. I’ve been started off wordpress awhile now but it’s still pretty confusing and complicated on codes for me.

    I’ve been tackling the excerpt problem awhile now but I just can’t make my front page to display it. I can find the_content nowhere, I’m using the Harmonic theme, I checked index.php, content-front-page.php and even front-page.php under the template folder.

    There’s a <?php the_content ?> in the content-front-page.php but it doesn’t work when I changed the code.

    More even, I checked the default themes to tried to get some insights but there’s no the_content at their index.php at all, twentyfifteen, twentysixteen that sort.

    I started to wonder is it patch updates that the template is changed to some other files now?

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • It would be better to post this in the theme’s support forum since each theme is coded in a different way.

    However, I have used harmonic theme in the past. You might as well try changing the <?php the_content(); ?> in content-page.php

    However, the above depends on what exactly you are displaying on the home page.

    Thread Starter constantinezou

    (@constantinezou)

    Just the default setting on front page, just not sure what’s the exact file doing the function, or I’d find that now.

    I’m using a child theme folder, so should I just copy content-page.php and content-front-page.php to my folder? And how to implement them into the theme? The instruction says the style.css is using the harmonic’s template, so I’m not sure the content-front and content-page are working as the child template.

    Thx.

    Just copy them into the child theme and it should be fine. Also make sure you have the child theme selected as the site theme in Appearance > Themes.

    • This reply was modified 8 years, 1 month ago by Patrick.
    Thread Starter constantinezou

    (@constantinezou)

    Um… didn’t work (╯□╰)

    this is exhausting now… really wasting time = = I’ll just post it on themes now, see what would I get.

    and btw, do you mind answering a question? I read the codex of child theme project, it says it’ll need the function.php to work properly, and there’s some launch code needs to enter in the file, I have no idea what it is talking about, the eunqueue script, do you know what to do with it? Coz I don’t have that file in my child theme and it works nonetheless. It works like an accelerating feature I think.

    It is just to include the parent stylesheet, which you already might have done using @import in the style.css of the child theme, that’s why the child theme is working.

    Thread Starter constantinezou

    (@constantinezou)

    I’m not sure lol, I only changed the style.css first few lines.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to set excerpt format on front page of the blog?’ is closed to new replies.