• Resolved Carival

    (@carival)


    Hello Mva7,

    I hope you’re fine. I need a little help from you.

    When a given holiday date is clicked in the calendar it goes to a page where
    some info of that holiday is showed. As you can see in the link below, the page title for all holidays is “thc-events”. My questions are, where that title comes from? Is there any possibility of change or translate that to spanish?

    https://mititaweb.com/wp-content/uploads/2018/03/page-title.jpg

    Any help would be very much appreciated it.

    Carlos A.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author mva7

    (@mva7)

    Hi,

    will check it within a couple of days for you!

    Regards,

    Mva7

    Plugin Author mva7

    (@mva7)

    Hi,

    this looks like a problem in the Kidzy theme. If you could send me the raw theme (zip) then I can see what the problem is. My e-mail is: [email protected]

    I will delete the theme from my computer after the problem is solved.

    Thanks!

    Regards,

    Marco

    Thread Starter Carival

    (@carival)

    Hi Mva7,

    I just sent a We Transfer link to your mail with the file requested.

    I hope you can find the problem and fix it.

    Thanks again,

    Carlos A.

    Plugin Author mva7

    (@mva7)

    Hi Carlos,

    please edit the following file kidzy\kidzy\lib\sub-header.php on line 71

    Change:

    } elseif($wp_query->queried_object->name == 'tribe_events' ) {

    into:

    } elseif($wp_query->queried_object->name == ‘tribe_events’ || $wp_query->queried_object->name == ‘thc_events’ ) {

    Regards,

    Mva7

    • This reply was modified 6 years, 7 months ago by mva7. Reason: Typo
    • This reply was modified 6 years, 7 months ago by mva7.
    Plugin Author mva7

    (@mva7)

    deleted

    • This reply was modified 6 years, 7 months ago by mva7.
    Plugin Author mva7

    (@mva7)

    One small update. This is the final version ??

    } elseif($wp_query->queried_object->name == 'tribe_events' || $wp_query->queried_object->name == 'thc_events' ) {

    Thread Starter Carival

    (@carival)

    Hello Mva7,

    I replaced the original code with the last one updated in the file that you told me but nothing happens. The output in the page sub-header keeps showing the same output “thc-events”.

    I followed the path, found the file, updated the code, but no change.

    Any ideas?

    Thanks for your help.

    Carlos A.

    Plugin Author mva7

    (@mva7)

    And when you try this?:

    } elseif($wp_query->queried_object->name == 'tribe_events' || $wp_query->queried_object->name == 'thc-events' ) {

    Regards,

    Mva7

    Thread Starter Carival

    (@carival)

    Hello mva7,

    Thanks again for your valuable help.

    I tried the latest code that you sent but it caused a white screen of death. So,
    I understand what you did and tried adding this additional condition to the theme’s original one:

    } elseif($wp_query->queried_object->name == 'thc-events' )  {
     echo '<h2>'.esc_html__('Feriados','kidzy').'</h2>'; } 

    AND IT WORKED!!! Checked several THC day view pages and they work fine.

    The issue was caused by theme’s codes, not by your plugin. Good news, huh?

    I want you to know that in retribution for your kind help I wrote (a couple of months ago) a post about your plugin and recommending it to the all venezuelan potential users who may need a WP calendar, with venezuelan holidays, on their WP websites. You can take a look here:

    https://crsolutions.com.ve/2018/02/19/holiday-calendar-plugin-wordpress-destacado/

    Thanks a lot and good luck!

    Carlos A.

    • This reply was modified 6 years, 7 months ago by Carival.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘THC Day View Page’ is closed to new replies.