Hide "Events for" and change link

Home Forums Calendar Products Events Calendar PRO Hide "Events for" and change link

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #1426648
    Josep
    Participant

    HI!
    In page:
    http://infoactivat.com/prats/agenda/

    I need to hide “esdeveniments(events) for” and “> Agenda”

    And is it possible to disable link? My primary events page is http://infoactivat.com/prats/agenda/ instead of http://infoactivat.com/prats/agenda-tota

    Thanks!

    #1427296
    Jennifer
    Keymaster

    Hi Josep!

    I took a look at the link you sent, but I was not able to access the site.

    However, you can remove the title by customizing the template for the view that you want to remove it from. Our themer’s guide (here) has instructions on customizing templates. If you would rather change it, this article has some instructions on doing so.

    We are a bit limited in the amount of support that we can provide for customizations, but if you get stuck or have any questions, please let me know – I’ll be happy to point you in the right direction!

    Regarding the link, I’m not quite sure what you are looking to do here…can you please clarify a little bit? If you are able to temporarily remove the restrictions on the site so that I can access the pages, that would help me understand what is going wrong.

    Thanks,

    Jennifer

    #1427340
    Josep
    Participant

    Hi!
    Sorry! Now you can access to the site (it was in maintenance mode).

    #1428136
    Jennifer
    Keymaster

    Hi Josep,

    Thanks for opening the site up! I am able to access it now. Did you have any luck removing the title in the templates? I see that month view is your default view, so you can remove the title by editing the template found at wp-content/plugins/the-events-calendar/src/views/month/content.php. Our themer’s guide has instructions on how to copy the template files into your child theme for editing. The line you’ll want to remove is:

    If you just want to change the link for your main events page, you can do this by going to Events > Settings > General > Events URL slug and change it there (see screenshot).

    Let me know how this goes!

    Thanks,

    Jennifer

    #1432388
    Josep
    Participant

    Hi!
    But I only need to remove “Events for”! I need “MONTH” and “YEAR”

    Agenda

    Is it possible?

    Thanks!

    #1434229
    Jennifer
    Keymaster

    Hi Josep,

    Thanks for clarifying! You can change the title for any of the views with the snippet in this article. Can you give this a try and let me know if this works for you?

    Thanks,

    Jennifer

    #1434338
    Josep
    Participant

    Hi!
    I change the name in
    $title_month = ‘%1$s’; // Month View, %1$s = the name of the month
    (only need the name of the month and the year)

    You can see here:

    Agenda

    the problem is the date format:
    I need: month year
    instead of: month \24\UTC year > Agenda (and disable link)

    How can I do that?

    Thank you very much!

    #1439846
    Josep
    Participant

    Hi!
    How can I remove \24\UTC in month view title?
    https://pratsdellucanes.cat/agenda/

    Thanks!

    #1447906
    Josep
    Participant

    Please, help!

    #1447963
    Jennifer
    Keymaster

    Hi Josep,

    I’m sorry for the delayed response here! We’ve had a much higher than normal volume of threads this week, and it looks like this one slipped through the cracks. So sorry about that!

    It looks like you have your “Month and year format” setting under Events > Settings > Display, which controls the date format for month view, set to “F \d\e Y”. Can you try changing it to “F Y” (see screenshot) and see if that fixes it?

    Thanks,

    Jennifer

    #1447971
    Josep
    Participant

    Yes! It works!
    And the last question about this page…
    How can I remove the link in title? And “> Agenda”?

    Agenda

    Thanks!

    #1448036
    Jennifer
    Keymaster

    Great!

    Try adding this to the functions.php file of your child theme:

    function tribe_change_month_cat_title( $title ) {
    $depth = false;
    $title = tribe_get_events_title( $depth );
    return $title;
    }
    add_filter( 'tribe_events_title', 'tribe_change_month_cat_title' );

    #1448578
    Josep
    Participant

    hi! I’ve added to my functions.php of the child theme, but nothing happens…

    Agenda

    #1448608
    Jennifer
    Keymaster

    Hi Josep,

    Can you try clearing out your cache within WP Super Cache to make sure that you’re seeing the latest version of the page?

    #1448689
    Josep
    Participant

    Yes, I’ve delete all cache from WP Fastest Cache plugin, and title link still appears.

    Thanks!

Viewing 15 posts - 1 through 15 (of 17 total)
  • The topic ‘Hide "Events for" and change link’ is closed to new replies.