Move the Ticket Purchase section higher up the page?

Home Forums Ticket Products Event Tickets Plus Move the Ticket Purchase section higher up the page?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1104249
    Mark
    Participant

    Hi I’m back again. The guide I followed to do this didn’t work. I followed this guide: https://theeventscalendar.com/knowledgebase/moving-the-ticket-form/ and then my site broke giving me this error:

    ‘Fatal error: Call to undefined function tribe_etp_move_tickets_purchase_form() in /home/shutte26/public_html/2016/wp-content/themes/shutterbugs-2016-changes/functions.php on line 23’

    Here’s my code:

    <?php
    //
    // Recommended way to include parent theme styles.
    //  (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
    //  
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array('parent-style')
        );
    }
    //
    // Your code goes below
    //
    
    /*
     * Uncomment to Move Ticket Form Below the Event Description
     */
     tribe_etp_move_tickets_purchase_form( 'tribe_events_single_event_after_the_content', 5 );
    

    Help?

    #1104254
    Geoff
    Member

    Hey there, Mark!

    Will you please try removing the opening PHP tag from the snippet and see if that makes a difference:

    <?php

    That is sometimes required, but can definitely cause an error if it’s not.

    Thanks!
    Geoff

    #1104269
    Mark
    Participant

    No that hasn’t worked. http://2016.shutter-bugs.co.uk/

    #1104278
    Brian
    Member

    Hi,

    There was a link to the snippet, but not the entire snippet on that guide so you are missing the most important part.

    Please take a look again and copy the entire function that is now there and add that <?php tag back to the top.

    Here is a direct link as well:

    https://gist.github.com/elimn/a7dcd0a63815db583c1e

    Thanks

    #1104287
    Mark
    Participant

    Perfect. That worked a treat. Thank you 🙂

    #1104401
    Geoff
    Member

    Thanks Mark!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Move the Ticket Purchase section higher up the page?’ is closed to new replies.