-
AuthorPosts
-
July 14, 2014 at 11:27 pm #5691
Josh
GuestWe are using the asteroid theme and have added the calendar widget, http://wordpress.org/plugins/calendar/. When we add the widget and set the title to nothing, the page still shows Calendar as a title. This in turn creates the calendar in another div that is not 100% of the sidebar. Is there a way to change this?
July 15, 2014 at 1:50 am #5693Ron
KeymasterI tested the plugin you linked with both Asteroid Theme and the default WP Theme (Twentyfourteen). Both theme’s display a “Calendar” title even without setting one. This means that the plugin is the one setting the title.
I inspected your calendar plugin and there is a certain line that prevents a user from setting an actual empty widget title.
$widget_title = empty($the_title) ? __('Calendar','calendar') : $the_title;
You could of course input a space (
) instead of a title but that would still output the html markup for the title which would show an empty bar. This is out of any theme author’s control and is something you should ask the plugin author.However, you could simply hide the calendar widget’s title through CSS:
.widget_events_calendar .widget-title { display: none; }
The page still shows Calendar as a title. This in turn creates the calendar in another div that is not 100% of the sidebar
The calendar widget’s width is controlled by the plugin itself. As indicated on the plugin’s code:
$calendar_body .= '<div style="width:200px;">
Again, this is something you should ask the plugin’s author. Though you could also override it through CSS:
#events_calendar > div { width: 100%; }
Note: As indicated on the notice on top of the forum page, Questions about specific plugins should be posted first on their respective support page as plugin authors should know more about them.
July 15, 2014 at 5:12 am #5695Josh
GuestI apologize as I thought this was a page issue and not a plugin issue. Thanks for your help and I will contact the plugin creator.
July 15, 2014 at 5:16 am #5696Ron
KeymasterNo problem. To override the plugin’s CSS, you can just add the CSS codes above on
Asteroid Options -> Custom CSS
-
AuthorPosts
- The forum ‘Asteroid’ is closed to new topics and replies.