212 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Portugal
shaki says

BUT now I have another problem: How to populate correctly the IMAGE upload fields?

I am using my localhost for development, but when exporting, final user just gets a file with images pointing to my “localhost”.

Shameful Bump :nerdy: Anyone can shed some light ^^ here? Much appreciated.

962 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $10,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
EireStudio says
shaki said
BUT now I have another problem: How to populate correctly the IMAGE upload fields?

I am using my localhost for development, but when exporting, final user just gets a file with images pointing to my “localhost”.

Shameful Bump :nerdy: Anyone can shed some light ^^ here? Much appreciated.

why not do a search & replace in mysql?

212 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Portugal
shaki says
EireStudio said
shaki said
BUT now I have another problem: How to populate correctly the IMAGE upload fields?

I am using my localhost for development, but when exporting, final user just gets a file with images pointing to my “localhost”.

Shameful Bump :nerdy: Anyone can shed some light ^^ here? Much appreciated.
why not do a search & replace in mysql?

Not sure if that answers my question. Maybe I didn’t explain it correctly:

I am developing the theme using OptionTree. When exporting I nned my customers to be able to upload the theme (ZIP) and have some images in place.

I can’t do this cause my image files point to my localhost.

194 posts Dreams Money Can Buy
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has referred 200+ members
  • Has collected 10+ items on Envato Market
+5 more
SwiftIdeas says

Another great tutorial, keep up the good work!

725 posts WordPress Ninja
  • Has referred 1000+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+8 more
TylerQuinn says

Is there an updated version of this somewhere? The plugin has since been heavily changed and the lines / references are not even close anymore.

Furher, I think the Options Tree plugin would better serve most of TF as a blank theme / dev file instead of a plugin. You simply drag the options-tree / admin folder into your theme, include whats needed in the functions.php and you are ready to roll.

7 posts
  • Has sold $1+ on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
  • Located in Europe
TuniDesign says
Quick & Useful !
      Notice :
      If you’ve already developing a theme make a DB backup to avoid loosing your work ;)
    Thanks for the help…
renderinnovations
renderinnovations Recent Posts Threads Started
2 posts
  • Has been part of the Envato Community for over 3 years
  • Has referred 1+ members
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
renderinnovations says

Hi all,

I’m trying to learn how to use theme options. I can get the Option Tree working, create options etc, but say I want to make it so that the user uploads an image to replace the logo. Do I put the code in the header? I know this is a very easy simple question, but again I’m learning. Trying to teach myself.

Are there any screenshots or video tutorials that anyone have found? I’m an extreamely visual person.

Thanks!

1634 posts Building the Web.
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
  • Has sold $250,000+ on Envato Market
  • Had an item featured on Envato Market
+7 more
ZoomIt says

Hi all,

I’m trying to learn how to use theme options. I can get the Option Tree working, create options etc, but say I want to make it so that the user uploads an image to replace the logo. Do I put the code in the header? I know this is a very easy simple question, but again I’m learning. Trying to teach myself.

Are there any screenshots or video tutorials that anyone have found? I’m an extreamely visual person.

Thanks!
You should use optiontree 2 . It s much easier to use

Also, look into the UPLOAD type in the docs

1694 posts Multimedia Artistry
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Contributed a free file of the month
  • Won a Most Wanted contest
+4 more
dnp_theme says

With OT 2, there is no option-tree/index.php

2 posts
  • Has been part of the Envato Community for over 3 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
Umeed says

Hello ThemeProvince,

You mentioned there is an index.php file inside option-tree folder. But I have downloaded recently there is no any index.php file. There is ot-loader.php file.

is that same file? if yes please confirm which lines have to replace.

Thanks

by
by
by
by
by
by