Title: disable php
Last modified: December 21, 2020

---

# disable php

 *  [oshin99](https://wordpress.org/support/users/oshin99/)
 * (@oshin99)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/disable-php-2/)
 * I want to disable this php execution. It’s showing sidebar menu on blog pages.
   kindly help
    <?php /** * The Sidebar containing the main widget areas. * * [@package](https://wordpress.org/support/users/package/)
   GeneratePress */
 * if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly. } ?> <div
   id=”left-sidebar” <?php generate_do_element_classes( ‘left_sidebar’ ); ?> <?php
   generate_do_microdata( ‘sidebar’ ); ?>> <div class=”inside-left-sidebar”> <?php/***
   generate_before_left_sidebar_content hook. * * [@since](https://wordpress.org/support/users/since/)
   0.1 */ do_action( ‘generate_before_left_sidebar_content’ );
 *  if ( ! dynamic_sidebar( ‘sidebar-2’ ) ) {
    generate_do_default_sidebar_widgets(‘
   left-sidebar’ ); }
 *  /**
    * generate_after_left_sidebar_content hook. * * [@since](https://wordpress.org/support/users/since/)
   0.1 */ do_action( ‘generate_after_left_sidebar_content’ ); ?> </div><!– .inside-
   left-sidebar –> </div><!– #secondary –>

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 5 months ago](https://wordpress.org/support/topic/disable-php-2/#post-13818331)
 * What is it you’re trying to accomplish? Forget about pasting code right now.
 *  Thread Starter [oshin99](https://wordpress.org/support/users/oshin99/)
 * (@oshin99)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/disable-php-2/#post-13822263)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) My theme is having
   a sidebar left.php file, due to which it is showcasing primary navigation as 
   sidebar navigation on the entire website except the homepage. So I want to disable
   it and display primary navigation in the header only.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 5 months ago](https://wordpress.org/support/topic/disable-php-2/#post-13822602)
 * The plugin “widget context” lets you define the pages on which individual widgets
   do (or do not) appear.

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

The topic ‘disable php’ is closed to new replies.

## Tags

 * [php wordpress](https://wordpress.org/support/topic-tag/php-wordpress/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/disable-php-2/#post-13822602)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
