Forum Replies Created
-
AuthorPosts
-
modernearth
ParticipantThis reply is private.
modernearth
ParticipantThis reply is private.
modernearth
ParticipantNico,
Can I have a follow up on this?
modernearth
ParticipantHey Nico,
I deactivated Yoast and sadly the problem is still occuring for the Upcoming Events page that is using the default events template. For the other page in the site that I used a shortcode on, the error on the title tag isn’t happening and is instead showing the actual title of the page that I assigned to it which is good so I am thinking there could be something wrong with the Default Events template since Yoast is disabled already.
____________________________________________________________
Also about the title of the calendar outputted by the shortcode,
I decided to add a JQuery fix to remove the Courses from the title so that should be a good workaround for now unless you can give me a better solution for it.
The JQuery code that I added for it was this (I basically wrapped the “< Course” text in a span tag and targeted that span tag using JQuery and removed it using JQuery too).
$(".page-template-template-coursesbycalendar-php .tribe-events-page-title").wrapInner("<span class='course-text'></span>"); $(".course-text").remove();Please let me know if you have any solutions about the error in the title tag as soon as you can.
Thanks alot!
– Chrismodernearth
ParticipantHey Nico,
Sadly it’s still not changing and still says “Month” > “Category” (i.e. January 2017 > Courses) above the calendar, with Courses being the name of the event category that I used for the shortcode.
Aside from that to I am also getting a <title> tag error on the main events page that is using the default events template, I have Yoast SEO installed too, and on that page, the title tag is being outputted as the name of the very last event on the calendar (right now being Exam Markings) instead of Events Page or Upcoming Events. How can I fix this other problem?
-
This reply was modified 9 years, 4 months ago by
modernearth.
modernearth
ParticipantHey Nico,
Quick update: I was able to solve the issue by adding <?php wp_footer(); ?> which was apparently missing from my code. The styling is now there and the calendar output by the shortcode is now outputting properly so I will be marking this reply as the correct answer.
Another question though, how do I change the title outputted by the shortcode? My code:
<?php echo do_shortcode('[tribe_events view="month" category="course"]'); ?>is outputting the title “January 2017 > Courses” which is the Month > Category. How can I possibly just have it as “January 2017”???
Thanks!
modernearth
ParticipantHey Nico!
I am adding the shortcode in a template through PHP so the code that I have in is:
<?php echo do_shortcode('[tribe_events view="month" category="course"]'); ?>The template is then applied to a page. The page is currently on a test site right now (its IP restricted) and I can get you access to it but I would need to ask for your computer’s IP address first (if that’s fine).
________________________________________________________
I have also not done the testing for conflicts process yet though I noticed a Google Map JS conflict on the Chrome dev tools console, I’m seeing that the Google Map JS code is being added twice by two different plugins (I would assume one of them is TEC) but the version that is seem to be added by TEC doesn’t have any API keys on it so I’d rather dequeue that lone script, is there any way to do that — it’s a Google Map conflict but maybe it can also miraculously fix this problem?
Thanks!
– Chris -
This reply was modified 9 years, 4 months ago by
-
AuthorPosts
