• Resolved velicuicristian

    (@velicuicristian)


    Hello,

    I have a costom theme and i what to add more tabs with your plugin but tab not show.

    How can i get custom tab content to show in frontend with php?

    Thx

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter velicuicristian

    (@velicuicristian)

    I what to get tab content like i get short description

    <h3>SPECIFICA?II</h3>
    <div>
    <!– Short description –>
    <?php echo apply_filters( ‘woocommerce_short_description’, $post->post_excerpt ) ?>
    </div>

    </div>

    Can i do this ?

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @velicuicristian,

    The tabs not showing may be related to a bug with v1.6.0. We’re releasing a patch today. If that doesn’t fix the issue, please let me know.

    All the best,
    Kevin.

    Thread Starter velicuicristian

    (@velicuicristian)

    I install the plugin today a few hours ago.

    So.. can i get custom tab content by php ? like example i give you in first post ?

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @velicuicristian,

    I understand what you’re looking for now. You can use our filter yikes_woocommerce_custom_repeatable_product_tabs_content to completely change the content of your custom product tab.

    Here is an example:

    add_filter( 'yikes_woocommerce_custom_repeatable_product_tabs_content', 'customize_tab_content', 10, 2 );
    
    function customize_tab_content( $content, $tab ) {
    	if ( $tab['title'] === 'Saved Tab 2' ) {
    		return '<p> custom content </p>';
    	}
    }

    In this example I am scoping the tab content based on the tab’s title (‘Saved Tab 2’).

    Will that work for you?

    Let me know,
    Kevin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tab not show’ is closed to new replies.