htvu
Forum Replies Created
-
Forum: Plugins
In reply to: [OptionTree] How to use option treeYes, you can use text editor (Tinymce) for custom formatting fields by using textarea type (not textarea-simple). But if you want to use text editor in metabox you need some addition codes.
Forum: Plugins
In reply to: [OptionTree] Set featured image – Does not work“Set featured image” is not relate with OT. You should click on “Send to Optiontree” button to send image URL to fields.
Forum: Plugins
In reply to: [OptionTree] How to use option treeIn your template, where you want to show the text, use:
echo ot_get_option(“id_of_textbox”,”Here is default text”);
Forum: Plugins
In reply to: [OptionTree] Issue with functions.php & loading pluginI think you tried to use OT in Theme mode. Make sure you copy OT source to the root of your theme.
For the third warning: check your functions.php at line 89. Something are echo/print. Or there are some space (blank) between?>
and<?php
at/near line 89.Forum: Plugins
In reply to: [OptionTree] List Item inside List ItemI think it’s too hard to make nesting List Item with OT because List Item is a very special option type, it relate with other types and have very complicate structure. If really need a nesting List Item I think you could create a “fake” one by using 2 List Item and combine them with jQuery & CSS. This just my instant idea. ??
Forum: Plugins
In reply to: [OptionTree] How to add new section in options tree in theme modeOn the other hand, OT Control panel still available in Theme mode, if you want you can turn it on, of course, you must sure what are you doing.
IMPORTANT NOTE: Be careful when you switch between Plugin/Theme mode. You may lost all settings/sections that you added after export settings file (php file). You must re-export and overwrite old file.
Forum: Plugins
In reply to: [OptionTree] How to add new section in options tree in theme modeIn Plugin mode you create settings/sections and export it to a php file (that included in Theme mode). See document to know how to make OT work with Theme mode. It’s easy to understand.
Forum: Plugins
In reply to: [OptionTree] How to add new section in options tree in theme modeJust do it as you do in Plugin mode.
Forum: Plugins
In reply to: [OptionTree] No 'Theme Options' tab after exportStep 1 is most important. Step 2 just load settings. If you want to use OT as a part of your theme (not required to install OT plugin) you MUST do BOTH steps.
Forum: Plugins
In reply to: [OptionTree] No 'Theme Options' tab after exportI think you forgot STEP 1 of document to use OT as THEME MODE. Make sure you included ot-loader.php before theme-options.php
Forum: Plugins
In reply to: [OptionTree] CSS Option TypesMaybe you did not get my idea. Following example is my idea:
– create a CSS option type with ID “my_dynamic_css“
– create a ColorPicker option type with ID “my_color“
– in option page, set “my_dynamic_css”‘s value: a {color:{{my_color}};}
– save changes
From now, when you (or your user) change ColorPicker (with ID: my_color) OT will re-generate dynamic.css file with new color.But you still worry about CSS option type (with ID: my_dynamic_color) that your user can make mistake when modify theme settings (ex: delete “a {color:{{my_color}};}” line) ? OK, do following:
– Open ot-admin.css (in [OT folder]/assets/css/), append this: #setting_my_dynamic_css {display:none;}
– Boom! general users will not see and can not make mistake with your CSS field.Is it clear ?
p/s: Above idea will work with OT version 2.0.10+. If you use OT version 2.0.9 or older you must make a small patch to give fields wrapper an ID (in this case you can ask me if you have trouble)
Forum: Plugins
In reply to: [OptionTree] OptionTree and NEW Insert MediaOk, I close this topic ??
Forum: Plugins
In reply to: [OptionTree] Optiontree don′t load my imagesSend your ftp account to huongtinhvu [at] gmail [dot] com
Forum: Plugins
In reply to: [OptionTree] Optiontree don′t load my imagesIt’s hard to solve by talk here, if you can upload your wp and theme to a host for testing I can access and try to fix for you.
Forum: Plugins
In reply to: [OptionTree] Optiontree don′t load my imagesSee my solution here: https://www.ads-software.com/support/topic/optiontree-and-new-insert-media?replies=3#post-3684712
Edited file is: ot-admin.js located in OT folder/assets/js