Questions tagged [buttons]
The buttons tag has no usage guidance.
216
questions
0
votes
0
answers
19
views
why add to cart button suddenly dissapeard
i have this website https://biossaf-dz.org/ ,
it's using organic astra theme , it contains the add to cart button by default , i was trying to add the buy now button under the add to cart button , now ...
0
votes
0
answers
120
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 ...
1
vote
0
answers
23
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 ...
0
votes
1
answer
44
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/...
0
votes
0
answers
69
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 ...
-1
votes
1
answer
132
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=&...
1
vote
0
answers
35
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 ...
0
votes
1
answer
528
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 {
...
0
votes
1
answer
72
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 () {
...
0
votes
1
answer
183
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 ...
0
votes
1
answer
229
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 ...
0
votes
1
answer
459
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 ...
0
votes
0
answers
237
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 ...
0
votes
0
answers
60
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="...
0
votes
0
answers
218
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 ...
1
vote
0
answers
223
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 ...
0
votes
1
answer
287
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 ...
0
votes
1
answer
926
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 ...
0
votes
0
answers
55
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');
...
4
votes
2
answers
1k
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 ...
0
votes
1
answer
981
views
Upload PlugIn Button is missing
I want to upload a zip file but there is no option for uploading, the button is missing..
-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 ...
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 ...
-1
votes
2
answers
669
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=&...
0
votes
2
answers
185
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 ...
0
votes
1
answer
128
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 ...
0
votes
0
answers
437
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 ...
0
votes
1
answer
2k
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 ...
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 ...
0
votes
0
answers
385
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 ...
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 ...
5
votes
1
answer
848
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
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 ...
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 ...
1
vote
1
answer
968
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
0
answers
140
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
1
answer
101
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
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-...
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 (!...
0
votes
1
answer
409
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
0
answers
421
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
0
answers
28
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
2
answers
956
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
0
answers
216
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
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 ...
0
votes
1
answer
762
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
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 ...
0
votes
1
answer
44
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
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',
'...
0
votes
1
answer
376
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 ...