Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [buttons]

The tag has no usage guidance.

0
votes
1answer
17 views

Disable or Remove Place Order from Checkout PAge [on hold]

IS there a way to completely remove the place order button from the checkout page?
1
vote
2answers
44 views

Change the text of the publish button to Save

I am trying to change the text of the publish button to save function change_publish_button( $translation, $text ) { if ( $text == 'Publish' ) return 'Save'; return $translation; } ...
0
votes
2answers
25 views

How do I stop my form from adding code to current page URL instead of re-directing. Been stuck for days

I am currently setting up a WordPress website and everything is going fine except for one issue I simply can't figure out. So basically I have a booking form on my website that allows people to ...
0
votes
0answers
22 views

How to add excerpt and read more button to category archive page

I am finding it hard to add excerpt and read more button to my category archive page
0
votes
1answer
18 views

Why are my button images blurry on mobile screens?

I have a few custom buttons I've inserted with php throughout my wordpress site. They are crisp resolution images (either gif or png), but when viewing it on my iphone screen, they're blurry. I ...
0
votes
0answers
20 views

How to execute certain code on back-end button press?

I have a small and growing collection of code fragments for things that should only be executed once. For example, a one-time pass that adds information to every taxonomy term. As of now, I have been ...
0
votes
1answer
28 views

Edit value=“” of a button in child theme

I am not really a developer, just can do bits and bobs and I am looking to change button text in a plugin but through a child theme. What I've done is created the plugin folder structure as in ...
0
votes
0answers
26 views

Wordpress Toggle Menu has stopped working

I am using the twentyfifteen theme on my wordpress site. When you access the site on mobile or resize on your browser so that the page height > width, a hamburger icon appears on the upper right. I ...
0
votes
1answer
14 views

Add Cancel Button to a Custom Meta Box

Any ideas how I could add a cancel button, like the default one in the Publish meta box, to a custom meta box? The standard code is <a href="#visibility" class="cancel-post-visibility hide-if-no-...
0
votes
2answers
2k views

Add “add to cart” button to every product on the category's page

I need to place Add to cart button at every product on the page of certain category as shown below How can I achive this? Link to subject page oma-fintess.com.ua
-2
votes
1answer
290 views

Woocommerce - Remove 'Buy Product' Button from shop page [closed]

I have an affiliate website displaying product images. On the store, category & attribute pages I would like to remove the "Buy product" button. I have found a lot of results for removing the "...
0
votes
1answer
552 views

How to insert a Button or custom text on twentyseventeen header

Is it possible to add a button, svg and extra text paragraph to header image on the twentyseventeen theme? This is an example of what look I'm trying to achieve https://github.com/ppass5/...
0
votes
1answer
155 views

<button> element not working in Safari [closed]

The Show Me button on my homepage does not work in Safari (on both iPhone and mac). Can someone take a look and give me some ideas to try. The homepage is this.
1
vote
0answers
33 views

add media button is not working

Since last week I am experiencing that I am unable to add media to a portfolio item in the Parameters and Options field. When I click the button, nothing happens. When installing the theme on a sub-...
0
votes
0answers
340 views

Adding gif loader to Add to cart button WooCommerce

I have an add to cart button on product archives page with the following code <div class="add-to-cart-button"> <?php // CODE $ajax_class = $product->supports( 'ajax_add_to_cart' ) ...
1
vote
1answer
40 views

CSS style button For WP Login Function in page template

I am using Avada theme. I have a page template created where I placed the WP Login function: <?php wp_login_form(); ?> Here is a live page: https://webariaserverfour.com/content-restricted/?...
0
votes
0answers
20 views

When I click update, the changes are not saved and I am taken to the posts page on the backend

Site was working fine. Presented to client on Friday who made final change requests. Now on Tuesday when I want make changes to pages but the update button does not function as it should. I have ...
0
votes
0answers
148 views

Create Button for Shortcode in Text Editor

I'm trying to figure out how to create a button in the WP Text Editor and TinyMCE Editor to trigger the following shortcode. It's a shortcode to create columns (connected with CSS Grid Foundation), ...
0
votes
1answer
51 views

button to toggle css styling / div visibility?

I'm trying to determine if it's possible to add a button that toggles css styling. I thought of starting with something like this: add_action ('woocommerce_before_cart' , 'cart_multi_step_buttons' , ...
0
votes
0answers
458 views

how to move add to cart button to quantity button in single product page?

please help me guys! i am wondering how to move 'add to cart' button next to 'quantity button' in single product page. I am not familiar with php codes. the default value of add to cart button is not ...
0
votes
1answer
185 views

Woocommerce - Remove 'Buy Product' Button + Make Product Thumbnails Clickable

I want to solve the following tasks in my Woocommerce website: 1) I need to remove the 'Buy Product' button from my Woocommerce catalog: I could introduce a 'display: none' in my CSS file for that ...
0
votes
0answers
193 views

TwentySeventeen video header mobile button unresponsive

I tried to make the header video in the TwentySeventeen theme available for mobile. The video showed up after adding minHeight and minWidth to the custom-header.php file: function ...
0
votes
0answers
29 views

Override admin submit_button() functionality

I would like to be able to override the submit_button() functionality, so that I can display it as a <button></button> element. Is that possible? I saw that the source is in wp-admin/...
0
votes
0answers
15 views

Add different set of Call To Action Button to posts based on its category

I have hundreds of posts which are grouped in different categories like Data Science, Data Analytics,..etc. I need to add CTA buttons between the posts which redirects the user to page based on its ...
0
votes
1answer
26 views

creating different style CTA button in the menu

I'm wondering if there is a possible way to create two different CTA button style in the same menu in WordPress I've tried something like that by creating two menu href and add two different [btn] ...
1
vote
1answer
401 views

