• Resolved wfeu

    (@wfeu)


    Im using Tiny Framework v. 2.1.1 with a child theme. I have all the blog posts going to Page called blog. Where would I edit to to turn on exceprts instead of full posts for all posts ?

    Ive copied content.php from the theme folder to the child theme folder and have been editing this

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter wfeu

    (@wfeu)

    <?php if ( is_search() || is_paged() || is_archive() ) : // Display Excerpts for Search, Archives and additional pages of Index view ?>

    when I have this in content.php Im only getting excerpts on search results. Archives i do not get exceprts. I tried adding if_page ( 37) to show excerpts for my blog page, but Im missing something.

    Theme Author Tomas Mackevicius

    (@tomasm)

    Did you put that content.php in the template-parts folder in Child Theme? Because in this version all content-* files were relocated.

    Thread Starter wfeu

    (@wfeu)

    yes I duplicated it from parent theme folder and put a copy I edited in tiny-framework-child/ folder. thanks

    Theme Author Tomas Mackevicius

    (@tomasm)

    I just realized that in v2.1.1 for some reason content-single.php is not being used, will investigate, perhaps that’s connected.

    Thread Starter wfeu

    (@wfeu)

    awesome thanks. The only place on my install I am seeing excerpts is on search results if that helps any.

    Theme Author Tomas Mackevicius

    (@tomasm)

    I had to roll back that split of content.php, but I think it didn’t affect your issue. Will have to look again in to it.

    Theme Author Tomas Mackevicius

    (@tomasm)

    It works in child, but you have to use:

    is_search() || is_home() || is_archive()

    And check functions.php, because if article is shorter than required you will not see continue reading link, then in functions.php find the function where you can adjust required length of the excerpt.

    Theme Author Tomas Mackevicius

    (@tomasm)

    BTW there is updated v2.1.1 on my site.

    Thread Starter wfeu

    (@wfeu)

    Thanks, Im using 2.1.1 ?? really like it. Wasnt able to get that to work editing the content.php I copied into to the child theme folder.

    My Home is a static page using your front page template

    My blog is a static page – posts page, reached from the top nav menu using default template

    Theme Author Tomas Mackevicius

    (@tomasm)

    Even though you use v2.1.1, it is a development version, so I’m updating until it will be published on WP.org.

    So go to my site and get latest version, then create /template-parts folder in the child themes, copy there content.php from the latest version of parent theme and it should work, at least for me it works.

    Thread Starter wfeu

    (@wfeu)

    Thanks that works~!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Blog Excerpts’ is closed to new replies.