WordPress.org

Forums

[resolved] Same Theme, Different Appearance on Two Sites (12 posts)

  1. Photog
    Member
    Posted 2 years ago #

    I could have sworn I posted this but now can't find it. If an admin deleted it, I'd like to know why.

    I operate two sites. Both are set up with a static landing page and an interior page called Blog for the blog.

    On the first site, rf-photography.ca, article excerpts show on the blog page. The length of the excerpt is determined by where I place the More tag.

    On the second site, thevicarioustraveler.com, article excerpts don't show up on the blog page. From a previously posted question, it seems that article excerpts is a theme-dependent trait.

    When I Live Preview different themes on the rf-photography.ca site, the article excerpts still appear. Doing a Live Preview on thevicarioustraveler.com with the same theme will not show article excerpts.

    I'd very much like to get article excerpts showing on the second site.

    Assistance appreciated.

    Thanks.

  2. I could have sworn I posted this but now can't find it. If an admin deleted it, I'd like to know why.

    The spam filter would be my guess. As this one's the same as the other, I've un-spammed this one.

  3. Photog
    Member
    Posted 2 years ago #

    OK, that's interesting. Just for my edification, what was being caught as spam?

    Thanks.

    And any insight into the question. :-)

  4. Photog
    Member
    Posted 2 years ago #

    I can't believe no one has any insights into this?

    Thanks.

  5. Doing a Live Preview on thevicarioustraveler.com with the same theme will not show article excerpts.

    Generally speaking (I'm not familiar with that Easel theme):

    - Create a child theme for the theme you are using.

    http://codex.wordpress.org/Child_Themes

    - Locate where the_content() is and make a copy of that file into the child theme directory.

    - Change the_content() to the_excerpt() in the child theme copy.

    - Make sure that child theme is activated in your WordPress dashboard.

    See if that does it for you. Make sure you have full backups as a just in case you change something you shouldn't have.

    Edit: Also please don't bump like that. I happened to be checking my threads, bumping is not permitted here.

  6. Photog
    Member
    Posted 2 years ago #

    I bumped it because there's a lot of activity here and hoped there was someone other than a mod who might be able to help and, typically, people don't look past the first page of threads.

    That aside, and thanks for letting me know, I can't find the_content() tag anywhere in the various theme files. According to this article it's supposed to be in the post-template.php file. This theme doesn't have such a file and looking in several other likely candidates, it's not there.

    If I could find it; however, or if I installed a different theme and found it, could I not simply change it in the parent theme without creating a child?

  7. I bumped it because...

    Don't do that, it's not permitted regardless of your reasoning. Bumps get deleted.

    could I not simply change it in the parent theme without creating a child?

    Back on the topic at hand: you can and should make changes to where ever you like as you see fit. It's your installation after all. ;)

    However, that theme is hosted on WordPress.ORG's theme repo. Unless you rename the theme in the theme's style.css file, when an update to that theme get's published here you will lose any changes you've made will be lost.

    Sometimes updates happen for security reasons (think timthumb.php) so you want to keep up with the current version. If you create a child theme then you protect any changes you've made.

    That's the general advice and it's generally good. ;)

    Now looking at that theme for a couple of minutes... it may be easier than that. This is untested but looking at the source code try this.

    - Create that child theme and just have the style.css file in the child theme directory.

    - Create a functions.php file in that child theme and try putting in just this PHP code.

    http://pastebin.com/y32zKFuX

    The easel_display_the_content is what, well, displays the content. I've replaced the_content with the_excerpt.

    See if that works for you. This is untested and if it doesn't work or locks you out (no reason it should) just delete the child theme's functions.php file via FTP.

  8. Photog
    Member
    Posted 2 years ago #

    Thanks. Tried it. When I upload the new functions.php file the site just appears as a blank, white page.

    If I delete all the other files (except for style.css and functions.php) the theme doesn't appear in the Admin panel of the site.

  9. Well, it was untested. ;)

    I'm glad you deleted those files. If I have time this weekend I'll try and look at that theme.

  10. Photog
    Member
    Posted 2 years ago #

    Well, it was untested. ;)

    :-)

    I appreciate the help.

  11. Photog
    Member
    Posted 2 years ago #

    I managed to find the problem. There was a plugin that, for some reason, was causing the issue. I was looking at the plugins that were installed and couldn't figure out why this particular one was so I deactivated it and that solved the issue.

    Thanks for the help and apologies for the wasted time.

  12. Nope, not wasted time. I'm glad you got it sorted out. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags