Blogs – Hùng Bun – Phạm Việt Hùng

Get current page URL in WordPress

It doesn’t matter if you need the URL for single post, page url, home page, category template, tag template, custom post type or any other WordPress template. You can use this piece of code inside any PHP template file on…

Xem chi tiết

Popup form in Woocommerce

Add script blow to function.php function hdev_popup_form() { if (is_singular('product')): ?> <div id="dathang" class="lightbox-by-id lightbox-content mfp-hide lightbox-white"> <div class="row"> <div class="col medium-6"> <?php the_post_thumbnail(); ?> <?php woocommerce_template_single_title(); //Get TITLE ?> <?php woocommerce_template_single_price(); // Get PRICE ?> <?php woocommerce_template_single_excerpt(); // Get…

Xem chi tiết
Load more...