Forum Replies Created
-
AuthorPosts
-
George
ParticipantCool, thanks for the update Matteo! Be sure to keep backups of any custom code you write – if you play around with some of the ideas I shared and spend some time on this, I’m sure you’ll be able to patch something together 🙂
Cheers!
GeorgeGeorge
ParticipantHey Charles,
Thanks for the reply and the code. Unfortunately, after looking a bit closely into things the exact coding for all this is quite outside the scope of the support we can provide here on the forums.
I’m really sorry if that’s a disappointment! But don’t fret – the thing you’re trying to do is not that complex, just as far as WordPress-based development is concerned, and basically all you need to do are a few things: first, query WooCommerce Product Categories and use the list of categories you get as a result to add a form field to events meta boxes somewhere – a “Select” form field would work best.
As long as whatever value you select in this form field is something you can access within the $_POST superglobal, then you can just add a hook to save_post() within WordPress that looks for this value within $_POST and saves it where appropriate – either to the event itself, or to a related WooCommerce product or whatever else you need.
I’m sorry this isn’t a fully-coded solution for you, but let us know if this helps you get started on implementing this!
Cheers,
GeorgeGeorge
ParticipantHey Kimberly,
While we only offer very limited support for customizations and style tweaks, the good news is that you should be able to achieve most of the customizations you’re aiming to make with just a bit of custom CSS.
For example, here’s a bit of custom CSS I tested on your site to remove that white backgrounds on form field boxes:
.tribe-events-community-details { background: none !important; }Here’s how that looked on your site → https://cloudup.com/cjj9KQerExX
I hope this helps get you started! Try adding it to the bottom of your theme’s style.css file and see if it helps.
For further specific tweaks, I’d definitely recommend installing and learning the basics of a free tool like Firebug if you use FireFox, or the Developer Tools for either Safari or Chrome.
All of these free tools have a thing called an Inspector Tool within them, which you can use to basically just mouse over specific elements whose styling you’d like to change, and see what CSS you’d have to write to change the styles.
Let us know if this helps!
Cheers,
GeorgeGeorge
ParticipantHey @p88admin,
I’ve run some test imports of test events from Eventbrite and cannot ever reproduce this behavior, so I’m really curious about your current issues.
I’m curious – if you deactivate all plugins on your site except The Events Calendar and The Events Calendar Eventrbrite add-on, and try doing some imports anew for testing purposes, how do things behave?
What if you leave all these plugins deactivated and then also activate a default theme on your site like Twenty Twelve? (A more recent default theme is fine, too).
Let me know what you find from doing these tests.
Cheers,
GeorgeGeorge
ParticipantThanks for understanding Simon – and for your patience with my delayed reply!
It’s really just my opinion that trying to mess all the core Views orderby functionality is not worth it – there’s a lot in the plugin that depends on the specific date ordering of events.
However, if that does turn out to be something you really need for your site, I can reach out to a more well-versed Dev on our team for some deeper input on how to go about enabling this.
Thanks for being cool, keep us posted on your project!
– George
George
ParticipantHey Simon,
Altering the events order for some of the core calendar views like is actually quite difficult to do, and could have a lot of negative consequences on how other aspects of the plugin function.
To change the sorting, if you’re really interested, it might be possible by using the pre_get_posts() function not unlike that original snippet I shared with you, but I played around with this for quite some time on my local test site and was not able to get the main List View loop looking this way.
If possible, I’d recommend not using one of the core Events views and instead maybe making a custom page template in your theme, and then just querying for events yourself, without even having to worry about all the specific time-oriented ordering that Events Calendar does in its core Events views and in wrapper functions like tribe_get_events(). In other words, you’d probably have better luck just using WordPress’ own get_posts() function directly, and specifying the tribe_events post type.
Here’s an example of that in a Gist for you to take and play around with → https://gist.github.com/momnt/db40abff79157cb4141a
I would agree with you if you were to argue that this should be simpler – I’m sorry it’s not, or if it is but I’m just missing something here, then I’m sorry for that too 🙂
Please play around with this and look into using custom page templates, a simpler solution like this that you make yourself may seem more work up front but might save a light of random unexpected headaches that might pop up by trying to forcefully alter the Events core views’ order parameters.
Let me know what you think Simon, sorry to disappoint here.
— George
George
ParticipantHey Paul,
Thanks for elaborating on things here. Fortunately, we have two filters that should help here, they let you change the default labels for “Events” to whatever you want – in your case, “Classes”.
Check out the examples of using these filters I wrote for you, over in this Gist → https://gist.github.com/ggwicz/8cb846ebd45369e38b27
If you paste those functions into your functions.php theme file, or a mu-plugin, or a functions.php file in a child theme, they should help!
Now, as for removing that grey “Blog” header text, try the following CSS at the bottom of your theme or child theme’s style.css file:
body.tribe-events-map #df-normal-header { display: none !important; }Let us know if these help! 🙂
Cheers,
George-
This reply was modified 10 years, 7 months ago by
George.
George
ParticipantHey Simon! I’m really sorry about the delay, I swear I posted a question to this ticket on Saturday (March 7), I don’t know what happened – maybe I typed it up and thought I’d submitted it, but actually hadn’t, then switched to another support ticket and lost the post or something.
I’m really sorry Simon – my original post was one where I was curious about some more details about what you’re trying to do exactly.
For example – when you say “Front end”, do you mean on your main “Events” pages like the Month View, List View, Week View, etc.? Or do you mean elsewhere in your blog loop or something?
Be as specific as possible and let me know exactly where you’re trying to get the events to display this way – changing the display ordering of the events on main Events View pages is quite tricky, but elsewhere it’s much simpler.
One thing that might be helpful is our code snippet here → https://theeventscalendar.com/knowledgebase/order-events-in-main-blog-loop-by-post-date/
If you try out that code, how do things behave for you?
Thanks,
GoergeGeorge
ParticipantSounds good Mark, glad to help – be sure to keep backups of any custom code like this that you use on your site, or at least bookmark this support topic for future reference.
Best of luck with your project,
GeorgeGeorge
ParticipantCool – best of luck with your site!
George
ParticipantHey Paul,
Thanks for reaching out to us.
First, can you share a link to your “Blog” page?
Next, just to be clear, you mention finding a theme override for use in your functions.php file, so does that mean that you have been able to to change “Events” to “Classes” in most parts (other than the “Blog” text)?
Finally, for now – what theme are you using? If it’s a free theme available online, share a link to it, if not, please share a download link with us over something like Dropbox.com or http://ge.tt – you can check the “Set as private reply” option before posting that reply if you’d like, so that your download link is only accessible to you and use here on the support team…
Thanks!
GeorgeGeorge
ParticipantHey Dave,
Thanks for sharing that.
tribe_events_cat() is not a function – what you might be able to try instead is something like this:
if ( 'hunts' == tribe_meta_event_category_name() ) {
And proceed with that. I hope that helps – let me know if it does!
Also, one thing that might help too, is that there’s a function within WordPress called get_template_part() that we modeled our own tribe_get_template_part() off of – you can use get_template_part() instead of using TEMPLATEPATH and such, it might help. Learn more about get_template_part() here → http://codex.wordpress.org/Function_Reference/get_template_part
Cheers,
GeorgeGeorge
ParticipantHey Mark,
Thanks for being cool, I hope I can reward your patience by finally having written something that does what you’re looking for.
So, to start, here’s what my exported gCal descriptions looked like – notice how while it’s not as much extra junk at the end as your descriptions, my JetPack buttons did add extra “Share This:”-style text to the descriptions → https://cloudup.com/cwXTaCaL4PG
I modified the original code you shared here in this support ticket, and you can find my modified function in this Gist here → https://gist.github.com/ggwicz/98f3845c81fb7624871f
With that code, basically it looks for the string ‘Share this with others via:’ in the description being passed to it, and cuts off anything from that string onwards – this hopefully will work well for you, especially since the extra Sharing Buttons junk is only at the end of the descriptions. Note, however, that if for some odd reason any of your descriptions have the text “Share this with others via:” in their body content, everything after that will be stripped.
To change what string is matched, just change what’s found in the $to_remove variable. For example, for me I just set that variable to “Share this:”, and now look at how my gCal descriptions look compared to the screenshot above → https://cloudup.com/cAnMbPWyG8c
Nice!
Now, one last thing is that you seem to want to add links to “full descriptions” at the end of your gCal short descriptions, which will get cut off with the current code solution I shared above. If you do need a link like this, you can still just add some PHP code to add text to the $trimmed variable – which is the description with all the “Share this:” junk removed – and then set it equal to $params[‘details’].
You’ll have to take the reins on tweaking the rest of the code to get that just right, but here’s an example of another modified version of that function to show you how I would do it → https://gist.github.com/momnt/b70ce73e26a6ac42dba7
Here’s how that looks when exported to gCal → https://cloudup.com/cFMtwjUGb1r
Okay, there’s a lot here…take your time and go through all the information, screenshots, and code here, play around with stuff, and let me know if it helps! 🙂
Cheers,
George-
This reply was modified 10 years, 7 months ago by
George.
March 7, 2015 at 11:53 am in reply to: Event details not showing on SOME events in list view #946719George
ParticipantHey Clint,
I’ll indeed keep this thread open, no worries 🙂 Keep us posted! I’ll check in another week or so if I don’t hear from you, but just to keep the thread alive and such – take your time.
Have a nice weekend,
GeorgeGeorge
ParticipantNice! Best of luck with your project.
Cheers,
George -
This reply was modified 10 years, 7 months ago by
-
AuthorPosts
