Sidebar Repair woes!
-
I am trying to put up a new page on a customer’s site. He paid someone to write this site and as far as I can see it is not a published theme. Since that time someone else has worked on it but with dismal results.
I have two sidebars, left and right. Here is the code from the Left one;
<?php /* Template Name: sidebar.php */ ?> <nav id="sidebarL"> <?php wp_nav_menu('side'); ?> </nav>
This does generate a left sidebar which shows a basic WP menu, but does not allow any of the page content to show – here is a screenshot of the resulting page;
https://gyazo.com/2e9c4c6c4b75c9d5f847ffb87af95039Then there is the right sidebar, it only generates an error, but it also contains html <div> tags, which got me scratching immediately;
https://gyazo.com/aa26a92c72e6c12d21882ce4cc303cffHere is the code;
<?php /* Template Name: sidebarL.php */ ?> if ( is_active_sidebar( 'sidebar-2' ) ) : ?> <div id="primary" class="sidebar-container" role="complementary"> <div class="sidebar-inner"> <div class="widget-area"> <?php dynamic_sidebar( 'sidebar-2' ); ?> </div><!-- .widget-area --> </div><!-- .sidebar-inner --> </div><!-- #tertiary --> <?php endif; ?>
Obviously there are no sidebars running on the site now, so whatever this person was trying to do, did not work out.
I am in the process of learning coding but writing a sidebar.php from scratch is presently over my head. I did look through the style.css to see if these ids or classes were being called there. They are not.
Is this salvageable at all? The presence of the <div> tags, a closing ?> without a corresponding opening <?php, and what seems to be a misplaced ) has me worried.
I tried fixing this by changing what I saw that was wrong, but when I got rid of all the errors I still had a big blank white page.
Don’t care about the left sidebar at all, or even about having two, but do need the right one.
Any ideas/suggestions/hope would be appreciated. Just don’t want to give up, but I am for tonight!
- The topic ‘Sidebar Repair woes!’ is closed to new replies.