Thứ Tư, 7 tháng 12, 2022

Wordpress add widget position

 1. Load position: position may be header, footer, main view

        <?php
            if (is_active_sidebar('logobox')){
                dynamic_sidebar('logobox');
            }
            ?>

2. Init functions.php

/*TopBox*/
function CustomLogoBox()
{
    register_sidebar(array(
        'id' => 'logobox',
        'name' => 'Logo Box',
        'description' => 'Logo box text',
        'before_widget' => '<div class="logobox">',
        'after_widget' => '</div>',
        'before_title' => '<h3 class="logo-widget-title">',
        'after_title' => '</h3>'
    ));

}
add_action( 'widgets_init', 'CustomLogoBox' );

3. Wordpress admin add widget



Thứ Hai, 21 tháng 11, 2022

 mplugin wordpress malware

Detail: November 2022 client report 5 sites issue malware.
This effect mobile only, when site wordpress at FRONT END click will open other site

Solution: backup files before edit
Setup: 'wordfence plugin'>Scan >list issue

Step by step: as detail report
1. theme /functions.php : require clean code
2. mplugin.php : this is malware -> remove
3. theme/ template-config.php clean code

 


 

Thứ Năm, 23 tháng 6, 2022

Joomla K2 article link 404

Vấn đề: load k2 category article, khi click link 404 không hiển thị
Kiểm tra: publish chưa, date create, date start, date end
Nếu vẫn ko hiển thị được thì kiểm tra: alias
Nguyên nhân: còn 1 khả năng là bị trùng lắp alias, để kiểm tra việc này có thể thêm ngày tháng phía sau alias


 

Thứ Tư, 22 tháng 6, 2022

Wordpress plugin WP Mail SMTP: SUCCESS

Hướng dẫn: trong wordpress send email admin là gmail, gmail không nhận được.
Nguyên nhân do gmail chặn lại
Cách xử lý: sử dụng wordpress SMTP plugin. Có nhiều plugin hỗ trợ, trong trường hợp này là WP Mail SMTP
Yêu cầu: tất cả các bước đều phải đúng nhé

Step 1: Create Gmail API


Step 2: Create Credential

 



Step 3: Create OAuthor Consent


 

Step 4: Config plugin  WP Mail SMTP
Sau khi enable plugin WP Mail SMTP, thì wordpress tự động sử dụng SMTP đã cấu hình việc gửi mail. Việc này do plugin thực hiện. 


Step 5 : kiểm tra gửi mail admin
set email ví dụ baonguyen12b32000@gmail.com, sau đó gửi mail bằng form contact hoặc bất cứ mail nào trong site, trong 1 số plugin có hỗ trợ 'Test mail'.
Kiểm tra gmail nhận được là việc cấu hình SMTP hoàn thành


 



Thứ Tư, 15 tháng 9, 2021

joomla 3.x cache pages turn off

Detail: configuration admin cache off, but folder cache still have 'pages'
Solution: plugin turn off 'page cache' 



Thứ Ba, 14 tháng 9, 2021

Joomla 3.10.2 install rsform 3.0 error


Setup: error table rsform no exist, access admin>rsform FAILED
Do install 3-5 times FAILED



Solution:
BACKUP BEFORE DO ANYTHING
1. Remove old version source: remove or change folder components/com_rsform + administrator/components/com_rsform
Step 2,3 is remove record at db relate rsform
2. administrator>component>manage find 'rsform' remove all
3. administrator>component>discover find 'rsform' remove all
4. administrator>configuration Check absolute path tmp + logs
5. Setup again

Status: SOLVED


Thứ Sáu, 3 tháng 9, 2021

Joomla Contact Form - turn off Consent Private text


Chi tiết: Contact Form joomla hiển thị field text

Privacy Note *
By submitting this form you agree to the Privacy Policy of this website and the storing of the submitted information. 

Giải pháp: administrator >turn off plugin >Content - Confirm Consent