Ryan
Forum Replies Created
-
OK. Is the solution above the only way to get this working again?
Seems a little long-winded. Remind me never to use WPClean Up again ??comprido, exactly the same problem here..
I tried to re-install the plugin, and it still fails. I will keep searching, let me know if you find anything!
my bad
nice! =) i’ll give it a spin!
Hmm ok, wouldn’t it be possible to provide some kind of function to return a value within your plugin? i.e get_teccc_bg_color($post_id) or something? i think that could solve many problems for those wishing to drastically change the template options?
Sure: here
I’m also getting a error with
teccc_add_legend_view()
Fatal error: Call to undefined function teccc_add_legend_view() in /home/www/hqhq.dk/beta/wp-content/themes/angular/functions.php on line 435
that was with: teccc_add_legend_view(‘upcoming’);
??
OK. i guess i can just add a filter onto a class like you said,
but how can i add the colour i’ve picked in the admin to my css class?add_action( 'teccc_add_legend_css', 'my_extra_legend_css' ); function my_extra_legend_css () { echo '#eventCat { background-color: ; }'; }
or am i missing a point of this?
OK. I’ve solved it.
For reference to others wishing to do this:Added a css class to views/category.css.php
.eventCat-<?php echo $slug ?> { background-color: <?php echo $options[ $slug.'-background' ] ?>; }
added the class and div to my themes single-event.php
$terms = get_the_terms(get_the_ID(), 'tribe_events_cat'); $firstItem = current($terms); ?><div class="eventCat eventCat-<?=$firstItem->slug?>" ></div><?
You can just set a foreach on the
$terms
array coming through if multiple categories are used ?? of-course, this isn’t the perfect solution as in an update this could break.Thanks for the direction Andy.
Adding images now ??
OK. It’s not typically the legend, its the colour bars in general (if that makes sense)
If i delete my theme/tribe-events/* files so it reverts back to the plugins theme files it works fine yeah. it’s my template that isn’t using the plugins css classes.. How does your plugin give the HTML colour code out? maybe you can make an add on so we can call the HTML colour code within the loop? i.e teccc_get_color(); ? just an idea.
I have:
<div id="event" class="wrapme"> <div class="eventCat tribe-events-list-event-title summary" ></div> ... </div>
the eventCat class just places the box to the side, how do i colour it?
sure https://hqhq.dk/beta/events
It’s very much not complete yet ??Hmm example,
I just want my
<div class="eventCat">category</div>
to be coloured within the event list loop. Can i just append the CSS class the eccc creates to my div? or is there another way of grabbing the colour code into my theme?Ah ok sorry, on the default theme with Event Manager, a little colored bar appears in the title of the event listings. However, i’ve made a custom theme for my event list, How do i get the coloured bar back? is there a CSS class i need to include for it to be coloured?
Forum: Plugins
In reply to: [Is Latest Post?] 3 latest posts?well, that would be 4.. my bad.