Questions tagged [enqueue]
102 questions
0
votes
0 answers
How to properly implement Smoothscroll polyfill
I am trying to implement smoothscroll polyfill on my site.
https://github.com/iamdustan/smoothscroll
I have enqueued the script which I can see loading, but it does not work.
wp_enqueue_script('smooth_js', get_stylesheet_directory_uri() .…

Mr Toad
- 202
- 2
- 12
- 41
0
votes
2 answers
Enqueue GSAP script with Gutenberg block not working
I am trying to enqueue a GSAP script only when a particular Gutenberg/Advanced custom field block is present on a page.
I used this for Slick slider and it works perfectly but for some reason it will not work with GSAP - I don't get any console…

Mr Toad
- 202
- 2
- 12
- 41
0
votes
1 answer
I'm not familiar with queue is circular in python
What is the best way to provide a string representation of everyone in the queue. A person with a value 0 or less will have infinite number of turns. When a person is removed from the queue, they are re-added to the queue if they still have turns…

BRN
- 1
- 1
0
votes
0 answers
custom admin style on multisite wordpress
I'm trying to call custom file in network admin:
function admin_css_function(){
wp_enqueue_style('blaa', '/wp-content/themes/theme-name/assets/css/admin/admin.css', false);
}
if (is_admin()) {
add_action('admin_enqueue_scripts',…

alench
- 53
- 6
0
votes
0 answers
Click button to Sync using retrofit: "IllegalStateException: already executed."
I have an app with a sync button. When the user clicks it, it syncs the local Room database with the cloud server's database using retrofit.
I've set it up so the user can only click the button while it's not processing, i.e. Only allow the user to…

beebopbogo
- 29
- 4
0
votes
1 answer
Include jQuery Core in Theme Folder and Enqueue to Footer
I have used the below for many years to move jQuery to the footer.
// Move jQuery to footer
if( ! is_admin() ) {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', includes_url( '/js/jquery/jquery.js' ), false, NULL,…

James Mitchell
- 123
- 1
- 4
0
votes
0 answers
reference to 'queue' is ambiguous
// Implementing queue using array:
#include
using namespace std;
class queue{
public:
int size;
int f;
int r;
int *arr;
};
int isFull(queue *q)
{
if(q->r==q->size-1)
{
return 1;
}
else{
…

Rishi Matura
- 9
- 1
0
votes
0 answers
Woocommerce: Load custom functions on certain pages only
I am using my child's theme functions.php to add custom functions.
Thing is, I heavily modified the checkout page, so in my functions.php there are:
-about 300 lines I want to use globally,
-but then there are about 700 lines for checkout page…

ilkork
- 23
- 5
0
votes
1 answer
Python Queue class.. trouble understanding enqueue method
So I am trying to learn data structures in python and have moved on to trying to implement a queue. I understand how the data structure works. However I am now defining the enqueue method.
I am learning this on Codecademy btw.
The queue class looks…

shanehowe
- 45
- 4
0
votes
0 answers
Kotlin Retrofit cannot return data made in onRespons function
I am trying to connect to my database and find username and passwords.
I am using Kotlin with retrofit and cannot return data made up in onResponse function.
I am trying get datas like logName, logPassword, logId and isUser outside of this function.…

Alex Poliak
- 33
- 1
- 4
0
votes
1 answer
Child theme style.css not overwriting index.php on Wordpress
I hope you can help.
I have created a child theme for my wordpress page and set up the style.css and functions.php in it. I assume the enqueue has been set up correctly as I can change a few different things and it appears successfully. However if I…

RayRay
- 27
- 9
0
votes
1 answer
how to block the command "clEnqueueFillImage",which don't have the blocking argument?
In the source code of funciton "clEnqueueFillImage",it want to blocking the command but I don't figure out how to blocking it without the blocking argument?
{
iResult = OCL_Flush(psCommandQueue);
if (iResult != CL_SUCCESS)
{
…

Michael
- 11
- 4
0
votes
1 answer
AttributeError in the implementation of queue by using Single Linked List in the python
I want to implement a queue by using a single linked list. When I run the below code, I receive the AttributeError. I don't know what should I do to fix this issue.
I assume the first of the linked list as a front and the of that as a rear of the…

Mahzad
- 13
- 3
0
votes
2 answers
Reversing a queue only using enqueue and dequeue
Accepts items from the user and create a queue till the user enters -1
Print the queue
Reverse the given queue
Print the modified queue
for example the input may be
1
2
3
4
-1
the only thing I cannot get working is the logic around reversing the…

Mitch Callahan
- 5
- 4