Register Now


By registering, you agree to the Terms of Service and Privacy Policy.

Login

Forget


Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Add question

Please type your username .

Please type your E-Mail .

Please choose an appropriate title for the question to answer it even easier .

Please choose the appropriate category so others can easily search your question.

Please choose suitable Keywords Ex : question , poll .

This question is a poll ? If you want to be doing a poll click here .

Browse

Anonymous asks

Do you need a video to description the problem better ?

Choose from here the video type .

Put here the video id : https://www.youtube.com/watch?v=sdUUx5FdySs EX : 'sdUUx5FdySs'.

Notified by e-mail at incoming answers.

By asking your question, you agree to the Terms of Service and Privacy Policy.


x

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
x
  • Login
  • Add Post
  • Badges
  • Contact Us
Ask a Question
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
  • Login
  • Add Post
  • Badges
  • Contact Us

wptricks

  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

wp-enqueue-script

Home/ wp-enqueue-script

How to add extra attributes to the script tag added via wp_localize_script()

Question
So, wp_localize_script() are awesome to add custom data to a script. And these data gets added to the HTML like: <script id='woocommerce_some-js-extra' type="text/javascript"> var wc_some_params = {"key":"sdfsfsdfs","use_iframes":"1","images_dir":"https://dadadas
0
hooks, javascript, wp-enqueue-script, wp-localize-script iSaumya 2 years 0 Answers 68 views

Can’t execute jQuery before my script

Question
I have a very simple JS script called script_1.js sitting at the root level of my twentytwelve-child theme. This script contains only: $(document).ready(function(){console.log("scriptLoaded"); }); and I've loaded it with the functions.php
0
jquery, wp-enqueue-script jazzo 2 years 0 Answers 57 views

How can I dequeue a Plugin Stylesheet?

Question
I am currently using a Plugin, which has created a Stylesheet within the following directory: /wp-content/uploads/plugin-name/css. I would like to remove this Plugin's Stylesheet, since it is being called after my Custom Stylesheet, where the Plugin is performing unwanted ov
0
css, plugins, wp-enqueue-script, wp-enqueue-style Craig 2 years 0 Answers 48 views

how to enqueue javascript to manipulate acf input field in admin?

Question
I have an acf field 'select' that i want to remove some options from using js but i can not acces the field it returns undefined <select id="acf-block_5f35006ff2da4-field_5f3cce8a89941" class="" name="acf-block_5f35006ff2da4[field_5f3cce8a89941]" data-ui="0" data-ajax=
0
wp-enqueue-script Stefan Avramovic 2 years 0 Answers 39 views

How do I enqueue a script to run inside the Gutenberg editor?

Question
I'm using the Gutenberg editor as a replacement for a whiteboard in a classroom. I'm able to make the classroom more interactive by having students work directly inside the Gutenberg editor. As a long-term user of Wordpress it's truly wonderful to see this happen, with non-tech-savy users able to
0
actions, block-editor, wp-enqueue-script Kit Johnson 2 years 0 Answers 53 views

Bootstrap slider not working

Question
I have a html bootstrap slider which works fine with captions and everything.I would like to integrate it into my Wp theme (my forst one, so total newbie).I found a code, which seems to helo, but it only shows the three pictures and nothing slides...if I hard code the slider, it works.I understan
0
customization, jquery, theme-development, twitter-bootstrap, wp-enqueue-script Anna Moors 2 years 0 Answers 49 views

Retrieve URL of Script/Style and Dependencies

Question
Given script X Y and Z how would I get the list in PHP of X Y Z and their dependencies? I need to load several scripts that have dependencies. Normally I would do this via wp_enqueue_script but in this situation I need to load these scripts in a shadow
0
scripts, wp-enqueue-script Tom J Nowell 2 years 0 Answers 43 views

jQuery being deferred in Safari & Firefox?

Question
I'm building a WordPress site with Elementor and I've come across a strange issue where scripts are being deferred in Safari and Firefox, but not in Chrome. This is causing inline jQuery to fail with the error ReferenceError: Can't find variable: jQuery. There are no optimisat
0
errors, functions, javascript, jquery, wp-enqueue-script Ash 2 years 0 Answers 55 views

Cannot deregister a script using wp_deregister_script

Question
I am trying to get rig of the Disqus script on my front page, but unfortunately I cannot manage how to do this. Here is a little story of the steps I've done. Find the script name in the source code files of the plugin wp_register_script( 'dsq_count_s
0
wp-enqueue-script, wp-register-script CROSP 2 years 0 Answers 44 views

How to load scripts/styles specific for a page

Question
I know that according default Wordpress boot process, firstly functions.php is called, after that goes all theme stuff. But I am currently going to refactor my theme completely to optimize it. My idea is to have one base css file for common properties, normalize, colors. Or to keep
0
css, functions, themes, wp-enqueue-script, wp-enqueue-style CROSP 2 years 0 Answers 45 views
1 2 … 11
  • Recent
  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means that your website is unable to connect to ...

    May 30, 2021
  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY FOR $29 Onitir is a Modern & ...

    September 18, 2020
  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

    March 19, 2020
  • Tabula – Art, Music & Language School

    Tabula - Art, Music &

    Tabula – Art & Language School WordPress Theme Tabula is a Multi-Purpose WordPress Theme for all kinds of ...

    March 19, 2020
  • Mega Posts Display for Elementor – Premium WordPress Plugin

    Mega Posts Display for Elementor

    Welcome to Mega Posts Display for Elementor. With this awesome plugin for Elementor you can create a posts layout ...

    March 19, 2020
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Recent

  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means ...

  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY ...

  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

Popular Questions

  • 404 error - Page not

    ...

  • How to update meta fields

    I have an app written in Delphi and Indy components for Windows ...

  • How to echo the_excerpt without

    In the code snippet below, I trying to get the_excerpt to be ...

Copyright 2019 WPTricks - WordPress Tips, Tricks and Hacks | Privacy | Terms

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.