Roots Theme: How to Remove Sidebar on Tribes Calendar? - wordpress

I am using the Tribes calendar Tribest Events Calendar and I want the sidebar from my site to be removed. I have gone through this post, but it doesnt work: http://discourse.roots.io/t/roots-and-modern-tribes-events-calendar/603
I have created the duplicate default-template.php but nothing happens.
I was having the same issue with woocommerce until I added "'is_woocommerce'," to the lib/config.php file and it removed it for woocommerce. Is there the same hack that I can use for the Tribes calendar. I just dont know what to script in: "'is_tribes' (???)," I hope someone can help smile
Thanks for any feedback that you can give me.

The plugin provides conditional template tags (a.k.a. functions) in the format tribe_is_*().
E.g. conditionals for calendar pages: tribe_is_upcoming(), tribe_is_month(), and tribe_is_day() (I believe there are other views in the Pro version of The Events Calendar plugin.)
To remove the sidebar from calendar pages in the Roots-based theme, you would pass "tribe_is_upcoming", "tribe_is_month", and "tribe_is_day" to the instantiation of the the Roots_Sidebar class in lib/config.php. To also remove it from single event pages, pass "tribe_is_event".

Related

Add custom flow on member registration form in Wordpress website

I have a Wordpress website and want to add custom flow of registration.
The current website has these pages but I am not sure if there is any plugin that has inbuilt such flow feature or how to add this feature.
Any help appreciated.
I had to do a similar modification.
Your case seems the same as mine, its a single form, split onto steps for helping users/validations.
I didn't found any plugin ready for all i needed (the steps thing), and mainly ... hooks to change registration form in wordpress just add extra fields to standard fields, i needed to completly remix the order, so I went the javascript way:
Added my custom css and JS to login/register pages with the action 'login_enqueue_scripts'
Added my custom fields to form using 'register_form' action
Added a class to login body with 'login_body_class' filter, to keep things hidden while JS magic happened;
I'm not sure what's your skill level in JS, but once you got those hooks ready you can make pretty much whatever you want with the register form.

Relationship based Taxonomies Dropdown

Please help.
I am very new to web development & don't have any computers background. I have created a pincodes database Website pincodes.forinfo.in using WordPress. I want a relationship based dropdown Taxonomies like www.pincode.city.
I have tried many ways from last 6 months but failed. Please help me.
I have custom Taxonomies State, District, City, pincode. I need a taxonomy dropdown, when user clicked on state the second dropdown should show the Districts of that particular state. Like wise when a user clicked on District the third dropdown should show the cities of the particular.
How can it is possible. Please help me.
I want show this dropdown on a WordPress page.
If you are using the latest version of Wordpress then I do not see the reason to be baffled by this, since you will be able to manage this from Appearance->Menu.
Check out my screenshots.
Click on the Screen Options button on the top right corner of the
Menu page. Screen Options
For me, Types is a custom Taxonomy, so I select it. The taxonomies appear on the left now Custom Tax Appears
You can now add the links to your menu and then arrange it so that it becomes a sub-menu of your primary menu.
This is how your menu should look if you want your custom taxonomy to be a sub-item of another menu item.
Sub menu items
You can do this by holding and dragging the item slightly to the right.
You can stack such items one below the other and create endless sub-menus.
I must mention that there are some themes that do not support sub-menus. If you theme doesn't, change it and check again.
Things that you need to do to implement your idea:
Get a good autocomplete plugin - Easyautocomplete (Much better than jQuery UI autocomplete)
Create three input boxes on a custom template page
Use enqueue_script to get your JS files to load with your Wordpress installation
Bind autocomplete to the three input text boxes
Learn how to query your Wordpress installation for your taxonomies
Use a php file to transfer a json file of your taxonomies to the autocomplete function - I would recommend this AJAX plugin
Have conditions in your php file according to which the 2nd field's values are fetched after getting the value of the first field and similarly for the third field
As I said, it's a lot of coding, and if you are really starting out to code this yourself, without much knowledge of PHP or jQuery, it's going to be very difficult. I would suggest you take the help of a developer.
You can even send me the details of logging into your Wordpress installation, if you want me to take a look.
Mail me at arunadaybasu#gmail.com

Disable clickable events

I am a programming neophyte; please be kind. I'm using the WP FullCalendar plugin (wordpress.org/plugins/wp-fullcalendar) to create a scheduling calendar for a volunteer ambulance. The calendar is working fine. However, I don't want any of the calendar events to be clickable. I have searched the plugin settings and haven't found anything to disable. Please let me know which file needs to be changed and what to change it to. Many, many thanks. I should add this is being used in a WordPress cms.
After discussing with #clpix, there is not a setting to disable clickable events using the wordpress plugin.
This is a workaround, I would suggest contacting the author and suggesting this as a feature.
Add this to the fullcalendar wp-content/plugins/wp-fullcalendar/wp-fullcalendar.php to the fullcalendar_args. In the latest release I added to line 324 after the comma. The comma is important so please include.
eventClick: function(event) {
return false;
},

Wordpress: Calendar Widget displaying posts by custom field (date)

I created a website build around a custom post type events. These events have custom fields, one of them is the event-date (the date the event is happening, NOT post publish date). I'd like a calendar widget that simply highlights the days an event is happening (maybe with a link to it). This means i need to plug my custom fields into a calendar widget plugin.
I found this post from 2 years ago, http://wordpress.org/support/topic/display-posts-in-a-calendar-using-custom-field-as-date?replies=8 - it seems they wanted exactly what i'm asking for. Unfortunately i couldn't figure out how to do it with the plugin mentioned by them (FT calendar).
Most calendar widget plugins simply use the pust-publish date. I need them to take their date-data from a custom field.
Do you guys have an idea which calendar-widget-plugin/way would be best for me?
After I've made a search and test of some of the event calendar plugins, calendar that would be closest to your need is All-in-One Event Calendar. After installing it is necessary to upgrade to the Standard version. The plugin has far too many options than it is needed, but is highly configurable so it can be configured to work roughly what you need.
Here is also the link with the analysis of different Wordpress event calendar plugins.

Which code relates the calendar in wordpress widget with post?

Wordpress default calendar in widget displays the post published on that particular day if we click a date.I need the code which performing this action.
it is in wp-includes/default-widgets.php in the class WP_Widget_Calendar
In there you will find a call to the get_calendar function. get_calendar itself is in: wp-includes/general-template.php It should be around line 1074.
Just putting get_calendar() anywhere will generate the calendar with click-able posts just as the widget does. Remember there have to be posts to be click-able.
Tested on multiple sites.

Resources