This topic has 3 replies, 3 voices, and was last updated 8 years by lim sungbeom.

  • Author
  • #115430
     lim sungbeom
    Participant

    Hello~

     

    I created new tap in a product page using ‘functions.php’.

    I like to add an content ‘image’ of a page ‘Delivery & Return’

     

     https://www.miinfra.co.kr:44373/infra/delivery-returns/

     

    How can I set a content of a page which I like to show in tab?

     

    I tried it using ‘Insert Pages’ plugin but it shows just vacant screen.

     

    Attachments:
    You must be logged in to view attached files.
    #115678
     Laura
    Moderator

    Hello, can you share the code you used to add the tab at functions.php? 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #115693
     Radu
    Moderator

    Hi,

    You can add a custom tab with this function : https://docs.woothemes.com/document/editing-product-data-tabs/#section-5

    Follow that example and in the function woo_new_product_tab_content() {}

    You will have to paste the content from that page in echo ”; like this

    COPY CODE
    function woo_new_product_tab_content() {
    
    	// The new tab content
    
    	echo '
    
    <b>My Content here</b>
    
    <h2>Content here etc...</h2>
    
    ';
    }

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #116154
     lim sungbeom
    Participant

    Thank you Radu~

    It worked!!

    I really thank you~~

    I always check 5 point for your advice.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?