mikemimik wrote:
I found a work around for now. I found
this link that removes all the widgets on one's home page. Coupled that with
this link and I was able to adapt it for the exact page I wanted (the page my calendar is on).
Process:
I had to edit my functions.php so that the WP install would not initialize the widgets on the selected page. Unfortunately this was not enough. The redundancy of sidebar.php which generates general widgets if none are selected had to be circumvented.
Code:
add_filter( 'sidebars_widgets', 'disable_all_widgets' );
function disable_all_widgets( $sidebars_widgets ) {
/* Use the second link above to properly use the is_page() function */
if ( is_page() )
$sidebars_widgets = array( false );
return $sidebars_widgets;
}
If you've ever noticed when using a fresh install of a theme and you have not set up your widgets yet but when you view your site there are those 'default' widgets displayed until you select which ones you'd like.
I had to place the code section above in both functions.php and sidebar.php in order to get rid of the widgets on the page I wanted.
ADVISORY NOTICE:
This is just a work around and the calendar is still not 'formatted' for fit the area correctly but not I don't have the widgets over lapped on top of my calendar.
PLEASE BE ADVISED
Not being able to edit my post, I was incorrect in the above post. Correction noted below.
I
did not add the code section above (in quoted text) in the sidebar.php. Within sidebar.php find the follow code:
Code:
if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
and modify it to the following:
Code:
/* Use the second link above (in quoted text) to properly use the is_page() function */
if ( !dynamic_sidebar('primary-widget-area') && !is_page() ) : ?>
Once you've actually disabled widgets from being initialized on the selected page in functions.php then the code above will stop sidebar.php from triggering and displaying the general default widgets on the selected page.