Máy tính & Wordpress
cong cu ai tim kiem
Top 5 công cụ AI tìm kiếm nhanh và chính xác
02/10/2026
top cong cu chinh sua am thanh
Top công cụ chỉnh sửa âm thanh tốt nhất hiện nay
30/09/2026
cong cu ai tao cv chuyen nghiep
Top 5 công cụ AI tạo CV chuyên nghiệp
28/09/2026
7 ứng dụng Windows 10/11 không cần thiết nên gỡ bỏ để tăng tốc máy tính
7 ứng dụng Windows 10/11 không cần thiết nên gỡ bỏ để tăng tốc máy tính
25/09/2026
Facebook Twitter Youtube Instagram
Máy tính & Wordpress

Type and hit Enter to search

  • Tiền điện tử
  • Công cụ AI
  • Thủ thuật
    • Máy tính
    • Điện thoại
  • Hướng dẫn
  • Deal
    • Shopee
    • Tiki
  • Game
    • Radius Raid
    • Tower Defense
    • Supper Mario
    • Space Invaders
    • Clumsy Bird
    • Racer
    • Canvas TD
    • Snake
    • 2048
    • Tetris
    • Tower
  • Công cụ
    • Photoshop Online
    • Tải Video Facebook
    • Tải Video Youtube
    • Tải Video Tiktok
    • Chụp ảnh
    • Sửa ảnh
    • Công cụ Online
  • Về tôi
    • Quyền riêng tư
    • Điều khoản
  • Shop
Máy tính & Wordpress
  • Tiền điện tử
  • Công cụ AI
  • Thủ thuật
    • Máy tính
    • Điện thoại
  • Hướng dẫn
  • Deal
    • Shopee
    • Tiki
  • Game
    • Radius Raid
    • Tower Defense
    • Supper Mario
    • Space Invaders
    • Clumsy Bird
    • Racer
    • Canvas TD
    • Snake
    • 2048
    • Tetris
    • Tower
  • Công cụ
    • Photoshop Online
    • Tải Video Facebook
    • Tải Video Youtube
    • Tải Video Tiktok
    • Chụp ảnh
    • Sửa ảnh
    • Công cụ Online
  • Về tôi
    • Quyền riêng tư
    • Điều khoản
  • Shop
Thủ thuật Web

Cách loại bỏ dòng bản quyền dưới chân trang một số theme miễn phí

Hữu Thuần
13/06/2023 5 Mins Read
122
79

[Thủ thuật WordPress] Cách loại bỏ dòng bản quyền dưới chân trang một số theme miễn phí – Bạn lục lọi trên mạng một số theme miễn phí wordpress và bạn “chộp” được một theme miễn phí rất ưng ý bạn tải về và tiến hành cài đặt cho giao diện trang Web của mình. Sau khi cài đặt xong bạn vào file footer để bỏ cái dòng bản quyền của theme đi và sau đó ra ngoài trang chính bạn Refresh để xem kết quả, tuy nhiên khi bạn Refresh thì nó lại hiện ra thông báo lỗi như sau?

loai bo dong ban quyen theme 5

Đại loại dòng thông báo đó là không cho phép bạn thay đổi liên kết và nội dung bản quyền này. Tuy nhiên bạn không muốn xuất hiện dòng bản quyền khó chịu này bạn muốn thay đổi lại thành cái của mình vậy có cách nào để có thể thay đổi nội dung bản quyền này không? Như vậy để giải quyết vướng mắt này hôm nay blog thủ thuật sẽ hướng dẫn các bạn cách loại bỏ thông báo lỗi này đi áp dụng cho tất cả theme wordpress miễn phí nhé!

Chọn để xem

Toggle
  • Cách loại bỏ dòng bản quyền dưới chân trang một số theme miễn phí
  • #1 Sửa từ giao diện
  • #Loại bỏ cảnh báo
  • #Tùy chỉnh code Footer
  • #2 Sử dụng CSS làm ẩn
  • #3 Sử dụng Plugin

