Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

98
Views
Cómo agregar script al tema de Wordpress

Quiero hacer mi primer tema en Wordpress paso a paso pero tengo problemas para insertar un script en él.

 function loadingScripts(){ wp_register_script( 'awqnimate', get_template_directory_uri() . '/js/bootstrap.bundle.min.js', array('jquery'), '1.1', 'false'); wp_enqueue_script('awqnimate'); } add_action('wp_enqueue_scripts', 'loadingScripts');

Puse esto en function.php y en index.php tengo <?php get_header(); ?> y <?php footer(); ?> también y funciona perfecto. Pero cuando voy a mi página y compruebo las raíces, no veo estos scripts en absoluto. Por favor, dame tu opinión. Leí todo y no puedo ver mi error.


actualizar

Cambié el nombre de relleno y algo avanza pero...

 function loadingScripts(){ wp_register_script( 'awqnimate', get_template_directory_uri() . '/js/bootstrap.bundle.min.js', array('jquery'), '1.1', 'false'); wp_enqueue_script('awqnimate'); } add_action('wp_enqueue_scripts', 'loadingScripts');

todavía no funciona en absoluto y funciona pero tiene algún tipo de error No se puede encontrar la variable: jQuery

 wp_register_script ('normwalize', get_template_directory_uri() . '/js/jquery-3.0.0.min.js', '1.1', 'true'); wp_enqueue_script('normwalize'); ```
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

El nombre del archivo debe ser functions.php

about 4 years ago · Juan Pablo Isaza Report

0

tienes que cambiar tu add_action

 add_action('wp_enqueue_scripts', 'awqnimate');
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!