In this lesson, We will see how to add simple text setting for your custom theme using Option Tree plugin.
If you didn't view my previous tutorial -> Please click here.
1. It is very similar to my previous tutorial.
2. Instead h2 title, we will add the following code.
<h2><?php echo ot_get_option( 'featured_heading_1', 'Heading Title 1' ); ?></h2>
3. So please go to Dashboard -> Option Tree -> click -> add setting
4. Give label name and id name
5. Type -> You can choose any one of the following -> Text Area, Text, Text Area Simple
6. Add the following code where you need to display your text.
<?php echo ot_get_option( 'ID', 'Default TEXT' ); ?>
7. Instead of ID, You should give your own ID name created at steps 3,4
8. Default TEXT will display if you didn't give any text at Theme Options
Video Tutorial:
If you didn't view my previous tutorial -> Please click here.
1. It is very similar to my previous tutorial.
2. Instead h2 title, we will add the following code.
<h2><?php echo ot_get_option( 'featured_heading_1', 'Heading Title 1' ); ?></h2>
3. So please go to Dashboard -> Option Tree -> click -> add setting
4. Give label name and id name
5. Type -> You can choose any one of the following -> Text Area, Text, Text Area Simple
6. Add the following code where you need to display your text.
<?php echo ot_get_option( 'ID', 'Default TEXT' ); ?>
7. Instead of ID, You should give your own ID name created at steps 3,4
8. Default TEXT will display if you didn't give any text at Theme Options
Video Tutorial: