"Calendar Of Events" title change

Home Forums Calendar Products Events Calendar PRO "Calendar Of Events" title change

Viewing 15 posts - 31 through 45 (of 50 total)
  • Author
    Posts
  • #16178
    Peter
    Member

    There is no the_title() function in the page.php file.

    The theme I am using is called Karma from TrueThemes: http://themeforest.net/item/karma-clean-and-modern-wordpress-theme/168737

    I will try to look for the_title() function.

    #16201
    Rob
    Member

    Thanks Peter. If you’re able to dig that up within your theme and are still having problems from there, please let us know what else we can do.

    #16483
    Lynn
    Participant

    In the FAQ, you recommend just deleting the header on the calendar page to remove instead of change the “Calendar of Events” text. here:
    ———
    Can I remove the “Calendar of Events” heading on the events list page?

    You can. The best and easiest way at this point is to do so using CSS, by using display:none. That’ll at first, get rid of ALL page headings. But you can specifically target the title only on certain pages (like the Events page) by using this code:
    .tribe_events .entry-header {
    display: none;
    }
    That will remove the calendar header but keep the headings for individual events.
    ——-

    That doesn’t work, in the events.css file, or a custom.css file of my theme. Could you be more specific about implementing this code? I was hoping it would, then I make a workaround by adding an H2 tag with the text I do want, in the spot on the Calendar settings page for HTML above the listings.

    And, now in this thread you’re suggesting that we change the English translation. I’m not seeing any confirmation in this thread that that works either.

    Sorry to be so abrupt; I’m frustrated that I’ve spent 2 hours trying to change one stupid thing on this calendar.

    #16510
    Rob
    Member

    Hi Lynn. Sorry to hear of your frustration. I know how it feels to spend 2 hours on an issue only to get nowhere as a result of it. I apologize on behalf of the team for the inconvenience you’ve faced so far.

    When this discussion with Peter over the translations first began back in November, the 2.0 release had just launched and the solution proposed was the only method viable. The “change translation files” method has been rendered obsolete since the 2.0.4 launch a couple weeks back. To change the title just add this to your functions.php file:

    add_filter('tribe_get_events_title', 'my_get_events_title');
    function my_get_events_title($title){
    if( is_tax() ){
    return $title;
    }else{
    return 'My Title';
    }
    }

    That should allow you to make the change and I’ve just tested it to confirm as much myself. Please let me know if you have any other questions or problems there.

    As for why the other route (removing the title, rather than just altering it) from the FAQ isn’t working…that’s a good question. It was when we initially added that during the 2.0.2 lifecycle, but I’m not able to recreate it as of 2.0.4. Let me get our dev Jonah to comment on that point.

    #16536
    Lynn
    Participant

    Thank you, Rob! Yes, that worked. I put it in my custom_functions.php file of my theme. I know you can’t update all parts of the plugin and the help all at the same time, and I appreciate that you all are keeping up with your forum to help!

    #16540
    Jonah
    Participant

    Hi Lynn, the display: none code in the FAQ does not work anymore because we don’t use that class name (.entry-header) for the title anymore. We’re making some changes to the FAQ’s in the next few days so I’ll make sure to get this cleared up. I hope that answers your question but let me know if you have any others.

    Regards,
    Jonah

    #16550
    Lynn
    Participant

    Yes, another question:
    Can I, in a similar way that we changed the events page title above, change the display word “Venue” to something else more appropriate for my client’s use? Seems like this may help other people, too, to be able to use the expanded functionality you’ve built into the “Venue” idea, but just re-label it, to say “Room” or “Location” or “Arena” or “Region” or whatever one may need.

    #16638
    Jonah
    Participant

    Hi Lynn, the easiest way to do that is to edit the english translation files, creating your own copy. I would suggest you checkout this FAQ item for a how to on that: https://theeventscalendar.com/?qa_faqs=can-i-change-the-language-that-the-content-of-my-calendar-appears-in-on-the-site

    #16658
    Peter
    Member

    Rob, Is this the code I should be using in the function.php file then?


    add_filter('tribe_get_events_title', 'my_get_events_title');

    function my_get_events_title($title){

    if( is_tax() ){

    return $title;

    }else{

    return 'My Title';

    }

    }

    #16667
    Rob
    Member

    Hey Peter! Yup, if I understand the request correctly, you should be able to accomplish it with the code I noted in this comment: https://theeventscalendar.com/support/forums/topic/calendar-of-events-title-change/page/3/#post-16510. Let us know if that doesn’t do the trick though.

    #16688
    Peter
    Member

    Thanks. I will test it later this week.

    If I would like to avoid editing the themes function.php, is there anyway I am able to make my own custom function file?

    That way I won’t loose my changes when I update the theme.

    #16699
    Rob
    Member

    Hey Peter. Let me get Jonah to respond on that last question; I don’t believe so but he can confirm.

    #16705
    Jonah
    Participant

    Hi Peter, not really. You can include custom PHP files in functions.php but you still need to edit functions.php to include the include 🙂 I usually include files in functions.php like so:

    require_once('library/sidebar.php');

    And the directory you put files in and the name of the include can be anything you want.

    #16716
    Peter
    Member

    Hi Jonah,

    When I add the following code to function.php my entire site goes blank.

    require_once('library/sidebar.php');

    How can that be?

    #16854
    Jonah
    Participant

    Hi Peter, is it wrapped in PHP tags?

Viewing 15 posts - 31 through 45 (of 50 total)
  • The topic ‘"Calendar Of Events" title change’ is closed to new replies.