Blog

Scroll to required question

User $('.gfield_choice:not(:last) label').on('click', function() { $(this).siblings('input').trigger('click'); // update GF conditional logic first var scrollToEl = ''; var $sourceBlockEl = $(this).closest('.gfield'); var $nextBlockEl = $sourceBlockEl.next(); var headerHeight = $('#et_mobile_nav_menu').is(':visible') ? 0 : $('#et-main-area').offset().top; // Only treat as "correct" if not flagged incorrect AND gating allows var isCorrectClick = ((($(this).attr('onclick') || '').indexOf('incorrect') === -1) && (isOverride || […]

Fixing GF scroll logic

User $('.gfield_choice:not(:last) label').on('click', function() { $(this).siblings('input').trigger('click'); // update GF conditional logic first var scrollToEl = ''; var $sourceBlockEl = $(this).closest('.gfield'); var $nextBlockEl = $sourceBlockEl.next(); var headerHeight = $('#et_mobile_nav_menu').is(':visible') ? 0 : $('#et-main-area').offset().top; // Only treat as "correct" if not flagged incorrect AND gating allows var isCorrectClick = ((($(this).attr('onclick') || '').indexOf('incorrect') === -1) && (isOverride || […]

Code fix and improvements

User Assistant You’re skipping optional questions because of **two things**: a typo and a required-only selector. – Bug: `.legnth` → **`.length`** (this prevents the “next unanswered” detection from working). – Logic: you scan only `'.gfield_contains_required:visible'`, so optional fields get skipped. Scan **all visible question fields** instead. Drop-in fix (keeps everything else the same): <?php if […]

Auto-scroll logic fix

User Assistant Got it — you want auto‑scroll to **skip optional questions** and jump straight to the **next required, unanswered** one, but still: – jump to the **first incorrect** earlier question (like you already do), and – fall back to the **submit button** if everything required is done. Also fixed the small typo `.legnth` → […]

Fix invisible Divi button

User View some time above divi library layout cta button not visibile or very light to frontend user Assistant Got it—classic Divi + ACF gotcha. Two common reasons your CTA looks “invisible” or super faint: 1) **Color/opacity inheritance** from dark/light sections or overlays. 2) **Empty ACF values**, so the link renders but with no visible […]

Route prefix name issue

User Route::group(['prefix' => 'admin','middleware' => ['auth','locale'],'name' => 'admin.'],function () { Route::get('lang/{locale}', function ($locale) { session(['locale' => $locale]); return redirect()->back(); })->name('language'); Route::get('/', function () { return view('admin.welcome'); })->name('profile'); /** * Routes for pillars */ Route::resource('pillars', AdminPillarController::class); /** * Routes for surveys */ Route::resource('surveys', AdminSurveyController::class); /** * Routes for questions */ Route::resource('questions', AdminQuestionController::class); /** * Routes for […]

Add language support Laravel

User Add language support laravel Assistant To add **language (localization) support** in Laravel, follow these steps: — ### ✅ 1. **Configure Locale in `config/app.php`** 'locale' => 'en', // default language 'fallback_locale' => 'en', — ### ✅ 2. **Create Language Files** Laravel stores language files in `resources/lang/{locale}`. Example: resources/lang/en/messages.php resources/lang/fr/messages.php **English (`en/messages.php`)** return [ 'welcome' => […]

External DB Credential Security

User we have a wordpress plugin which connected with external database and their db credentionals in the plugin , and also we can install this plugin to any number of website but we have a problem of exposer of database Assistant You're right to be concerned — embedding **external database credentials directly in your WordPress […]

MySQL Password Alteration

User But I think to process further I also need mysql root user details to perform any operation related to ALTER password of Database Correct above sentence Assistant Sure, here's a more formal and grammatically correct version of your sentence: **"However, I believe that in order to proceed further, I will also need the MySQL […]

Admin Panel Configuration

User Assistant To **disable the `register` route** in your Laravel AdminLTE configuration (and avoid the `Route [register] not defined` error), you need to do **two things**: — ### ✅ 1. **Remove or set `register_url` to `false` in `adminlte.php`:** In your current `config/adminlte.php`, find this line: 'register_url' => 'register', Change it to: 'register_url' => false, This […]