Home › Forums › Calendar Products › Events Calendar PRO › Events Calendar Pro – Next Month Links Not Working
- This topic has 3 replies, 2 voices, and was last updated 12 years ago by
Barry.
-
AuthorPosts
-
February 26, 2014 at 7:34 am #109630
bassodesigngroup
ParticipantI am branching off this topic and creating a new one as requested:
https://tri.be/support/forums/topic/events-calendar-pro-next-month-links-not-working/#post-109119
The next month links for our calendar, located at http://www.flintandgenesee.org/public-events/ are not working. In the thread I posted, you mention to update our body code, but I am not sure how to do so because we use a big IF statement in that tag to determine which class should be applied. In that IF statement, I do not see the class “customize support” which is being called on the calendar page I mention. This is our current BODY code in the header.php file:
<body<?php if(is_page(connectPageID)||(($post->post_parent)==connectPageID)||(($post->post_parent)==connectnetworkingeventsID)||(($post->post_parent)==grypID)||(($post->post_parent)==insuranceID)||(($post->post_parent)==benefitsPageID)||(($post->post_parent)==committeesPageID)||(($post->post_parent)==moreoppsPageID)):?> class=”connect-page”<?php endif;?><?php if(is_page(developPageID)||(($post->post_parent)==developPageID)||(($post->post_parent)==siteselectorsPageID)||(($post->post_parent)==regionaldataPageID)||(($post->post_parent)==govtcontractingPageID)||(($post->post_parent)==businessservicesPageID)||(($post->post_parent)==availablepropertiesPageID)):?> class=”develop-page”<?php endif;?><?php if(is_page(visitPageID)||(($post->post_parent)==visitPageID)||(($post->post_parent)==planvisitPageID)||(($post->post_parent)==planconventionPageID)||(($post->post_parent)==plansportsPageID)||(($post->post_parent)==packagesPageID)||(($post->post_parent)==motorcoachPageID)||(($post->post_parent)==aboutcvbPageID)):?> class=”visit-page”<?php endif;?><?php if(is_page(learnPageID)||(($post->post_parent)==learnPageID)||(($post->post_parent)==businesstrainingPageID)||(($post->post_parent)==highereducationPageID)||(($post->post_parent)==teenquestPageID)||(($post->post_parent)==syiPageID)||(($post->post_parent)==k12PageID)):?> class=”learn-page”<?php endif;?>>
As you can see, the “customize-support” class is not being added in this statement, so I’m not sure if this is the right spot to add it. If you need admin access to our WP panel, please let me know. Thanks.
February 26, 2014 at 4:59 pm #110015Barry
MemberOK, well I think in that case you have two choices. The first is that, at each point in the statement where you output a class, insert the body_class() call before the closing quote for the class attribute. So basically change sections like this:
class="connect-page"To this:
class="connect-page <?php body_class() ?>"Which in this instance you’d do multiple times. Though all in all it would probably be better to refactor things and simply do:
<body <?php body_class() ?>>And inject your custom classes via a filter – however the initial approach I outlined might be easier for you in the short term. Does that help at all?
March 3, 2014 at 7:58 pm #112035bassodesigngroup
ParticipantI added the <?php body_class() ?> after the IF statement instead of on each echo and it now works. Thanks!
April 21, 2014 at 7:36 am #138275Barry
MemberClosing this thread as it’s been quite a while – of course if we can help with anything else please do create a new thread. Thanks!
-
AuthorPosts
- The topic ‘Events Calendar Pro – Next Month Links Not Working’ is closed to new replies.
