Skip to main content

Questions tagged [buttons]

The tag has no usage guidance.

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

how can I remove all default settings in Gutenberg blocks? example core/button

I’m expanding the capabilities of the default Gutenberg block (core/button) and want to hide all the default settings. This code helps to hide all settings except 1 //functions.php function ...
YuriiMy's user avatar
1 vote
0 answers
22 views

I'm making a WordPress CF7 Submit Button Text Changer

I trying to make it so I can change the text of CF7 submit buttons after users click on send buttons through a plugin. I've almost got everything working but I need a bit of help getting the data to ...
Glen Charles Rowell's user avatar
0 votes
1 answer
43 views

Data insertion after clicking a button does not work (script, AJAX, PHP)

1 - the button "Choice" has Id "ButtonPubVideoHdp" in Elementor 2 - the file wp-content/themes/generatepress/js/wp_ajax_calls.js manages the click and calls in the file wp-content/...
Jean-François Moulin's user avatar
0 votes
0 answers
50 views

ACF block gutenberg aligncenter don't work

I'm starting with creating Gutenberg blocks with ACF. I would like to create a simple button, so far so good. My problem comes from the center alignment. When I align my element to the left and right ...
Thica's user avatar
  • 17
-1 votes
1 answer
106 views

button onclick with get_post_permalink

I developed a custom post type. On my archive page for each post there is a <button>. The problem is that I can't put the link to the post in question. My button is in my loop. <button type=&...
Thica's user avatar
  • 17
1 vote
0 answers
31 views

Wishlist Icon in Divi Blog module (loop)

I use the Divi Blog module (loop), but it lacks some functions. So with a childtheme and code I retrieve post meta in the Divi Blog Module, thats all working fine. But, I also want a working wishlist ...
Joyce's user avatar
  • 11
0 votes
1 answer
413 views

How can I make one button a different color from the other buttons on my site?

