Hi,
thank you for the explanation. So, apart from the logo – everything from the theme options panel is saved in this table?
EDIT: and, another thing that just came to my mind: would it be possible to use relative urls in the theme panel by manually editing them in the panel?
Regards
-
This reply was modified 6 years by
nM.
Hi,
screenshots/videos aren’t possible (NDA) but they aren’t necessary, either – it’s pretty simple:
We have a staging site where all work (coding, configuration, content creation,…) is done. On a frequent basis this staging site gets migrated to the production environment with a simple file and folder copy and a database move – the database runs through a search and replace script where everything related to the staging url is replaced with the production url.
Everything is replaced correctly except the settings from the theme panel, e.g.:
– Custom font files: set in the theme panel (http://staging.tld/wp-content/uploads/2019/09/mycustomwebfont.woff)
– Logo: set under LOGO UPLOAD in the theme panel (http://staging.tld/wp-content/uploads/myCustomLogo.jpg)
All the urls that are set in the theme options panel aren’t replaced (with https://production.tld/…) in the database search and replace step. So, once again, the question: where are these urls stored in the database and why aren’t they replaced?
Exporting and importing the theme options is not an option as there is no backend access on production site at all. There has to be another way to replace these urls like all the other WordPress urls in the database.
Looking forward to your reply!
Hi there,
thanks for your reply.
Actually, this doesn’t help – the theme settings can be exported/imported, yes. But the hardcoded url for i.e. the logo stay the same this way. How are these values stored in the database? We need to access them directly via a search and replace script.
Using a plugin is not an option, since the migration has to be automated. However, even with a plugin the above mentioned url would stay the same.
Thanks and best regards.
Hi,
right, that I know. I was referring to the Flex Block 5 (see above) and the availability of the post view in this. Is it possible?
Thanks
Hi,
this is really unfortunate. I’ve helped myself with Flex Block 5, which almost gets the job done. Is there any way to include post view count and other elements into the post meta section? Or is the option for customization completely gone (I really don’t hope so)?
Thanks
Just to be sure: the old option with
td_api_module::update_key(ID, KEY, VALUE);
is no longer possible? I keep getting these errors:
wp_booster error:
td_api_base: A component with the ID: td_module_17 it's already registered in td_api_base
[...]/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Okay, got it – thanks!
One more question: how can I apply a custom css file within the plugin. It doesn’t work anymore with this description: https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/
static function td_plugin_frontend_css() {
wp_enqueue_style('td-plugin-framework', plugins_url('', __FILE__) . '/css/style.css'); // frontend css (wp_enqueue_scripts)
}
Thanks!
EDIT:
Sorry, my bad. Didn’t transfer the add_action to enqueue the script…
-
This reply was modified 7 years by
nM.
Ouch… Is it possible that the syntax for the custom plugin has changed to this: https://forum.tagdiv.com/developer-info/ and that I am using an old version of the API?