Problem with Call Custom file

Open
REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme May 06, 2024
Login to reply
Neari Price
2 days ago

Join Escape Road – a thrilling car chase game where you outrun the police, dodge obstacles and survive every curve!

td777pk game
3 days ago
TD777 game Download is an online gaming platform where people can play exciting games and win real money. It is designed for everyone—whether you are a beginner or an expert. The platform is easy to use and works well on both mobile phones and computers.
nofal seo
2 weeks ago
اصبح في عالمنا المعاصر أن تظهر لنا العديد من التقنيات الحديثة التي تساعدنا في الحصول على فرص في تحقيق اهدافنا بصورة أفضل، حيث أن الجمال هو من الأساسيات التي يبحث عنها الجميع وفي هذا المقال سوف نعرض للكم احدث الطرق المستخدمة في عمليات التجميل الغير جراحية مع عرض انواعها والتكلفة والتقنيات المستخدمة في كل نوع فتابعونا.
nofal seo
2 weeks ago
عملية تكبير الصدر بحقن الدهون من أكثر العمليات التي تلجأ إليها النساء للتغلب على مشكلة صغر حجم الثدي، وفيها يتم شفط الدهون من أي منطقة في الجسم يتراكم بها الدهون ثم حقنها في الثديين، وبالتالي زيادة حجم الثدي وتحسين مظهره، وهذه العملية تناسب النساء اللاتي يرغبن في الحصول على نتائج طبيعية
nofal seo
2 weeks ago

هل تبحثين عن تكلفة عملية تكبير المؤخرة في مصر؟ هل ترغبين في التعرف على أفضل دكتور تجميل المؤخرة في مصر؟ إذن أنتِ بالمكان الصحيح، تعرفي من خلال هذا المقال على عوامل تحديد سعر تكلفة تكبير المؤخرة في مصر، أفضل دكتور يمكنك الاعتماد عليه لتكبير المؤخرة، خطوات إجراء العملية وأفضل التقنيات التي تُجرى من خلالها لنتائج ممتازة وتعافي سريع، فقط تابعي معنا حتى النهاية

onlinelink apk
2 weeks ago

inshot pro mod apk download old version inShot video editor app. It offers all premium features without watermarks, ads, or subscription fees. Tailored for mobile devices, this version allows seamless video editing with a clean interface and professional-grade tools.

Rickey Miller
7 months ago

The issue occurs because you're using get_template_directory_uri(), which points to the parent theme's directory. Since you're working with a child theme, you should use get_stylesheet_directory_uri() instead, which points to the child theme's directory.

wp_enqueue_script( 'custom-js', get_stylesheet_directory_uri() . '/js/footerhide.js', array('jquery'), null, true );

get_template_directory_uri(): Points to the parent theme directory.

get_stylesheet_directory_uri(): Points to the child theme directory.

Replace your wp_enqueue_script line with the corrected version, and your script should now load from the child theme's js folder.







Snow Rider

Atiq Rev
1 year ago

Hi,

I have made a file on child theme js folder which

i call this file like this--  wp_enqueue_script( 'custom-js', get_template_directory_uri() . '/js/footerhide.js', array('jquery'), null, true );

But when i visit page showing this error--  https://woocommerce-1187255-4349440.cloudwaysapps.com/wp-content/themes/rehub-theme/js/footerhide.js


which is call direct theme not child theme.

can you please help me to fix it.


thank you

Additional Info

Link on page with issue: https://woocommerce-1187255-4349440.cloudwaysapps.com