Moving ‘Upcoming events’ location

Home Forums Calendar Products Events Calendar PRO Moving ‘Upcoming events’ location

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #77284
    aurelio
    Participant

    Hi Everyone 🙂
    I have recently made some changes to my theme to move the h1 heading of every page/post to my bannercontainer. the code is here: http://pastebin.com/LmiYGCh8

    My problem is that on my events views (i am using photo/map/month) the first event in every view shows up as my H1 heading in my banner.

    I have followed Kelly’s videos on how to edit/delete the ‘upcoming events’ heading but ideally i would like to move it to my bannercontainer (located in ) and remove the event name 🙂

    Any help would be greatly appreciated 🙂

    #77598
    Barry
    Member

    Hi Aurelio,

    One approach could be to add an extra set of checks (within the custom piece of code you pasted) to detect if you are on an event-related page and then output something different in those cases:

    if ( tribe_is_event_query() ) echo 'Upcoming events';

    Something like that should broadly do what you need, of course you may need to tweak it slightly to add it to your current code and to get the exact result you are after. Hope that helps!

    #78434
    aurelio
    Participant

    thanks barry.. i would like to be able to set tribe-events-page-title and tribe-events-single-event-title summary to appear in the banner instead of only ‘upcoming events’

    my if/else/elseif knowledge is a bit limited… could you point me in the right direction using the code snip above?

    much appreciated

    #78481
    Barry
    Member

    Unfortunately I don’t have quite enough information here to give you a solution you can just drop in place … and this is really a customization which, though we’re happy to offer some pointers, is something you’d need to drive forward by yourself or with the assistance of a developer if necessary.

    With that in mind I’ll close this thread – but there are plenty of fantastic resources out there to learn the basics of if/then/else etc.

    Thanks – and good luck!

    #982409
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Moving ‘Upcoming events’ location’ is closed to new replies.