Using the Custom CSS and JS plugin, I have coded all of the buttons on my website to be green with white text, then white with blue text when hovered over: .wp-block-button .wp-block-button__link { ...
Brandon_J's user avatar
  • 103
0 votes
1 answer
65 views

What's the best way using vanilla js to force confirmation on publish button?

I am trying to force a confirmation in certain cases in the editor screen. I'm using something like this after selecting the publishButton: publishButton.addEventListener('click', function () { ...
user18102663's user avatar
0 votes
0 answers
36 views

Button has dark line on bottom

I am new to WordPress. I use it with the Backend-Builder “Avada Builder”. I have an event calendar and have to created a button. I create the button, but it has a black/navy line at the bottom. I ...
deified's user avatar
0 votes
1 answer
154 views

How to change the text of Publish Button

I am trying to change the text of the publish button to save. I could change the text. BUT, When I click Status Edit button and OK button, it change "Publish". How can I fix this? This is ...
amy's user avatar
  • 3
0 votes
1 answer
196 views

Remove Gutenberg Buttons Block

Is there a way to remove the default core/buttons block in Gutenberg, or other various blocks? We're creating our own buttons block and don't want the user to get it confused with the default one and ...
null's user avatar
  • 101
0 votes
1 answer
420 views

Add a custom code with custom link after add to cart for every product

Let's say I need to add a custom code so visitors can visit the product's external site. That way they can visit the product's site. What I want to achieve is as follows: Add a custom code after the ...
Dev NAAN LLC's user avatar
0 votes
0 answers
205 views

Download button under all images WordPress

I have a WordPress site with a huge number of images and I want to add the ability to download each one. they are contained in posts (one post contains 50-100 images). I tried using the "Files ...
Tsarevich's user avatar
0 votes
0 answers
55 views

How to use <button> tag in wordpress?

I am using a custom form without plugin. I have the following code: <form class="form-contact contact_form" action="/contact_process.php" method="post" id="...
Vizante Ion's user avatar
0 votes
0 answers
208 views

how give a link to an Elementor Pro widget with variable part

I'm trying to give link to one button in Elementor like this (for sharing the post on a social media site): https://eitaa.com/share/url?url={url} by {url} I mean the current post url. but when I put ...
Valiant's user avatar
1 vote
0 answers
196 views

How can I center Gutenberg buttons on mobile?

I have created 3 buttons in a row with Gutenberg. On Desktop I have them all in the same row. I can get that to look okay. The problem is that on mobile it doesn't center the buttons (they all float ...
pressword's user avatar
  • 360
0 votes
1 answer
249 views

Gutenberg button removed on save if its empty

I have buttons with no text in my design which has icons designed in :before of the a tag. It was working fine with the WP 5.5, but now I have updated in live and when I save any page it removes all ...
Jenno Richi Benat's user avatar
0 votes
1 answer
871 views

Adding a Media Button to the WordPress Content Editor

So i'm trying to add a button over the text editor which on pressed lets the user paste in a youtube link which is then covered in shortcode something like this [code]youtube.com[/code]. Following ...
Kevin's user avatar
  • 15
0 votes
0 answers
52 views

Wordpres Tinymce custom button (Gavick guide)

I'm trying to adda custom button to my editor following this guide Can't get it to work. I've added the following code to my funcitons.php add_action('admin_head', 'gavickpro_add_my_tc_button'); ...
Kevin's user avatar
  • 1
4 votes
2 answers
920 views

Gutenberg Button Border Radius Default

Is there a way to set the default border-radius for buttons in Gutenberg using a theme? For example, I would like any time a user adds a button that it defaults to border-radius=10, but still allows ...
tghw's user avatar
  • 143
0 votes
1 answer
909 views

Upload PlugIn Button is missing

I want to upload a zip file but there is no option for uploading, the button is missing..
Anilina's user avatar
-1 votes
2 answers
2k views

Download a file and scroll to bottom div on button click

On button click, I want user to download a file which is an apk file. On that same click, at the same time, I want to scroll to a div. Is it possible to add two actions in a button? Note: I'm using ...
Vivek Nath R's user avatar
1 vote
1 answer
2k views

Custom button block doesn't work

I am a beginner in creating Gutenberg blocks. I want to create a custom block for a button. It should have an input field inside for the button text and the user should be able to choose between two ...
Discostu36's user avatar
-1 votes
2 answers
619 views

Button generate a random URL [closed]

I'm trying to add a Button, which generates a random URL every time it's clicked. I found : <a href="<?php echo ( "http://meet.jit.si/" . rand(1000, 9000) )?>" target=&...
Christian's user avatar
0 votes
2 answers
176 views

How to edit the default icon of Add Media button?

I am trying to replace the default Add Media icon in my Wordpress site. I searched for the same on the web and got this: How to replace default icon on "Add Media" button? This seems to work ...
Sanu_012's user avatar
  • 103
0 votes
1 answer
125 views

How to remap one of the TinyMCE Advanced Editor button to open the wordpress media library?

I am using the TinyMCE advanced editor for my Wordpress site. I want the users in the frontend to be able to upload images using the Wordpress media gallery, and for this purpose I would like to remap ...
Sanu_012's user avatar
  • 103
0 votes
0 answers
398 views

Add multiple custom buttons with custom links after add to cart button for every product

Rather than using product variations, I would like to have buttons for each variation (usually two or three) under the Add to Cart button. These buttons would link to a new page with the specific ...
RJN's user avatar
  • 1
0 votes
1 answer
1k views

Skewed / slanted button within elementor [closed]

I got a request for a client regarding skewed/slanted buttons. I only want the background of the button to be skewed and the text to be normal Button normal: Button hover: Is this possible within ...
Ferwous's user avatar
2 votes
1 answer
1k 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 ...
Matt's user avatar
  • 21
0 votes
0 answers
376 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 ...
Rak Arthus's user avatar
4 votes
1 answer
3k 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 ...
meijiOrO's user avatar
  • 141
5 votes
1 answer
839 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 ...
Aaron's user avatar
  • 51
0 votes
1 answer
1k 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 ...
Peter's user avatar
  • 1
0 votes
0 answers
190 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 ...
Lys's user avatar
  • 1
1 vote
1 answer
961 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 ...
Bunjip's user avatar
  • 371
0 votes
0 answers
138 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 ...
Greg's user avatar
  • 1
0 votes
1 answer
93 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; ...
user2680925's user avatar
0 votes
2 answers
2k 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-...
Helen's user avatar
  • 11
1 vote
2 answers
55 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 (!...
Dominic Bender's user avatar
0 votes
1 answer
393 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 ...
Filipe Rocha's user avatar
0 votes
0 answers
388 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 ...
vsapountzis's user avatar
0 votes
0 answers
26 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 ...
MatJon's user avatar
  • 17
0 votes
2 answers
912 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="...
Brian Bruman's user avatar
2 votes
0 answers
213 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 ...
Anon's user avatar
  • 121
0 votes
0 answers
38 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 ...
saxx's user avatar
  • 1
0 votes
1 answer
737 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-...
alizaibkhan4's user avatar
0 votes
1 answer
1k 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 ...
P i's user avatar
  • 101
0 votes
1 answer
30 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 ...
Daniel Proctor's user avatar
0 votes
0 answers
65 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', '...
Fotic's user avatar
  • 101
0 votes
1 answer
339 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 ...
Arbaz Kazi's user avatar

1
2 3 4 5