How to Set Specific Page Title Instead of Title Pulling From An Event??

Home Forums Calendar Products Events Calendar PRO How to Set Specific Page Title Instead of Title Pulling From An Event??

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #885724
    Randy
    Participant

    Please forgive me if you have already answered this but I DID review a lot of pages looking for a solution!! The title at the top of the page should be “Events Calendar” but it is pulling the title from an event. I have tried checking the default page but know just enough to cause problems so don’t want to change much until I know for sure what to change??? The calendar is located at http://www.dowc.org/events/

    #887889
    Brian
    Member

    Hi,

    Thanks for looking for a solution, I can try to help you out here.

    Are talking about the Independence Day title?

    That is produced by your theme and not sure how it is included.

    You could find that coding in your theme and then use this conditionals:

    https://gist.github.com/jo-snips/2415009

    To change the title to what you want instead of how it is currently working.

    Let me know if you have any follow up questions.

    Thanks

    #889610
    Randy
    Participant

    Thanks Brian!!! This site was hard coded in a lot of places and I’m not sure where to find the code controlling the title but will look some more!!! Wish me luck!!! 😉

    #889640
    Randy
    Participant

    Found the controlling code:
    <h1 class=”page-title blue”><?php the_title();?><span class=”white-bar”></span><span class=”white-bar”></span></h1>
    The section <?php the_title();? actually controls the page title…how to set the calendar page title as “Event Calendar and not affect the other pages using that templ;ate???

    #889775
    Brian
    Member

    Hi,

    You will have to use a conditional from this list:

    https://gist.github.com/jo-snips/2415009

    Something like this should work, but you may have to play around with it to get it how you would like.

    <?php if( tribe_is_month() ) {
    echo 'The Events Calendar';
    } else {
    the_title();
    } ?>

    Thanks

    #889855
    Randy
    Participant

    Brian, thank you so much for the awesome support!!! That did it!!!
    Randy

    #890496
    Brian
    Member

    Great, glad it helps, I am going to go ahead and close this ticket, but if you need any other on something else please post a new ticket.

    Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to Set Specific Page Title Instead of Title Pulling From An Event??’ is closed to new replies.