Support » Plugin: The Events Calendar » Love this plug, but can I change the events-page-title?

  • Resolved herojig

    (@herojig)


    I would like 1) the title of my event calendar to read “Consultant Availability and PCN Events for [month] instead of just “Events for” – is this possible? page in question Also, 2) I need to add padding or a margin at the bottom of the calendar to fill my page space… since the entire page is dynamic, not sure how to do that 🙂
    Well, thx for the great wordpress addon!
    https://wordpress.org/plugins/the-events-calendar/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter herojig

    (@herojig)

    Ha, another request/question: the google maps for my venues is not at all accurate, even if the venue does exist in the goog. See here for an example where I have added the correct google map link in the event description:

    http://www.phoenixstudiosnepal.com/event/pcn-team-meeting/

    And then finally, I hope, there needs to be a way to identify the events page /events/ so I can manipulate the sidebar on this generated page. For example, for visibility of a widget based on … what? can’t do. If there were a feature that allowed us to tag or categorize the main event calendar, that would fix this, as plugs like Dynamic Widgets need to key off something. Thx.

    Plugin Contributor geoffgraham

    (@geoffgraham)

    Hi herojig,

    You can definitely change the page heading–here’s a good tutorial that walks through how to make that happen.

    For the map location, have you tried adjusting the venue coordinates manually? You can do that in Events > Venues, then selecting the venue in question.

    Manipulating the sidebar using a widget visibility plugin depends on whether that plugin supports custom post archives as pages. Make sure the one you’re using does and you should be good to go there. Or perhaps try to change the calendar template to one of your page templates in Events > Settings > Display.

    Cheers!
    Geoff

    Thread Starter herojig

    (@herojig)

    thx Geoff, nice video but when I paste in this code:

    add_filter('tribe_get_events_title', 'change_upcoming_events_title');
    	function change_upcoming_events_title($title) {
        	if (tribe_is_upcoming() or tribe_is_map() or tribe_is_photo()) return 'Consultant Availability & PCN Events';
       	return $title;
    }

    all I get is blank white page 🙂 The only dif is I am not using a child theme on this site.
    thx again!

    Also, I want to add blank space at the end of the generated page “\events.” Would you suggest that I just do that in custom CSS?

    Plugin Contributor geoffgraham

    (@geoffgraham)

    Shoot, that’s not good!

    Can you try adding the snippet outside the PHP wrapper and including in it’s own wrapper at the end of the file?

    <?php
    add_filter('tribe_get_events_title', 'change_upcoming_events_title');
    	function change_upcoming_events_title($title) {
        	if (tribe_is_upcoming() or tribe_is_map() or tribe_is_photo()) return 'Consultant Availability & PCN Events';
       	return $title;
    }
    ?>

    And, yes, I think custom CSS is the way to go to add padding or margin at the end of the page. 🙂

    Thread Starter herojig

    (@herojig)

    CSS fix good, heading change not so: Parse error: syntax error, unexpected ‘<‘ in /home/phoenixstudiosnp/public_html/wp-content/themes/twentythirteen/functions.php on line 560
    That’s the line where your code starts in my theme’s function.php. Stumped.

    Brook

    (@brook-tribe)

    Howdy Herojig,

    Syntax errors are best diagnosed when you have the entire file. It sounds like you might have duplicate opening PHP tags without a corresponding closing one. But I can’t be sure without seeing the entire functions.php. You might upload that whole file to a site like pastebin so someone from the community here can have a look and help you find the problem. Or, if you have a PHP editting application like PHPStorm it will likely highlight the error in red for you.

    Cheers!
    – Brook

    Thread Starter herojig

    (@herojig)

    Thx Brook, here is the pastebin with the original fix from geoff commented out at the end. Sure would like to fix this 🙂 thx again,
    jigs

    If someone is looking for a way to change the meta titles, I just successfully used the following snippet below. The plugin author gave it to me yesterday:

    http://pastebin.com/QU2aMwBJ

    Brook

    (@brook-tribe)

    Howdy Herojig,

    I just removed the comments and that worked great! If you are still having issue on your server you might need the server administrator or your programmer to have a look. 🙁 I wish I could be of more help, but if the comments are gone there are no syntyax errors and it’s running great on my system.

    Cheers!
    – Brook

    Thread Starter herojig

    (@herojig)

    Brook, I don’t think you understand. The commented stuff was pHp given to me by your support team to fix a problem: custom title for the calendar page. The code in your video and given do not work in the theme that I am using. I am trying to overcome this. Cheers!

    Brook

    (@brook-tribe)

    I am sorry if I was not clear. But the commented code is what I was referring to when I said it works great. When I copied your file to my site, and uncommented that code, it performed swimmingly.

    – Brook

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Love this plug, but can I change the events-page-title?’ is closed to new replies.