[Support request] Default footer content on Toolset custom post type

Home Forums Support [Support request] Default footer content on Toolset custom post type

Home Forums Support Default footer content on Toolset custom post type

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #608766
    Antwan

    Hello,

    I’m using GP in combination with the Toolset plugin to render a Custom Post Type named ‘Events’. Would it be possible for a section with default content to display at the footer of each event? And how should I activate a two-column widget area on this CPT? The info on https://docs.generatepress.com/article/footer-widgets/#change-the-number-of-footer-widgets-on-individual-pages-posts doesn’t seem to help me there.

    Thanks in advance!

    Antwan

    #608798
    David
    Staff
    Customer Support

    H there,

    you can use a conditional within a GP Hook like so to add content before the footer for your-post-type

    add_action( 'generate_before_footer','example_function_name' );  
    function example_function_name() {
    if ( is_singular( 'your-post-type' ) ) : ?>
        your content here
    <?php endif;
    }

    https://docs.generatepress.com/article/adding-php/

    For the footer, do you want this to be the same as the rest of the site?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.