Cách loại bỏ dòng bản quyền dưới chân trang một số theme miễn phí

Trong bài viết trước đây về thủ thuật WordPress mình có hướng dẫn các bạn cách vô hiệu hóa tính năng bình luận trên wordpress giúp bạn có thể loại bỏ tính năng trên WordPress một cách dễ dàng tiếp tục trong bài viết này mình sẽ hướng dẫn các bạn cách loại bỏ dòng bản quyền dưới chân trang một số theme miễn phí.

Hay nè ❤️  Cách sửa lỗi giao diện AMP theo chuẩn của Google

#1 Sửa từ giao diện

Đầu tiên bạn cần xác định các tập tin liên quan cần sử dụng bao gồm tập tin Functions.php, footer.php của giao diện đang sử dụng (đồng thời bạn cần phải nắm bắt được cách truy cập vào các tập tin bạn có thể tham khảo bài viết sửa giao diện, plugin WordPress không cần FTP hoặc bạn có thể tham khảo cài đặt và sử dụng phần mềm CuteFTP) > nhìn sang cột Menu bên phải kích chọn file Functions.php.

loai bo dong ban quyen theme 2

#Loại bỏ cảnh báo

Tiếp tục bạn tìm nội dung của đoạn code sau

function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = 'Designed by: SA Dating | Thanks to Iron Worker Jobs, Dog Trainers and Florida Personals'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();

Và sau đó thay tất cả đoạn code trên bằng đoạn code này

function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { /* */ } } wp_initialize_the_theme_finish();

loai bo dong ban quyen theme

Sau khi thay xong bạn nhấn Cập nhật tập tin. Và bây giờ bạn có thể thay đổi nội dung bản quyền dưới chân trang được rồi đấy.

#Tùy chỉnh code Footer

Bạn kích chọn file Footer.php ở cột Menu bên phải.

Hay nè ❤️  Bạn có biết cách sử công cụ Press This trong wordpress

loai bo dong ban quyen theme 4

Sau đó tìm đoạn code liên quan và thay lại nội dung mà bạn mong muốn.

loai bo dong ban quyen theme 1

Thay xong bạn đừng quên Cập nhật tập tin. Và đây là kết quả thu được khi bạn loại bỏ thông báo lỗi nội dung bản quyền dưới chân trang.

loai bo dong ban quyen theme 3

#2 Sử dụng CSS làm ẩn

Vwosi phương pháp này chúng ta sẽ dùng code CSS để ẩn đi dòng dòng bản quyền dưới chân trang. Dĩ nhiên bạn cần biết chút code CSS.

Đầu tiên bạn cần xác đinh Class Footer bằng cách ngoài trang chủ WordPress > dùng trình duyệt Google Chrome kích chuột phải và chọn Inspect để xem mã trang Web, sau đó bạn hãy tìm đoạn mã dưới chân trang nó sẽ có tên là Footer và hãy xác định tên Class của Footer.

loai bo dong ban quyen theme 6

Như bạn thấy Footer của mình có tên Class là “Site-footer”. Sau đó trong trang quản trị WordPress hãy điều hướng theo menu Appearance > Customize > Additional CSS. Thêm dòng code như sau.

.site-footer{
display:none;
}

Hãy thay thế tên Class tương ứng mà bạn muốn làm ẩn. Thực hiện xong bạn sẽ nhìn thấy dòng chữ dưới chân trang biến mất.

#3 Sử dụng Plugin

Nếu bạn sợ đụng chạm đến mã nguồn thì có thể sử dụng Plugin để thay đổi, ưu điểm của việc sử dụng Plugin là bạn có thể tùy biến một cách dễ dàng không sợ mất khi có giao diện mới cập nhật. Với plugin Remove Footer Credit sẽ giúp bạn loại dòng bản quyền dưới chân trang một cách dễ dàng, bạn không cần lo lắng liệu plugin có ảnh hưởng hiệu suất website hay không. Đây là plugin đơn giản và nhẹ nhàng.

