Forum Replies Created
-
AuthorPosts
-
Colleen
ParticipantSorry– I kept trying both plugins off and on to see if I could get it to work either way and must’ve forgotten that I was able to get it with the regular (not Plus version) of the plugin.
I think my alternative way mentioned above will suffice, but I appreciate the time.
Thanks,
ColleenColleen
ParticipantHi Cliff,
Apologies for the rather vague post.
I changed my image widget template (using the “sp_template_image-widget_widget.php” filter) with the following, so as to utilize the image as a background image and break out the title/text of the widget from the image (see attached):
echo $before_widget;
echo '<div class="square"></div>';
if ( ! empty( $title ) ) { echo '<div class="square"><div class="content"><div class="table"><div class="table-cell">'.$before_title . $title . $after_title; }
if ( ! empty( $description ) ) {
echo '<div>widget_options['classname'] ) . '-description" >';
echo wpautop( $description );
echo '</div>';
}
echo '</div></div></div></div>';
echo $after_widget;My end goal was to alternate the code, so if the widget was an even instance, show the background image portion of the code first, THEN the description, and if it was an odd instance of the widget, show the text THEN the image.
But, I have a feeling it’s a pretty custom request and was just hoping you might point me in the right direction.
However, I may have found another way to achieve my alternating layout, by coding in a class for even widgets, then targeting the even widgets with specific CSS styles.
I think I’m set, but if you did have any tips, I wouldn’t turn them down! Thanks to you and the team for all the great products.
Colleen
ParticipantThanks Josh,
It’s weird, because I thought the first function would do the trick too, but what ends up happening (without the second “pre_get_posts” filter) is that /permalink redirects to /event/permalink, so it goes the other way. Strange.
Thanks for the help; I think I might be out of luck for now, but at least there is a redirect in place. Despite it going the other way, I suppose the good news is that my client’s event pages from their previous site will be routed properly.
Colleen
Colleen
ParticipantAfter many hours of trial and error, I stumbled on the fact that it was a jquery conflict (as in, jquery wasn’t loading in the right order). I moved it to the footer and problem solved. Phew!
Colleen
ParticipantHey Hunter,
I’m a dummy and didn’t put the API key in the right site. No WONDER it wasn’t working. I had it in the root site’s settings and not the subsite’s settings. Please disregard my previous post, as I’m all sorted out now. Thanks for the help on creating the API key!
Colleen
ParticipantThis reply is private.
Colleen
ParticipantThanks Hunter,
I went ahead and created the API key as outlined in the link you sent, but unfortunately the problem is still persisting. It seem strange that the maps loads fine on my root domain but not my mapped (subsite) domain (maybe it’s not weird, but this is a bit outside my wheelhouse so I have no idea).
The subsite loads the map for about a second and it’s got the proper geolocation, then goes away and is replaced with the the error message.
Does it take a while for the API to kick in, even after saving it through the Event Calendar settings?
I’ll send the links via PM, and maybe that will help?
Thanks for any direction you can provide,
ColleenColleen
ParticipantHi Nico,
So sorry for the confusion on my end– I completely goofed. The solution DOES work; I just didn’t have the pro version active on my test site. I was only using the free version of The Events Calendar. I activated the pro version and it worked like a charm!
Thanks again for all of your help with this one,
ColleenColleen
ParticipantShoot! That didn’t seem to do it. I have the snippet in my theme’s function.php file and I changed out
%s Taxonomyto justtestbut no luck on changing the title of the meta box.Colleen
-
This reply was modified 9 years, 9 months ago by
Colleen.
Colleen
ParticipantHi Nico,
Thanks for getting back to me! I am looking for just a back-end change only, not the every instance. Any direction you can provide would be awesome. Thanks so much!
Colleen
-
This reply was modified 9 years, 9 months ago by
-
AuthorPosts
