Questions tagged [buttons]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

How to use result of function as link for button [closed]

I added a function to my functions.php that calculates what my latest post is and returns the link to that post. Now I want to add the result of this function when I press my button. So basically I ...
0
votes
0answers
15 views

How to remove buttons from gutenberg toolbar

How do i remove some of the buttons in from a block toolbar in the gutenberg editor? I thought there was a similar api to removing blocks for the paragraph block, something like but there is 0 ...
0
votes
0answers
16 views

Multiple TinyMCE buttons with one js file

when add button, i used: $plugin_array['ghichu2'] = get_template_directory_uri() . '/js/cfx_tinymce.js'; $plugin_array['footnotes'] = get_template_directory_uri() . '/js/cfx_tinymce.js'; I merged ...
0
votes
0answers
18 views

Button Alignment Issue after Recent ULTIMATE BLOCKS Update

After the last update, all the buttons on of my website aligned left automatically. Problem screenshot: https://imgur.com/a/oYZMRSq Sample page: https://icemakercage.com/best-ice-makers/ All the pages ...
0
votes
0answers
28 views

Add two button to page and post admin to redirect to : add new & list of (posts - pages) just after saving post or page

I would like to add some extra button inside post and admin page creating plugin or adding hook inside functions.php. The image below resume all I want : (1) depending to we are on wordpress post or ...
0
votes
0answers
12 views

Calling two URL's in one button

I am trying to call two URLs with one wordpress button either simultaneously or consecutively. EG, the user presses the button and it triggers a webhook then triggers a URL eg Google.com Both work ...
1
vote
0answers
192 views

Remove border radius setting from the Gutenberg button block?

I want to remove the border radius settings from button block so users can't access it since I don't want them getting confused on why it's "not working" (I forced 0 radius in the css for ...
0
votes
0answers
13 views

How to create an html button counter or similar, when user arrive at 5click open ad ad and the same every +5click

I'm new and looking for someone that can explain me how to make a button counter or something similar, when a user click it (and there is a counter near it) and arrive at 5 click when he click the 5th ...
0
votes
0answers
10 views

display best selling product in Elementor slider

I want to design the background of the first slide of Elementor slider in the way that it always is the image of the best selling product, and also for the button in the slider to lead to the same ...
0
votes
0answers
54 views

Add Button To Top Toolbar in Gutenberg

I would like to add a button that triggers some custom JS code to the top roolbar (not the block level editor toolbar): Is there an official way to do this? I couldn't find any documentation about ...
0
votes
1answer
10 views

Page access only from a specific page in wordpress website

I would like to know if it possible to have a page that open if and only if the visitor comes from a specific page (which in my case would be the homepage). So for example, the visitors land on the ...
0
votes
0answers
49 views

Edited one page in my working menu and now all menu buttons don't open unless I right-click and open in new tab

I just recently edited a page on my site and changed the page in my main menu, however now all of my menu buttons don't work unless I right-click and open in a new tab...then the page appears. I have ...
1
vote
1answer
138 views

How to align a single Gutenberg block button in WP 5.5.3?

