Arun G
Forum Replies Created
-
Forum: Plugins
In reply to: [Redux Framework] Disable ‘Add Widget Area’ formHi Kev Provance,
Great! The add widget are form is gone now, hope you will release new update soon!
ThanksForum: Plugins
In reply to: [Redux Framework] Disable ‘Add Widget Area’ formIf I deactivate the Redux Framework plugin it will disappeared. its a theme built from scratch.
here are my arguments.$args = array(
'opt_name' => $opt_name, // REQUIRED!! Change these values as you need/desire. 'display_name' => $theme->get( 'Name' ), // Name that appears at the top of your panel. 'display_version' => $theme->get( 'Version' ), // Version that appears at the top of your panel. 'menu_type' => 'menu', // Specify if the admin menu should appear or not. Options: menu or submenu (Under appearance only). 'allow_sub_menu' => true, // Show the sections below the admin menu item or not. 'menu_title' => esc_html__( 'Theme Options'), 'page_title' => esc_html__( 'Theme Options'), 'disable_google_fonts_link' => false, // Disable this in case you want to create your own Google fonts loader. 'admin_bar' => false, // Show the panel pages on the admin bar. 'admin_bar_icon' => 'dashicons-portfolio', // Choose an icon for the admin bar menu. 'admin_bar_priority' => 0, // Choose a priority for the admin bar menu. 'global_variable' => '', // Set a different name for your global variable other than the opt_name. 'dev_mode' => false, // Show the time the page took to load, etc. 'customizer' => true, // Enable basic customizer support. 'page_priority' => 100, // Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning. 'page_parent' => 'themes.php', 'page_permissions' => 'manage_options', // Permissions needed to access the options panel. 'menu_icon' => '', // Specify a custom URL to an icon. 'last_tab' => '', // Force your panel to always open to a specific tab (by id). 'page_icon' => 'icon-themes', // Icon displayed in the admin panel next to your menu_title. 'page_slug' => '_options', // Page slug used to denote the panel. 'save_defaults' => true, // On load save the defaults to DB before user clicks save or not. 'default_show' => false, // If true, shows the default value next to each field that is not the default value. 'default_mark' => '',// What to print by the field's title if the value shown is default. Suggested: *. 'show_import_export' => false,// Shows the Import/Export panel when not used as a field. 'transient_time' => 60 * MINUTE_IN_SECONDS,// CAREFUL -> These options are for advanced use only. 'output' => true,// Global shut-off for dynamic CSS output by the framework. Will also disable google fonts output. 'output_tag' => true,// Allows dynamic CSS to be generated for customizer and google fonts, but stops the dynamic CSS from going to the head. 'flyout_submenus' => true, // Enable or disable flyout menus when hovering over a menu with submenus. 'font_display' => 'swap', // Mode to display fonts (auto|block|swap|fallback|optional) // HINTS. 'hints' => array( 'icon' => 'el el-question-sign', 'icon_position' => 'right', 'icon_color' => 'lightgray', 'icon_size' => 'normal', 'tip_style' => array( 'color' => 'light', 'shadow' => true, 'rounded' => false, 'style' => '', ), 'tip_position' => array( 'my' => 'top left', 'at' => 'bottom right', ), 'tip_effect' => array( 'show' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'mouseover', ), 'hide' => array( 'effect' => 'slide', 'duration' => '500', 'event' => 'click mouseleave', ), ), ),);
I have build a form in forminator and exported it as txt, then bundled the txt file in theme’s folder.
And used tried to import it code as follows. this function runs when “after_switch_theme”.$form_txt = get_template_directory() . '/demo/forms/contact-form.txt';
if ( file_exists( $form_txt ) && function_exists( 'forminator_api' ) ) {
$form_txt_data = file_get_contents( $form_txt );
// Forminator exports have JSON string inside .txt
$form_array = json_decode( $form_txt_data, true );
if ( ! empty( $form_array['formName'] ) ) {
// Check if form already exists
$existing_forms = forminator_api()->list_forms();
$exists = false;
$form_id = false;
if ( ! empty( $existing_forms ) ) {
foreach ( $existing_forms as $form ) {
if ( $form->name === $form_array['formName'] ) {
$exists = true;
$form_id = $form->id;
break;
}
}
}
// Create new form if not exists
if ( ! $exists ) {
$form_id = forminator_api()->import_form( $form_txt_data );
}
// Replace shortcode in Contact page
if ( $form_id && $contact_page_id ) {
$content = get_post_field( 'post_content', $contact_page_id );
$content = preg_replace(
'/\[forminator_form id="\d+"\]/',
'[forminator_form id="' . $form_id . '"]',
$content
);
wp_update_post( [
'ID' => $contact_page_id,
'post_content' => $content
] );
}
}
}Forum: Plugins
In reply to: [Favorites] Button Markup: breakes the html in text boxThanks! It worked
- This reply was modified 1 year ago by Arun G.
Forum: Plugins
In reply to: [Redux Framework] Repeated field stopped working!Hi Kev Provance,
Firstly thank you for your quick response & support !The given version has been solved the issue!
Cool! Thanks for fixing the issue!
Yes Using PHP 8.3
Forum: Plugins
In reply to: [LocateAndFilter] Front-end formOh no! Can I get refund? As this plugin is not suitable for my needs.
Forum: Plugins
In reply to: [LocateAndFilter] Front-end formSorry I couldn’t find this option (Set different source for coordinates). I am using Version 1.6.15. Not sure how to update it to Version: 1.7
Forum: Reviews
In reply to: [File Upload Field for Formidable Forms (lite)] Internal Server Error@desolint I am still having this issue
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Quick access bar problemHi @rynald0s!
I tried adding your css to “Additional CSS”. But it doesn’t worked. So have added the following code thru functions.php. Now its perfect!
add_action(‘admin_head’, ‘my_custom_styles’);
function my_custom_styles() {
echo ‘<style>
.woocommerce-layout__header {
position:static;
}
.woocommerce-embed-page #screen-meta, .woocommerce-embed-page #screen-meta-links{
top:1px;
}
</style>’;
}Forum: Plugins
In reply to: [WooCommerce] Woocommerce Quick access bar problemOk, Temporary fix. Thanks
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Quick access bar problemHi Rynald0s
Thanks for your response. Sorry For my late reply.
here is the screenshot https://snipboard.io/V9dNUs.jpgForum: Plugins
In reply to: [WooCommerce] Woocommerce Quick access bar problemI mean the bloat bar. its annoying!
- This reply was modified 5 years, 10 months ago by Arun G.
Forum: Plugins
In reply to: [WooCommerce] Cannot process checkout after update woocommerceFinally I have fixed it. We noticed our two sites having checkout infinite spinning wheel issue. had a lot of work arounds. Then found there was a https redirect in cPanel. Just deleted it from both cPanel and our both sites checkout pages working fine. Hope this will help someone.
- This reply was modified 7 years, 2 months ago by Arun G.