• Hi. I’m trying edit a theme I purchased and the developer told me to remove line 186-191:

    // Left Sidebar
    if($layout == ‘left-sidebar’) {
    echo ‘<div id=”sidebar” class=”col span_3 first”>’;
    if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Listings Search Left’) ) :else: endif;
    echo ‘</div>’;
    } ?>

    Any suggestions? I’m new to WordPress and have searched online and haven’t found a solution. I appreciate the help. Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey there,

    I don’t know which theme you refer to, I can’t see the themes code or what you want to actually do. Makes it hard to say.

    As this is a commercial theme you will need to chat further with the developer on this one as per forum rules:

    http://codex.wordpress.org/Forum_Welcome#Commercial_Products

    Take care.

    Thread Starter mlre36

    (@mlre36)

    Thanks for your reply. My question does not relate to a specific commercial theme. It is a general question on how to remove code lines from a php file. I assume I don’t just “delete” the lines I want to remove, correct? Thank you

    you can remove a Line in PHP by deleting it or adding a # tag in the beggining of the Line 🙂

    As Far as i know

    Hey there,

    My question does not relate to a specific commercial theme.

    But you originally said:

    I'm trying edit a theme I purchased and the developer told me to remove line 186-191

    If it’s a case of just removing that and you know where it is then as felixreddy mentioned, you can delete it, or if you wish to keep it you can comment it out. For larger blocks of code you can comment like this:

    /*
    CODE BETWEEN
    */

    Or singular lines at a time:

    // CODE

    # CODE

    You can also use these for commenting in code too.

    Take care.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Removing line code from template’ is closed to new replies.