Questions tagged [buttons]

The tag has no usage guidance.

0
votes
1answer
20 views

How to add contact seller button in product page

can someone help me with this issue ? I want to add a button in my product page and name it (contact seller) and I want to link this button to the seller page. how can I do it ? here is a screenshot ...
-2
votes
0answers
12 views

How to Make “Login to see prices” Text as a Button?

I'm customizing my first site and for logged out users I want prices to be hiden and instead to be shown "Login to see prices". This guide solved it but the message "Login to see prices" is shown as ...
-1
votes
1answer
12 views

How to display a submenu as a popup when clicking a button?

I have a submenu that contains several items. The submenu currently displays when the user hovers over a main menu item in the top menu bar. I want to place a button in the middle of the page that, ...
0
votes
1answer
21 views

AJAX button action in foreach

I have loop foreach, where i write data and buttons. This code work only from one button, first in loop and the rest does not work. JS: jQuery(document).ready(function($) { jQuery('#...
0
votes
0answers
24 views

Default style of a button in WordPress Gutenberg

I'm trying to change the default style of a button with the following code: <InnerBlocks template={ [ [ 'core/button', { text: __( 'Add text', 'xf' ), className: 'is-...
0
votes
0answers
20 views

Passing URL parameters to WordPress buttons

I'm beginner with programming and web development. I have a WordPress website (http://www.example.com). My post link is http://www.example.com/mypost/, so when I click on a button (assuming demo 1 ...
0
votes
0answers
16 views

Button bulk action

Hi! When i press myAction button i want to trigger an action from bulk drop down.Can someone help me? Thanks in advance!
0
votes
1answer
124 views

AJAX on Front-End Button Click not working - Custom Plugin

I'm trying to make a custom plugin, and something that should be simple is giving me a huge headache. I followed the Wordpress Codex example exactly and have looked at countless similar posts but ...
0
votes
1answer
24 views

Menu toggle bar works only on some pages in WordPress

I'm using a custom WordPress theme extended from Twenty Sixteen for this website. It is using Bootstrap (I had to migrate a static Bootstrap website to WordPress). If you open the website on mobile, ...
1
vote
2answers
108 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
26 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
34 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
23 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
21 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
30 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
46 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
17 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
5k 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
431 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
938 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
240 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
34 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-...
1
vote
1answer
94 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
229 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
76 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
1answer
234 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 ...
1
vote
0answers
48 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
1answer
34 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
447 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
80 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
25 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
51 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
28 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
19 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
633 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
16k 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
294 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
430 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
2k 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
84 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
365 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
38 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
615 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
597 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
66 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
137 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
75 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
592 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
56 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