Change “add to cart” button color based on Woocommerce product category [closed]

I am trying to change the colour of all the "Add To Cart" buttons on the Products/Archive page, based on the category which the product is in. I have a filter already applied on the products/archive ...
0
votes
1answer
47 views

add share buttons above my posts without plugins

I'm trying to install share buttons above the articles of my site and I found this piece of code. Starting with, my problem is that the code is displayed at the end of the articles. I would rather ...
0
votes
0answers
19 views

when clicking update after page editing it returns this page not working in wordpress

wordpress page update button not working correctlyl,it returns page not working other pages of my wordpress site also doing the same.. Give some ideas you know.. Thanks in advance.
0
votes
1answer
37 views

How to Add a Read-only Textbox With Text in it That Has a Button to Copy it?

I've seen this kind of thing on countless sites for different things. I'm sorry if I don't know the name of it, but here is an example of it: See where they have the textbox and it has their address ...
0
votes
1answer
27 views

How to add a new button on post

I would like to add a button next to the edit button on each article, with a link to a specific page. This button is for translation purpose. It should redirect the user to the translation page of ...
1
vote
0answers
18 views

Add multisite switch button. Click to switch to other page in same admin area

im new to this, so can anybody tell me how to get the active admin_url() of the page im currently on in a multisite wordpress backend. I want to implement a button that goes from one backend to ...
1
vote
1answer
535 views

Redirect customer to login if not logged in when proceeding to checkout

I'm trying to redirect customers, who are not logged in, when they push the "proceed to checkout button" on my cart page but nothing happens. Here's my code: function custom_redirect_checkout(){ if (...
3
votes
1answer
12k views

Hook and send Woocommerce data after click Place Order button

I'm finding the way to add a hook to my woo commerce check out page (http://localhost/checkout) I'm tend to send cart items and billing address, user information to another page such as http://...
-1
votes
1answer
259 views

Add new MCE button for toggle specific cell background color

I'm using tables as a calendar for free dates in my schedule. You can see free dates here. http://www.zachrannastanicelipec.cz/smysly-terminy/ Now I'm using the Table->Cell->Cell Properties->...
0
votes
1answer
288 views

Cannot access $wpdb, comes back NULL

I'm developing a rather simple plugin using the Wordpress Plugin Boilerplate. Utilizing AJAX, I set up a action based upon a button press that's supposed to remove an item from the custom database ...
0
votes
1answer
1k views

how to change the “return to shop” button text? [closed]

how to change the “return to shop” button text? i can not find way to change it on woocommerce. Thanks
0
votes
1answer
60 views

how to send two forms with one click (script ninjaforms id)

i need the user to send 2 forms with one button-click, so i'm basically trying to merge two buttons into a third one, in order to pass data along, but don't know what i'm doing wrong here. i've been ...
1
vote
0answers
320 views

Add buttons to the new TinyMCE WP Editor. Javascript API

I've added more buttons to a TinyMCE instance using the new Javascript API available since WordPress version 4.8. As you can see in the following code block, I could add more buttons but I'm not ...
0
votes
1answer
36 views

Show only content in page after action click in Wordpress admin

I have an custom post with actions and I like to show only the content with I clicked on this action button. This is the action registered when I clicked on an custom button action: add_action('...
-1
votes
1answer
504 views

Back button to previous page and breadcrumbs

I must add back button only on one page and only when I get to this page from one specific. If I on B Page and go to A Page -> display button od A Page but if I on C Page and go to A Page - button ...
0
votes
2answers
508 views

Tried everything but Facebook share button won't load the post thumbnail

Before you say "search google" or "look on this site for similar answers", let me say, I already googled for my problem and read questions like mine. I already tried everything that I found about to ...
0
votes
1answer
50 views

WordPress comment submit button substitutes/options

$args = array( 'id_form' => 'commentform', 'class_form' => 'comment-form theme-comment-action', 'id_submit' => 'submit'...
0
votes
1answer
107 views

How to dynamically add the the input text field in widget?

I have made a widget with input fields. I want to make an add more button to dynamically add the input field the first input field is the default. How can I make it is it possible to do that? Here is ...
0
votes
1answer
68 views

Creating a simple button inside of a widget

So I'm wanting to add a couple of buttons in a footer text widget. It should be a really easy task by just creating a class inside of a link, and then styling it with CSS, like this: <a href="/...
0
votes
1answer
516 views

Divi theme: change overlay color from default blue to back [closed]

On those pages I am unable to correct the the color of the button overlay. As you can see, they are black now but when you hover over, the color is changed to un ugly blue. I set the accent color to ...
1
vote
2answers
54 views

How can I link a file in admin with a button?

Let suppose I have made a file in my theme folder (with the name c.php) and I want it to link it with a custom button (that I have made in post/page) in admin using GET action. How can I achieve that
1
vote
0answers
52 views

How can I implement shortcode on click event

I am a newbie in WordPress not totally but 6 months. So I am finding the new thing and practicing on WordPress. I want to know that how can I implement shortcode on click event means I have a ...
0
votes
1answer
81 views

Auto-generated excerpt with shortcode and read more button/text link

From this thread: the_excerpt and shortcodes I pulled this snippet of code from @Programmer Dan that is working well to include executed shortcodes in autogenerated excerpts add_filter('...
1
vote
1answer
253 views

Customizer AJAX using buttons

I have added a new custom button to the wordpress customizer, my goal is to create a button inside the the customizer which then fires a specific function in another .php file. I have two problems, ...
1
vote
1answer
2k views

Button not refreshing page

I'm creating a WooCommerce site where the archive page shows products related to the city the user is interested in "London" or "Manchester. On the /shop page of the website I've created a banner ...