Support » Themes and Templates » Page Stops Working If Line of Code Is Removed

  • I’ve seen this happen with a few themes, how is it done?

    When you delete certain text / links from a theme template file, the theme just stops working.

    So, how’s it done?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Well, if you use a plugin that is called from the template file (like related_posts();) your theme will break if you don’t have the plugin activated.
    You should always use if (function_exists('related_posts')) related_posts(); in order to make sure that your that the function exists; if it doesn’t than the theme will continue to work.

    P.S Does it solve your question?

    [sig moderated]

    Ahh I see,

    Sadly it doesn’t, I’m talking about normal text and classes eg. credit links etc. I’ve seen it done with a few themes before. Just how exactly is this done?

    Thanks,
    Shaibani

    Sadly it doesn’t, I’m talking about normal text and classes eg. credit links etc. I’ve seen it done with a few themes before. Just how exactly is this done?

    check out
    http://wordpress.org/support/topic/188598?replies=11

    Ah, I see. No answer there.

    I understand, this isn’t an appropriate question for such an open-source community.

    Apologies for any inconvenience,

    -Shaibani

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Without knowing exactly what you are removing or changing, there is no way to answer your question.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page Stops Working If Line of Code Is Removed’ is closed to new replies.