Category Archives: Theme Flatsome

Tạo element title danh mục sản phẩm cho flatsome

Thêm code vào file functions.php hoặc theme-overide.php Sau đó, thêm css cho nó. Để css...

Tạo menu flyout 3 cấp trên flatsome

Bài viết được lấy nguồn từ Ninhbinhweb của bác Thiện. Thêm đoạn css sau vào...

2 Comments

Hướng dẫn dịch chuỗi trong theme flatsome

Chèn đoạn code sau vào file functions.php hoặc vào bất cứ 1 file nào khác...

Tạo gallery bằng custom field trong flatsome

<?php $images = get_field(‘project_gallery’); if( $images ): ?>     <ul class=”pgwSlideshow”>      ...

Tạo element news trên flatsome

<?php function news_ux_builder_element(){ add_ux_builder_shortcode(‘inno_news’, array( ‘name’ => __(‘News Element’), ‘category’ => __(‘Content’), ‘priority’ => 1,...

Nhúng file trong theme flatsome

Đây là nhúng code dành cho child themerequire_once ( get_stylesheet_directory() . ‘/shortcode/title1.php’ );require_once ( get_stylesheet_directory()...

Chỉnh sửa url profolio trên flatsome

xem video: https://www.youtube.com/watch?v=3cl6XCUjOPI

Tạo widget đè lại widget cũ trong child theme trên flatsome

Đây là code mẫu:function my_flatsome_widgets_init() { remove_action( ‘widgets_init’, ‘flatsome_widgets_init’ ); $title_before = ”; $title_class  =...

Remove action flatsome – xóa bỏ bắt buộc cài plugin

Dùng để xóa bỏ chức năng bắt buộc cài plugin khi cài đặt theme:

Code hiện nút Demo trong Flatsome Woocommerce

Chèn vào file: ..flatsomewoocommercesingle-productshort-description.php <?phpadd_action( ‘woocommerce_after_add_to_cart_button’, ‘inno_custom_action1’, 10 );function inno_custom_action1() { ?> <a class=”btn btn-outline-success”...