• Resolved Shapeshifter 3

    (@shapeshifter-3)


    Kathryn,

    9 months ago, I went with your advice on copying the content.php file from my parent theme to my child theme, and then changed line 30 to get my desired end-result. Worked fine up until the last update of the current WordPress Nightly Builds, but now doesn’t work when a viewer searches by clicking on an individual TAG (Featured Images get carried over the to each Individual Post). I have three questions (when you get the time):

    1.) Was it necessary to copy the ENTIRE content.php file to my Child theme, OR could I have deleted all of the text, EXCEPT for the changes I made?

    2.) Off the top of your head, would you happen to know exactly what text I can add to this code to make excepts work for tag searching again: <?php if ( is_search() || is_home() ) : // Only display Excerpts for Search or Blog Index ?>?

    3.) Have the recent changes to the core in the current WordPress 4.3 Beta 1, altered the code snippets necessary to make changes to Kelly Child themes?

    I’ll research this on the Codex Conditional Tags page, and see if I can find the answer myself if you are not currently tethered to your computer (like we all don’t have something else to do in our lives).

    Thanks for any time, you put into answering this!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Shapeshifter 3

    (@shapeshifter-3)

    I found out what I had left out of my recently updated Kelly Child Theme’s content.php file: is_archive().

    I should have gone through ALL of my previous threads in these forums and found my previous solution. Here’s what worked before, and seems to work now also:

    <?php if ( is_search() || is_home() || is_archive() ) : // Only display Excerpts for Search or Blog Index ?>

    (Oh well, that’s what happens when I try to rush through things).

    Moderator Kathryn Presner

    (@zoonini)

    I’m glad you figured it out!

    Just to clarify this:

    1.) Was it necessary to copy the ENTIRE content.php file to my Child theme, OR could I have deleted all of the text, EXCEPT for the changes I made?

    Yes, you do need to copy the entire file into your child theme.

    Thread Starter Shapeshifter 3

    (@shapeshifter-3)

    Kathryn,

    That’s what I did…and everything seems to be working fine.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Excerpted Displays of Search by Tags Don't Work Anymore’ is closed to new replies.