Hay nè ❤️  Cách hạn chế spam bình luận bằng cách quy định độ dài comment

Đầu tiên bạn cài đặt và active plugin Remove Footer Credit. Tiếp theo đi tới Tools > Remove Footer Credit.

Ở đây plugin có 2 ô cho bạn nhập vào. Ô đầu tiên là dòng text bạn muốn loại bỏ. Ô thứ hai là dòng text bạn muốn thay thế. Nếu bạn không muốn hiển thị gì ở phần footer thì có thể để trống.

loai bo dong ban quyen theme 7

Nhớ click nút Save để lưu lại cấu hình của bạn. Ra giao diện trang chủ. Bạn sẽ nhận thấy dòng dòng chữ bản quyền dưới chân trang không còn nữa.​

Như vậy là mình đã hướng dẫn các bạn cách loại bỏ nội dung bản quyền dưới chân trang một cách rất đơn giản và nhanh chóng rồi đấy nhé.

Cuối cùng không có gì hơn nếu bạn cảm thấy bài viết có ích hãy subscribe blog của mình thường xuyên để cập nhật những bài viết mới nhất qua Email – Chân thành cảm ơn!

Đánh giá và chia sẻ để nâng cao chất lượng bài viết?

Tỉ lệ 5 / 5. Phiếu: 1

Chúng tôi rất tiếc vì bài đăng này không hữu ích cho bạn!

Hãy để chúng tôi cải thiện bài đăng này!

Hãy cho chúng tôi biết làm thế nào chúng tôi có thể cải thiện bài đăng này?

Tags:

blog thủ thuậtlỗi wordpressthủ thuật haythủ thuật wordpresstuyệt chiêu wordpress

Share Article

Follow Me Written By

Hữu Thuần

Chào các bạn mình tên thật là Nguyễn Hữu Thuần là một người nội tâm, thích sống khép kín tuy nhiên có nhiều lúc cũng rất tăng động, trang web huuthuan.net là nơi lưu giữ những kiến thức, kinh nghiệm cũng như góc cuộc sống của mình, nếu bạn thích tôi hãy tìm kiếm tôi bên dưới...

Bài viết khác

wordpress tip and share 1
Previous

Cách tích hợp các hệ thống bình luận cho wordpress

lo go trong windows 10
Next

Cách kích hoạt tài khoản Administrator ẩn trên Windows

Next
lo go trong windows 10
13/06/2023

Cách kích hoạt tài khoản Administrator ẩn trên Windows

Previous
13/06/2023

Cách tích hợp các hệ thống bình luận cho wordpress

wordpress tip and share 1

