Josh

Forum Replies Created

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • in reply to: Events homepage showing individual event titles #29011
    Josh
    Participant

    Here’s the snippet. Entering into functions.php in the child theme
    http://snippi.com/s/51raf3m
    thanks
    J

    in reply to: Events homepage showing individual event titles #28982
    Josh
    Participant

    Hello. I’ve tried the same code above on my site and got the error shown here:

    http://mendogeotours.com/wp-content/uploads/2012/12/EventsCalendarError_120512.png

    Line 10 is this:

    return ‘Events List’;
    }

    Any guidance?

    in reply to: Events homepage showing individual event titles #28516
    Josh
    Participant

    Hi Jonah. I’ve been unable to find a resolution to this issue as I described above. I’ve communicated with my theme developer who suggests the best course of action is making any changes to my function.php file.

    /*comments below*/
    If you must change the the_title() the best way is use the add_filter (the_title. ..) This can be used in the function.php file and you won’t have to change templates.

    An Example

    add_filter(‘the_title’, ‘your_new_title’, 10);

    function new_title($title, $id) {
    global $post;

    if ( Post type is something ):
    do something to the $title
    $title = $title;
    return $title;
    else:
    return $title;
    endif;

    }

    /*end theme devs comments*/

    I’ve located two template files with references to the_title() (single.php & loop.php). Any chance for some further guidance on a solution from here?
    Thanks
    J

    in reply to: Events homepage showing individual event titles #28100
    Josh
    Participant

    So I’m using the Full-width page template with my theme. When I switch to default template for the Events Calendar, the correct title shows up, but the calendar width exceeds the site standard of 960 pixels. If it’s simpler to affect the default template page width vs affect the page title I’m game. Otherwise, the reference above only addresses the case when using your default template and not another option. Any guidance here will be appreciated. J

Viewing 4 posts - 16 through 19 (of 19 total)