It is currently Thu Sep 09, 2010 3:20 am




Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Calendar display problem in WP Twenty Ten
PostPosted: Wed Jul 21, 2010 7:47 pm 
Offline

Joined: Wed Jul 21, 2010 7:39 pm
Posts: 2
Hi,
I use the twenty ten theme and have version 1.2.3 of the calendar installed on the following page:

http://www.rctnt.com/?page_id=16

For the life of me, I cannot get the width to change.

I tried setting the width to be 600px here so it would fit in the content area and it hasn't changed

.calendar-table {
border:none;
width:100%;
}

Can you help? What could be the problem? Look at my css if you think it would help please. thanks

http://www.rctnt.com/wp-content/themes/ ... /style.css


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
PostPosted: Thu Jul 22, 2010 2:59 am 
Offline

Joined: Thu Jul 22, 2010 2:54 am
Posts: 9
I am having the same issue. I've combed over the CSS code for the Calendar plugin and have edited items that I feel will contribute to the width or overall size of the displayed calendar but I still come up with nothing.

I am also using the twenty ten theme with my site.

I have a hunch it's because of the theme twenty ten. I'm going to install the plugin on another theme.

I know it's possible to edit the displayed Calendar in shapes because the one that is posted at http://www.kieranoshea.com/calendar is customized to fit a specific width and also has a different appearance then the defaulted calendar that is displayed with my twenty ten them install on WP 3.0


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
PostPosted: Thu Jul 22, 2010 3:40 am 
Offline

Joined: Thu Jul 22, 2010 2:54 am
Posts: 9
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.


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
PostPosted: Thu Jul 22, 2010 4:24 am 
Offline

Joined: Thu Jul 22, 2010 2:54 am
Posts: 9
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.


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
PostPosted: Thu Jul 22, 2010 6:01 am 
Offline
User avatar

Joined: Wed Jul 07, 2010 6:09 am
Posts: 9
Location: the Netherlands
I'd like to have an answer to this as well:
mikemimik wrote:
I am having the same issue. I've combed over the CSS code for the Calendar plugin and have edited items that I feel will contribute to the width or overall size of the displayed calendar but I still come up with nothing.

I am also using the twenty ten theme with my site.

I know it's possible to edit the displayed Calendar in shapes because the one that is posted at http://www.kieranoshea.com/calendar is customized to fit a specific width and also has a different appearance then the defaulted calendar that is displayed with my twenty ten them install on WP 3.0

Exactly my problem. I want my calendar to look like the one on Keiran's page. Mine has too much padding in the cells, making all the text break off VERY soon, resulting in 1 word being cut in 3 lines :(
Also the days have different widths, which looks horrible.

Please help! here's my page.


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
PostPosted: Thu Jul 22, 2010 6:16 am 
Offline
User avatar

Joined: Wed Jul 07, 2010 6:09 am
Posts: 9
Location: the Netherlands
Having taken another closer look, I'd REALLY like to see Keiran's CSS code. His calender looks a LOT better than this.
It has fixed widths, nice looking borderd, equally spaced category key beneath the calendar, the names of the days fit in the boxes, height of the top 3 rows above the actual calendar days is smaller.
The standard CSS code just doesn't look like that at all...

And also, can I remove the asterisk (*) from the entries in the calendar?

Hope you can help Keiran ;)


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
PostPosted: Thu Jul 22, 2010 3:39 pm 
Offline
User avatar

Joined: Wed Jul 07, 2010 6:09 am
Posts: 9
Location: the Netherlands
Well, I've found out one thing:
The 2010 theme (and all themes based on that) makes additional CSS codes useless. I've tried a different theme, and the calendar looks fine there. *sigh* just as I modded the 2010 theme to my liking :cry:

I'd like to find a way to fix this, and perhaps you've had similar posts here, as 2010 is the standard theme for WP3.0.
If you know a way to make the calendar CSS work in the 2010 theme, please let me know. I'd hate to have to change the site (and modify another theme to suit the websites design) only for the calendar plugin.

Thanks


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
PostPosted: Thu Jul 22, 2010 5:03 pm 
Offline

Joined: Wed Jul 21, 2010 7:39 pm
Posts: 2
Sorry for posting this here but I solved the problem by switching to My Calendar

http://wordpress.org/extend/plugins/my-calendar/

It's a branch off of this plugin. Seems to work fine and fit right in the space without me having to do anything.


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
PostPosted: Fri Jul 23, 2010 12:22 pm 
Offline
User avatar

Joined: Wed Jul 07, 2010 6:09 am
Posts: 9
Location: the Netherlands
Thanks for that. I've tried it, but that one also seems to have issues, although those were not theme related I think. But I'll not go into details about that here.
I still prefer Keiran's calendar, but I would appreciate a solution for the 2010 theme.


Top
 Profile  
 
 Post subject: Re: Calendar display problem in WP Twenty Ten
PostPosted: Fri Jul 23, 2010 6:11 pm 
Offline
User avatar

Joined: Sat May 26, 2007 1:55 pm
Posts: 1169
Location: Swindon, UK
Thanks for the style issue reports. I'm working on solving the default style in the twentyten theme; at present it's set to work out of the box on kubrick.

_________________
Kieran O'Shea


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2, 3  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: