TEST

Vantage Theme Issue: Sticky Nav doesn’t work on mobile view

Solution


Just simply comment out && !isMobileDevice, and it will work like a charm!

Github solved issue: #1

However, to do this directly on a theme However, to do this directly on a theme could be changed in any future updates is probably not a good idea.

Instead, we copy that .js file to our child theme js directory.
Then, we have to dequeue the original .js by inserting the commands to your child theme's functions.php:

function vantage_child_enqueue_parent_style() {

    wp_dequeue_script('vantage-main');
    wp_enqueue_script('vantage-main', get_stylesheet_directory_uri() . '/js/vantage-hollen-main.js', array( 'jquery' ) );
}
add_action( 'wp_enqueue_scripts', 'vantage_child_enqueue_parent_style', 8 );

In this way, any future minor update pushed by Vantage Dev Team won't clear your modified code, as long as there won't be any structural changes, like ids's and/or classes' renaming.

Reflection

It took me almost two hours at late night debugging (3 AM), and it almost got me: I thought it was caused due to the lack of support of $(body) and scrollTop() on mobile device. Tried so many solution to no avail, then I decided to go to sleep.
and you know what, I solved it in 30 minutes after having a lunch at noon.

TEST

虛擬化… 據老闆所稱每個月幫公司省了 5000 多元

公司原先於有 10 幾台主機 24/7 不間斷在運行 VB6 的軟體,主機架構都是 N 年前的。
公司創立從 1993 年到 2021 年也不曾有人出面改正......
於是我率先為公司導入 VMWare Workstation 在主管、老闆熟悉的 Windows 先試水溫,他們對 Snapshop 可說是非常滿意。

但,這樣還不夠!

接著我導入 ESXi OS,先搬移一台原先的 VB6 程式至創建好的虛擬機,運行二個月無問題。
向上呈報,更進一步提出 VCenter 構想,兼顧多使用者管理、自動備份、效能監測等。
並自原價屋組一台 AMD 5950X 32GB (雙通道) 的配置。
2022 年初又增添到 64G (四通道)。

目前已經運行超過一年,非常穩定。