With some WP update, the single block button suddenly disappeared from Gutenberg blocks. Now, we only have a block 'Buttons' element (don't know why actually. I reckon' that >80 per cent of all ...
0
votes
0answers
15 views

Hide 'add to cart' when certain value in dropdown is selected

Need help here please. I am trying to hide the 'add to cart' woocommerce button when a user selects a specific item in a dropdown list. I have tried multiple JQuery snippets in both functions.php and ...
0
votes
1answer
15 views

Cannot changing login button color, have tried theme, plugins… is it GoDaddy managed?

I have added this code into my theme Customization and also Simple Custom CSS plugin .wp-core-ui #login .button-primary { background: #7e0001 !important; background-image: none !important; ...
0
votes
2answers
290 views

Add to Cart button displaying twice on Shop Page Woocommerce

recently noticed that the add to cart button is appearing twice on my shop page - https://www.widescenes.com/products/nisi-filters/filter-kits/ . Can't work out if it is conflicting with another plug-...
1
vote
2answers
32 views

One button on admin page works but not two

I am workin on a plugin (for use on my own site). I recently added a button to the admin page that generates some text, and it works fine. This is what I use (pilfered from examples): if (!...
0
votes
0answers
19 views

How can I create an interactive custom frame around embedded YT video?

The example of what I'm trying to understand and learn from is pictured below. The "Start Here", "Read More>>>", "See Full List of Services Included", and "...
0
votes
0answers
12 views

how to add share buttons below any image inside the post?

I have a function of sharing buttons which i have added in function.php of my theme using filter hook,Now I want to hook same function below the image of my post(not featur image),which filter hook ...
0
votes
0answers
12 views

Single.php - Back To Category Button

I've used this code to create a back button to my previous category and it works perfectly, but I want the button title in this case hard coded RETURN to be dynamic too TITLED the previous category. ...
0
votes
1answer
83 views

Change button link to add nonce

I am making a Logout button, but in order for it to work properly the link needs to have the correct nonce ("site.com/wp-login.php?action=logout&wp_nonce=X". I have found in another ...
0
votes
0answers
384 views

Unable to preventDefault inside passive event listener invocation

I am getting this error Unable to preventDefault inside passive event listener invocation. at this below file https://devppts1.wpengine.com/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp Whenever i ...
0
votes
0answers
52 views

Best practice to call a function from a button-link?

I am developing a WordPress website where I have to link a button to a function inside the functions.php file. Meaning that when someone clicks on a certain button, this will trigger a call to a ...
0
votes
0answers
13 views

Loading elements with a button

I am trying to display some elements in a template file when a user clicks a button, specifically an image gallery and another separate template part. The following doesn't break the site but doesn't ...
0
votes
0answers
58 views

Generic Link Button in Custom Gutenberg Toolbar

Is there any way to add the link button you get in the richtext component into either a sidebar or a toolbar? I'm trying to set an overarching url for the whole block that is forced to open in a new ...
0
votes
1answer
190 views

Placing Lock Icon on WooCommmerce “Place Order” Checkout Button (WordPress 'ignoring' Changes…)

Trying to do something I thought would be relatively simple. Here is the default woocommerce "Place order" button <button type="submit" class="button alt" name="...
2
votes
0answers
57 views

Header Button Chance Polylang Elementor

Currently, I am making a Bilingual website, and I made a button on the header as well, and I want to make the button bilingual as well, but I don't know how could I change its language because it is ...
0
votes
0answers
23 views

Go back to the exact post page number

I use pagination in my index.php and I have many posts per page. Every post have a button to go back to home. The problem is that when I visit a post in a page 5 for example, the button always send me ...
0
votes
0answers
11 views

How do I create a button, that when clicked, will navigate to my woocommerce store page and automatically apply specific attribute search filters?

How do I create a button, that when clicked, will navigate to my woocommerce store page and automatically apply specific attribute search filters? The tools at my disposal are Divi for front end, ...
0
votes
1answer
91 views

How to align Button on the right of the image on desktop but below the image on mobile

I am using WordPress buttons I would like to know how to align Button on the right of the image on desktop but below the image on mobile. Here is an example: https://www.verywellfit.com/best-ankle-...
0
votes
1answer
324 views

How to display strikethrough text in button text (for special offer)

I'm trying to create a "Purchase for ~$20~ $1" button (using Elementor). I'm not sure how to achieve the strikethrough. Also I would like the $1 to be in bold/red. I suspect I need to dynamically ...
0
votes
0answers
146 views

How to open popup window in block editor with custom buttons?

I am new to wordpress. I want to open a popup from a custom button in the block editor, and return a value to the text being edited. I create the button like this: https://developer.wordpress.org/...
0
votes
0answers
8 views

How to create button that points to member/user information under Wordpress Multisite?

Hi I am trying to create website with members profile made under Wordpress Multisite. How do I create buttons wherein a member cannot edit individually but only through an input field in a form? ...
0
votes
0answers
21 views

Block editor: request for “input with button” component

Until I learn how to build my own react components for the block editor, I would like to request an input with button component for the block editor, especially for the InspectorTools area. For the ...
0
votes
0answers
11 views

Insert tinymce Popup array Gallery

In function i add_filter to mce: function custom_mce_buttons() { if ( get_user_option( 'rich_editing' ) == 'true' ) { add_filter( 'mce_external_plugins', 'custom_tinymce_plugin' ); ...
0
votes
0answers
16 views

How to add Inquiry button only in one WC Product

I want to add an inquiry button only for one WC product but here add that in all products. Someone can help with this? add_action( 'woocommerce_single_product_summary', 'inquiry_button', 30 ); ...
0
votes
1answer
10 views

How can I change page content for good once a button is pressed?

I am building a verification website that utilises QR codes which once scanned show a page which says that the product is genuine. I want to add a "claim listing" button to the bottom of the page ...
0
votes
0answers
24 views

Redirect from wp-admin back to page

I want when i click on menu button Return to Home i made on wp-admin menu to redirect back to page: My Extra Code: [ 'parentSlug' => 'doesnt-matter', '...
0
votes
0answers
86 views

Buttons and Images URLs changed to wp-content/themes

Hope everyone is doing great. I'm trying to find a problem regarding my wordpress broken link issue. The problem is quite confusing because I'm not sure why is it happening where I've tried disabling ...
0
votes
0answers
105 views

Button to remove a textarea field

I am using WordPress classic editor and putting some text fields into a page manually like this: <input type="text" /> or <textarea rows="2"></textarea> However, it's not clear ...
0
votes
0answers
105 views

Download button for all gallery images in WooCommerce product page

I'm trying to figure out a code to download all gallery images under each and every product with one press of a button. Thanks! Regards Rasmus
0
votes
1answer
57 views

Call to Action Button - Resize Help [closed]

I need help with resizing the "free quote" action button on my website. It is placed on the menu on the right top corner. I need to resize it to smaller size so that it fits the size with other text ...
1
vote
0answers
38 views

Remove add to cart icon/view product button woocommerce

I'm trying to remove a button that appears when hovering over the images on a woocommerce shop. (See images attached) The product is a variable product. Failing being able to do this I also tried to ...
0
votes
0answers
16 views

Link Dont work in first page Hero image

i try to add a link to hero image button (see in screen shot) but the link is not responce in any way. 2) If i move the mouse from hero image to menu there is a "light" effect or somthing that ...
0
votes
0answers
25 views

How can I center the “Buttons” in the Wordpresse editor?

I like the reusable buttons in Wordpress, and I want to create a button in the visual editor and I save it as a reusable block, so that I can use it over and over again. but, I never manage to center ...
0
votes
2answers
98 views

How to change wordpress registration form submit button value?

I am trying to create a website with wordpress and I want to change the text value of the submit button (included in the pictures). When I change its' text value while inspecting the element, it ...
0
votes
0answers
1k views

Calling php function using button onclick

I am using the following html button <button onclick="ga_cal_change_status(2300)"/> and I want to call the "my_message" php function from onclick event ga_cal_change_status(2300) passing the ...
1
vote
2answers
794 views

Insert a button on a page with random number generation

I want to add a button on my wordpress page. When the user click on it, the text box above that button show a random number between 1-10000 I am quite new to Wordpress, I want to integrate some ...
0
votes
1answer
152 views

How to properly hide the div of an inline collapsible button?

PROBLEM: When placing the div associated with the button, the wpautop function encapsulates the surrounding obects in up to 2 p tags which add up to 2 empty lines in the ouput (1 line above the div ...
0
votes
1answer
134 views

Menu with sub-items but without link

while using WP you can change your main menu pretty easy. Still, when I want to create a new menu button, I have to give it a link to some article, category etc. Is there a way to avoid it? In ...

1
2 3 4 5