79 Comments

  1. nguyễn thanh tú viết:
    17/01/2018 lúc 11:21 chiều

    Thuần ơi giúp mình loại bỏ ở themes hestia được không

    Trả lời
    1. Hữu Thuần viết:
      29/01/2018 lúc 9:00 sáng

      Cảm ơn bạn đã đặt câu hỏi do bận công việc gia đình nên giờ mình mới trả lời bạn được. Bạn tìm trong File Footer.php thử xem có nội dung ở trang chính hay không và tiến hành thay đổi thôi bạn 😀

      Trả lời
      1. vương viết:
        20/12/2018 lúc 5:55 chiều

        Chào bạn, bạn vui lòng cho mình xin sdt hoặc mail đc không ạ, cám ơn bạn nhiều. sdt mình: 0826282029

        Trả lời
        1. Hữu Thuần viết:
          21/12/2018 lúc 11:01 sáng

          mail mình: thuanhuu0188@gmail.com nhé 😛 hoặc bạn có thể xem trong phần giới thiệu ấy 😛

          Trả lời
  2. lê văn hải viết:
    20/11/2017 lúc 10:04 chiều

    a ơi giúp em với, em dùng theme miễn phí Wellington
    em tìm hoài ko thấy a ơi

    Trả lời
    1. Hữu Thuần viết:
      21/11/2017 lúc 7:42 sáng

      Mỗi theme có cấu trúc khác nhau bạn có thể tìm trong file Footer.php hoặc các file khác 😀

      Trả lời
  3. minh duc viết:
    09/09/2017 lúc 9:16 chiều

    hi bạn . Mình dùng theme wrdpress và muốn xoá Copyright © 2017 . Proudly powered by WordPress & Corporate Business WordPress Theme by Dinozoom.com., mà mình tìm trong footer và function mãi không thấy để xoá, Bạn chỉ giúp mình với.

    Trả lời
    1. Hữu Thuần viết:
      11/09/2017 lúc 8:29 sáng

      Bạn tìm trong các tập tin template xem sao bạn 😀

      Trả lời
  4. Sinh viết:
    03/09/2017 lúc 9:44 chiều

    Mình vào fuction.php và footer.php cũng không thấy đoạn code bạn hướng dẫn. Bạn xem giúp mình với ạ, mình dùng theme Bakes And Cakes.
    Bạn xem giúp mình ạ.
    Đoạn code trong fuction.php :
    get( ‘Version’ ) );
    }

    if (!function_exists(‘bakes_and_cakes_setup’)):
    /**
    * Sets up theme defaults and registers support for various WordPress features.
    *
    * Note that this function is hooked into the after_setup_theme hook, which
    * runs before the init hook. The init hook is too late for some features, such
    * as indicating support for post thumbnails.
    */
    function bakes_and_cakes_setup() {
    /*
    * Make theme available for translation.
    * Translations can be filed in the /languages/ directory.
    * If you’re building a theme based on Bakes And Cakes, use a find and replace
    * to change ‘bakes-and-cakes’ to the name of your theme in all the template files.
    */
    load_theme_textdomain(‘bakes-and-cakes’, get_template_directory() . ‘/languages’);

    // Add default posts and comments RSS feed links to head.
    add_theme_support(‘automatic-feed-links’);

    /*
    * Let WordPress manage the document title.
    * By adding theme support, we declare that this theme does not use a
    * hard-coded tag in the document head, and expect WordPress to
    * provide it for us.
    */
    add_theme_support(‘title-tag’);

    /*
    * Enable support for Post Thumbnails on posts and pages.
    *
    * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
    */
    add_theme_support(‘post-thumbnails’);

    /* Custom Logo */
    add_theme_support( ‘custom-logo’, array(
    ‘header-text’ => array( ‘site-title’, ‘site-description’ ),
    ) );

    // This theme uses wp_nav_menu() in one location.
    register_nav_menus(array(
    ‘primary’ => esc_html__(‘Primary’, ‘bakes-and-cakes’),
    ));

    /*
    * Switch default core markup for search form, comment form, and comments
    * to output valid HTML5.
    */
    add_theme_support(‘html5’, array(
    ‘search-form’,
    ‘comment-form’,
    ‘comment-list’,
    ‘gallery’,
    ‘caption’,
    ));

    /*
    * Enable support for Post Formats.
    * See https://developer.wordpress.org/themes/functionality/post-formats/
    */
    add_theme_support(‘post-formats’, array(
    ‘aside’,
    ‘status’,
    ‘video’,
    ‘quote’,
    ‘link’,
    ));

    // Set up the WordPress core custom background feature.
    add_theme_support(‘custom-background’, apply_filters(‘bakes_and_cakes_custom_background_args’, array(
    ‘default-color’ => ‘ffffff’,
    ‘default-image’ => ”,
    )));

    //Custom Image Sizes
    add_image_size(‘bakes-and-cakes-post-thumb’, 60, 60, true);
    add_image_size(‘bakes-and-cakes-about-thumb’, 600, 400, true);
    add_image_size(‘bakes-and-cakes-product-thumb’, 235, 235, true);
    add_image_size(‘bakes-and-cakes-slider’, 1920, 500, true);
    add_image_size(‘bakes-and-cakes-image-full’, 1139, 498, true);
    add_image_size(‘bakes-and-cakes-image’, 750, 400, true);
    add_image_size(‘bakes-and-cakes-staff-thumb’, 487, 527, true);
    add_image_size(‘bakes-and-cakes-blog-thumb’, 280, 255, true);
    add_image_size(‘bakes-and-cakes-events-thumb’, 255, 255, true);
    }

    endif;
    add_action(‘after_setup_theme’, ‘bakes_and_cakes_setup’);

    /**
    * Return sidebar layouts for pages
    */
    function bakes_and_cakes_sidebar_layout(){
    global $post;

    if( get_post_meta( $post->ID, ‘bakes_and_cakes_sidebar_layout’, true ) ){
    return get_post_meta( $post->ID, ‘bakes_and_cakes_sidebar_layout’, true );
    }else{
    return ‘right-sidebar’;
    }
    }

    /**
    * Set the content width in pixels, based on the theme’s design and stylesheet.
    *
    * Priority 0 to make it available to lower priority callbacks.
    *
    * @global int $content_width
    */
    function bakes_and_cakes_content_width() {
    $GLOBALS[‘content_width’] = apply_filters(‘bakes_and_cakes_content_width’, 750);

    }
    add_action(‘after_setup_theme’, ‘bakes_and_cakes_content_width’, 0);

    /**
    * Adjust content_width value according to template.
    *
    * @return void
    */
    function bakes_and_cakes_template_redirect_content_width() {

    // Full Width in the absence of sidebar.
    if( is_page() ){
    $sidebar_layout = bakes_and_cakes_sidebar_layout();
    if( ( $sidebar_layout == ‘no-sidebar’ ) || ! ( is_active_sidebar( ‘right-sidebar’ ) ) ) $GLOBALS[‘content_width’] = 1170;

    }elseif ( ! ( is_active_sidebar( ‘right-sidebar’ ) ) ) {
    $GLOBALS[‘content_width’] = 1170;
    }

    }

    add_action( ‘template_redirect’, ‘bakes_and_cakes_template_redirect_content_width’ );

    /**
    * Register widget area.
    *
    * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
    */
    function bakes_and_cakes_widgets_init() {
    register_sidebar(array(
    ‘name’ => esc_html__(‘Right Sidebar’, ‘bakes-and-cakes’),
    ‘id’ => ‘right-sidebar’,
    ‘description’ => ”,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    register_sidebar(array(
    ‘name’ => esc_html__(‘Google Map Widget’, ‘bakes-and-cakes’),
    ‘id’ => ‘google-map’,
    ‘description’ => __( ‘Widget for Google map section( Use Text widget for Google Map ).’,’bakes-and-cakes’),
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    register_sidebar(array(
    ‘name’ => esc_html__(‘Footer First’, ‘bakes-and-cakes’),
    ‘id’ => ‘footer-first’,
    ‘description’ => ”,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    register_sidebar(array(
    ‘name’ => esc_html__(‘Footer Second’, ‘bakes-and-cakes’),
    ‘id’ => ‘footer-second’,
    ‘description’ => __( ‘Here you can use text widget to display Contact Form.’,’bakes-and-cakes’),
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    register_sidebar(array(
    ‘name’ => esc_html__(‘Footer Third’, ‘bakes-and-cakes’),
    ‘id’ => ‘footer-third’,
    ‘description’ => ”,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    }
    add_action(‘widgets_init’, ‘bakes_and_cakes_widgets_init’);

    /**
    * Enqueue scripts and styles.
    */
    function bakes_and_cakes_scripts() {
    $query_args = array(
    ‘family’ => ‘Open+Sans:400,400italic,700|Niconne’,
    );
    $my_theme = wp_get_theme();
    $version = $my_theme[‘Version’];

    wp_enqueue_style(‘bakes-and-cakes-font-awesome’, get_template_directory_uri() . ‘/css/font-awesome.css’);
    wp_enqueue_style(‘bakes-and-cakes-flexslider-style’, get_template_directory_uri() . ‘/css/flexslider.css’);
    wp_enqueue_style(‘bakes-and-cakes-jquery-sidr-light-style’, get_template_directory_uri() . ‘/css/jquery.sidr.light.css’);
    wp_enqueue_style(‘bakes-and-cakes-lightslider-style’, get_template_directory_uri() . ‘/css/lightslider.css’);
    wp_enqueue_style(‘bakes-and-cakes-google-fonts’, add_query_arg($query_args, “//fonts.googleapis.com/css”));
    wp_enqueue_style(‘bakes-and-cakes-style’, get_stylesheet_uri(), array(), BAKES_AND_CAKES_THEME_VERSION );

    if( bakes_and_cakes_is_woocommerce_activated() )
    wp_enqueue_style( ‘bakes-and-cakes-woocommerce-style’, get_template_directory_uri(). ‘/css/woocommerce.css’, array(‘bakes-and-cakes-style’), $version );

    wp_enqueue_script(‘bakes-and-cakes-light-slider’, get_template_directory_uri() . ‘/js/lightslider.js’, array(), ‘1.1.5’, true);
    wp_enqueue_script(‘bakes-and-cakes-flexslider’, get_template_directory_uri() . ‘/js/jquery.flexslider.js’, array(‘jquery’), ‘2.6.0’, true);
    wp_enqueue_script(‘bakes-and-cakes-tab’, get_template_directory_uri() . ‘/js/tab.js’, array(), ‘20120206’, true);
    wp_enqueue_script(‘bakes-and-cakes-same-height’, get_template_directory_uri() . ‘/js/sameheight.js’, array(), ‘20120206’, true);
    wp_enqueue_script(‘bakes-and-cakes-sidr’, get_template_directory_uri() . ‘/js/jquery.sidr.js’, array(‘jquery’), ‘2.0.8’, true);
    wp_register_script(‘bakes-and-cakes-custom’, get_template_directory_uri() . ‘/js/custom.js’, array(‘jquery’), BAKES_AND_CAKES_THEME_VERSION, true);

    $slider_auto = get_theme_mod( ‘bakes_and_cakes_slider_auto’, ‘1’ );
    $slider_loop = get_theme_mod( ‘bakes_and_cakes_slider_loop’, ‘1’ );
    $slider_pager = get_theme_mod( ‘bakes_and_cakes_slider_control’, ‘1’ );
    $slider_animation = get_theme_mod( ‘bakes_and_cakes_slider_animation’, ‘slide’ );
    $slider_speed = get_theme_mod( ‘bakes_and_cakes_slider_speed’, ‘7000’ );
    $animation_speed = get_theme_mod( ‘bakes_and_cakes_animation_speed’, ‘600’ );

    $array = array(
    ‘auto’ => esc_attr( $slider_auto ),
    ‘loop’ => esc_attr( $slider_loop ),
    ‘pager’ => esc_attr( $slider_pager ),
    ‘animation’ => esc_attr( $slider_animation ),
    ‘speed’ => absint( $slider_speed ),
    ‘a_speed’ => absint( $animation_speed )
    );

    wp_localize_script( ‘bakes-and-cakes-custom’, ‘bakes_and_cakes_data’, $array );
    wp_enqueue_script( ‘bakes-and-cakes-custom’ );

    if (is_singular() && comments_open() && get_option(‘thread_comments’)) {
    wp_enqueue_script(‘comment-reply’);
    }
    }
    add_action(‘wp_enqueue_scripts’, ‘bakes_and_cakes_scripts’);

    if ( is_admin() ) : // Load only if we are viewing an admin page

    function bakes_and_cakes_admin_scripts() {

    wp_enqueue_style( ‘bakes-and-cakes-admin-style’,get_template_directory_uri().’/inc/css/admin.css’, ‘1.0’, ‘screen’ );

    }

    add_action( ‘admin_enqueue_scripts’, ‘bakes_and_cakes_admin_scripts’ );

    endif;

    if( ! function_exists( ‘bakes_and_cakes_customizer_js’ ) ) :
    /**
    * Registering and enqueuing scripts/stylesheets for Customizer controls.
    */
    function bakes_and_cakes_customizer_js() {
    wp_enqueue_script( ‘bakes-and-cakes-customizer-js’, get_template_directory_uri() . ‘/inc/js/customizer.js’, array(‘jquery’), BAKES_AND_CAKES_THEME_VERSION, true );
    }
    endif;
    add_action( ‘customize_controls_enqueue_scripts’, ‘bakes_and_cakes_customizer_js’ );

    if ( ! function_exists( ‘bakes_and_cakes_excerpt_more’ ) && ! is_admin() ) :
    /**
    * Replaces “[…]” (appended to automatically generated excerpts) with … *
    */
    function bakes_and_cakes_excerpt_more() {
    return ‘ … ‘;
    }

    endif;

    add_filter( ‘excerpt_more’, ‘bakes_and_cakes_excerpt_more’ );

    if ( ! function_exists( ‘bakes_and_cakes_excerpt_length’ ) ) :
    /**
    * Changes the default 55 character in excerpt
    */
    function bakes_and_cakes_excerpt_length( $length ) {
    return 50;
    }

    endif;

    add_filter( ‘excerpt_length’, ‘bakes_and_cakes_excerpt_length’, 999 );

    /**
    * Query WooCommerce activation
    */
    if ( ! function_exists( ‘bakes_and_cakes_is_woocommerce_activated’ ) ) {

    function bakes_and_cakes_is_woocommerce_activated() {
    if ( class_exists( ‘woocommerce’ ) ) { return true; } else { return false; }
    }
    }

    /**
    * Custom template tags for this theme.
    */
    require get_template_directory() . ‘/inc/template-tags.php’;

    /**
    * Customizer additions.
    */
    require get_template_directory() . ‘/inc/customizer.php’;

    /**
    * Custom functions that act independently of the theme templates.
    */
    require get_template_directory() . ‘/inc/custom-functions.php’;

    /**
    * Custom functions for meta box.
    */
    require get_template_directory() . ‘/inc/metabox.php’;

    /**
    *Rara Recent Post Widget.
    *
    */
    require get_template_directory() . ‘/inc/widget-recent-post.php’;

    /**
    *Rara Popular Post Widget.
    *
    */
    require get_template_directory() . ‘/inc/widget-popular-post.php’;

    /**
    *Social Media Widget.
    *
    */
    require get_template_directory() . ‘/inc/widget-social-links.php’;

    /**
    * Load Jetpack compatibility file.
    */
    require get_template_directory() . ‘/inc/jetpack.php’;

    /**
    * Add theme compatibility function for woocommerce if active
    */
    if( bakes_and_cakes_is_woocommerce_activated() ){
    require get_template_directory() . ‘/inc/woocommerce-functions.php’;
    }

    /**
    * Info Section
    */
    require get_template_directory() . ‘/inc/info.php’;

    ?>

    Đoạn code trong footer.php:
    <?php
    /**
    * The template for displaying the footer.
    *
    * Contains the closing of the #content div and all content after.
    *
    * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
    *
    * @package Bakes_And_Cakes
    */

    if(!is_page_template('template-home.php')){ echo '’; } ?>

    Trả lời
    1. Hữu Thuần viết:
      04/09/2017 lúc 6:11 sáng

      Bạn đang dùng theme gì đó?

      Trả lời
      1. Sinh viết:
        04/09/2017 lúc 4:56 chiều

        Dạ e đang dùng theme bakes and cakes ạ.

        Trả lời
        1. Hữu Thuần viết:
          05/09/2017 lúc 5:50 sáng

          Bác lại thay đổi theme rồi hé 😀

          Trả lời
  5. HẢI viết:
    04/08/2017 lúc 12:14 sáng

    xem giúp mình themes The BAKERY

    Trả lời
    1. Hữu Thuần viết:
      04/08/2017 lúc 8:02 sáng

      Bạn vui lòng cho mình địa chỉ tải của theme

      Trả lời
      1. HẢI viết:
        04/08/2017 lúc 8:55 sáng

        mình tải trong wordpress luôn đó bạn THuần ơi. hix

        Trả lời
        1. Hữu Thuần viết:
          04/08/2017 lúc 9:20 sáng

          Bác tìm nó trong tập tin Footer.php đó rồi chỉnh lại 😀

          Trả lời
        2. HẢI viết:
          04/08/2017 lúc 9:33 sáng

          Mình vào footer.php, fuction.php mà tìm không thấy.

          Trả lời
        3. Hữu Thuần viết:
          04/08/2017 lúc 9:41 sáng

          Trang Web của bác là trang nào vậy?

          Trả lời

Phân trang bình luận

Older comments 1 2 3 4 5 Newer comments

Để lại một bình luận Hủy

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

Bài viết gần đây

dola ai cong cu tao video mien phi
Cách tạo video AI bằng Seedance 2.5 trên Dola AI
Hữu Thuần
cong cu ai tim kiem
Top 5 công cụ AI tìm kiếm nhanh và chính xác
Hữu Thuần
top cong cu chinh sua am thanh
Top công cụ chỉnh sửa âm thanh tốt nhất hiện nay
Hữu Thuần
cong cu ai tao cv chuyen nghiep
Top 5 công cụ AI tạo CV chuyên nghiệp
Hữu Thuần
7 ứng dụng Windows 10/11 không cần thiết nên gỡ bỏ để tăng tốc máy tính
7 ứng dụng Windows 10/11 không cần thiết nên gỡ bỏ để tăng tốc máy tính
Hữu Thuần

Bình luận mới

  • Hữu Thuần on 2 cách xóa background hình ảnh cực kỳ đơn giản: “Mong bạn ghé thăm thường xuyên!” Th9 24, 08:03
  • Hữu Thuần on Cách chỉnh sửa tập tin hosts trong Windows khi bị chặn: “Làm như trên là được mà bạn!” Th9 9, 07:29
  • Hữu Thuần on Sửa một số lỗi ký số VGCA của Ban cơ yếu chính phủ: “Bạn nên gỡ hết các ứng dụng đã cài và vào link này để tải các bản mới nhất về…” Th8 28, 08:19
  • ha on Sửa một số lỗi ký số VGCA của Ban cơ yếu chính phủ: “Xin hỏi mình cài đc cả 3 phần rồi nhưng không mở được khi nhập đúng tên tài khoản rồi…” Th8 19, 10:18
  • Ayoub Ghailan on Đăng ký hosting nhận quà cực khủng: “jameslunez134@gmail.comayoub6348” Th8 19, 04:50

ADS

Máy tính & Wordpress

Là một trang Web cá nhân chia sẻ các kinh nghiệm về thủ thuật máy tính, thủ thuật WordPress từ cơ bản đến nâng cao!.

© 2026, All Rights Reserved.

Quick Links

  • Contact
  • Privacy
  • Terms of Use

Category

  • Máy tính
  • Điện thoại
  • Wordpress
  • AI

Follow Us

Facebook
Twitter
Instagram
Youtube