WordPress.org

Forums

Page Stops Working If Line of Code Is Removed (6 posts)

  1. Shaibani
    Member
    Posted 6 years ago #

    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?

  2. nicholas77
    Member
    Posted 6 years ago #

    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]

  3. Shaibani
    Member
    Posted 6 years ago #

    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

  4. chaoskaizer
    Member
    Posted 6 years ago #

    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

  5. Shaibani
    Member
    Posted 6 years ago #

    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

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

Topic Closed

This topic has been closed to new replies.

About this Topic