Questions tagged [wordpress]

35858 questions
0

votes
0

answer
2

Views

Trying to show a map using the Google Places API, but it is not displayed due to the following error: initMap is not a function

I am trying to load a map on my WordPress apage using the Google Places API. However, it does not display, which is probably due to the following error: 'initMap is not a function'. I found several related threats, but I couldn't find the right answer that applies to my specific case: jQuery(documen...
user3588669
1

votes
2

answer
2.8k

Views

wp_new_user_notification not working

I'm trying to customise the default wordpress user notification using wp_new_user_notification and I have included this in the mu-plugins folder so it gets priority. However, when I create a test user with my email address it sends me this template Username: test To set your password, visit the fo...
Shaun
1

votes
2

answer
2.1k

Views

PHP Warning: session_start(): Cannot start session when headers already sent

Im getting an error in my wp-debug log saying 'PHP Warning: session_start(): Cannot start session when headers already sent in ...hooks.php on line 228'. Here is a code snippet from the file function _action_fw_flash_message_backend_prepare() { if ( ! session_id() ) { session_start(); } } sess...
user2730011
1

votes
1

answer
1.5k

Views

Expected RBRACE and Unexpected token '}'

I am trying to edit a post's CSS in Wordpress theme editor, however, I get two errors. Here is the code: #post-6303 { .post-content { padding: 0 10% 0 10%; } } The second line gets unexpected RBRACE and the last line gets unexpected '}' Any ideas?
JoeEdward
1

votes
1

answer
202

Views

How to get shipping class name not slug woocommerce

global $product; $shippingClass = $product->get_shipping_class(); this returns the slug but I need the name how do I do this?
0

votes
0

answer
3

Views

Mailchimp integration in wordpress website

I have a wordpress website and i want to integrate mailchimp newsletter in it without plugin. I just wanted to know where to put that code in the theme. Please help !function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,'sc...
muaz butt
1

votes
2

answer
1.3k

Views

Font Awesome not showing - Avada theme (Wordpress) - adding fa class

I migrated my wordpress site from a shared host to Digitalocean and everything went well except for the Font Awesome icons. They are showing as blank squares on the live site. I found the issue to be the required 'fa' class for the icons is not showing up. I am using the Avada theme and am brand ne...
shaiden
1

votes
2

answer
98

Views

How do i show a customer name when they login to woocommerce

I was wondering if anyone can help with the above issue, I somehow need the Account link at the top of the page to display the customers name when logged in, but in all honesty know very little in the way of coding php or js. i'm mostly visual changes, layouts and upkeep of products on here and am w...
Tony 'Sh4rk' Willis
1

votes
2

answer
284

Views

Change color and spacing in Woocommerce review stars

Does anyone know what CSS code I could use to change the colour of my review stars and also space them further apart? I have the code below, but it only changes the outline colour .product .star-rating span:before, .product .star-rating:before { color: #FF0000; } What code would I add to do the wh...
Michelle
1

votes
2

answer
37

Views

How to make img src URL as Featured Image

I am trying to make a 'Featured Image' from an img src URL with this theme: https://themezee.com/themes/donovan/
Richie Pecker
1

votes
2

answer
468

Views

How to add FontAwesome icon to submit button in Wordpress using ContactForm7?

I am trying to add fontawesome arrow icon to submit button in Wordpress using ContactForm7. I have this: [submit class:button 'Send a message '] in css: .wpcf7-submit:before { content: '\f30b'; font-family: 'Font Awesome 5 Free' !important; } And it doesnt work, any ideas?
mat
1

votes
2

answer
32

Views

How to update user address with wp_update_user [duplicate]

This question already has an answer here: Setting customer user data with CRUD object in Woocommerce 2 answers I have create my own custom sign up form on my website. My website is a WordPress Custom theme with WooCommerce. I am trying to update the users address using wp_update_user but according...
Reece
1

votes
1

answer
52

Views

Change wc_cart_totals_shipping_method_label function in Woocommerce

Inside Woocommerce plugin on the includes subfolder, there's a file wc-cart-functions.php. I would like to change the function wc_cart_totals_shipping_method_label(), but I am not allowed to copy the function to my theme's functions.php. I believe I have to use a custom action/filter to change this...
Danish Muneer
1

votes
2

answer
60

Views

Query Custom Post Types & Order By Custom Post Type

Is it possible to query multiple CPTs and then order in a preset way? For example, I have 2 CPTs & 1 being the WP default 'post' and would like the loop to return 6 results, ordering as below. CPT-1 CPT-2 POST CPT-1 CPT-2 POST Is this possible without splitting the loop? I did have a quick search,...
user1235285
1

votes
1

answer
23

Views

Store post ID and take it on next page in wordpress

I have a page which contain job details. At the bottom there is a button Apply which goes to another page with the form for apply. This is the button on the page
Ivanov
1

votes
1

answer
32

Views

Order by meta_value in SQL request

I want to order my result by the number of likes. I need to use a sql request instead of a new query args. Inside a regular query, I should use 'orderby' => 'meta_value_num' but because it is a sql request I use ORDER BY {$wpdb->prefix}postmeta.meta_value DESC; This is what I tried: $test = $wpdb->...
Youstart
1

votes
1

answer
4.3k

Views

WordPress WYSIWYG Editor Font

I'm looking for the stylesheet that contains the font style CSS for the WYSIWYG editor in WordPress' admin area. Currently, in Visual editing mode, the font displays as Georgia. However, the body copy in the front end if Helvetica. My client is getting 'confused' when they see the Georgia, and would...
codeline
-1

votes
1

answer
16

Views

Set localhost name to custom name inside for local wordpress setup

I want to put a live wordpress site in my local environment, let's say for example the site url is www.test.com , this opens the page, so when I normally set up a local environment in /var/www/html (using lamp btw) i create a directory let's say test (/var/www/html/test) and update in the database t...
dreid
0

votes
0

answer
3

Views

How can I capture Memberpress user info after signup

I'm currently working on a website where users can purchase subscriptions using memberpress, I want to capture the user data after the signup process is completed and the payment transaction is also completed as well. If I add the member through dashboard manually I'm able to catch the user info as...
RBD
0

votes
0

answer
23

Views

how to serialize two different form in jquery after validation

i have a form1 with email and contact number after validate it move on to next form2.There is dropdown with 3 items , two text field and one textarea field.User must fill all the items and click submit.The data from1 and form2 should serialize or merge as a single message, it send as a mail.
vinodh kumar
0

votes
0

answer
8

Views

ho to fix "paypal currency converter does not work properly

I am creating eCommerce website but at the last, I have problems related to a Paypal currency converter. In my website main currency is R, we are selling magazine, when we select single copy of the magazine and pay with Paypal then Paypal currency converter is working good but when user select subsc...
andre parker
0

votes
0

answer
5

Views

Plugin for authorization in header for wordpress api

I am creating WordPress api and i am getting error in my server { 'code': 'rest_cannot_create', 'message': 'Sorry, you are not allowed to create posts as this user.', 'data': { 'status': 401 } } but in my local machine its working fine . which plugin is used for authentication in WordPress api? i ha...
Emmie Andrew
0

votes
0

answer
5

Views

Docker Apache HTTPD with Certbot

I'm attempting to run Wordpress on Docker along with MySQL. Here are the contents of the docker-compose.yaml file version: '3.3' services: db: image: mysql:5.7 volumes: - blog-vol:/var/lib/mysql restart: always environment: MYSQL_ROOT_PASSWORD: secretpass MYSQL_DATABASE: wordpress MYSQL_USER: wpuser...
user6123723
1

votes
1

answer
21

Views

how to removed a single value when click the remove options?

its submit the values ## //echo ''; ##delete options delete ## $s_img = explode(',', $single_img); for ( $i = 0; $i < count( $s_img ); $i++ ) { echo ''; echo ''; } ##delete image Delete Image javascript document body and one click remove id## $(document.body).on('click', '.sarea .delete', functi...
ah jony
0

votes
0

answer
3

Views

Place wishlist and basket icons to top-bar of shop elite theme

I'm developing a site with wordpress cms, and i use shop elite theme.Shop elite theme places wish list icon and basket icon to main navigation menu.i want to remove these icons for main menu and i want to place at the top bar menu of this theme, but i want to place these icons with programmatical...
tomy_g
0

votes
0

answer
5

Views

Gutenberg - Looking to inject block data into wp_head on save

I have created a code editor block where the user can insert CSS styles. Rather than having these save to the post_content and show up in the body, I would like for them to be injected into the head. I have done this in the past using PHP hooks but cant seem to figure out how to translate that to...
tbuz3
1

votes
1

answer
2.5k

Views

Get all posts beginning with letter A

How can i get all poasts beginning with the letter A (in the post_title)? My idea was to use regex but this code dont work. $my_custom_query_args = array( 'cat' => '1', 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 25, 'offset'...
Peter
1

votes
3

answer
2.4k

Views

Check if a User Has a Gravatar [WordPress]

Thanks Rene Korss for helping to resolve the issue almost and be there every time to reply in discussion. I want to check if the user who has posted comment is having an avatar or not? If user has avatar (means having gravatar account) show gravatar avatar else show image which I have defined in el...
Navnish Bhardwaj
1

votes
1

answer
1.4k

Views

Adding Custom Js to Wordpress Theme

I have this short javascript I want to add to a client's wordpress. Im not really savvy on how wordpress operates or where to add my code. I've read some articles online but kinda confused on how to go about this. I added what I read is needed to register the script and to tell wordpress to use Jque...
Ricki Moore
0

votes
2

answer
23

Views

How to make menu items appear on mouseover with javascript

I am developing a website with a mobile menu where three underlying elements should appear when hovering over another menu item (not a parent!) I have tried css but that was not possible without altering the html structure, so I left that for now. I also tried onclick function but the mobile menu di...
Kees
0

votes
0

answer
6

Views

Magnific Popup Wordpress Audio Shortcode Keeps Playing after Close

I have created an inline popup for my custom Wordpress theme using Magnific Popup and the wp_audio_shortcode() function. It works beautifully, except that the audio keeps playing when I close the popup. (Embedded video stops exactly as expected, which is great!) I read this post magnific-popup, how...
NYCjbd
1

votes
2

answer
1.2k

Views

send value of form to hidden field of gravity form

I have made a custom form which contains checkbox of item. If users check the checkbox then the total amount is shown and also a gravity form for name, email, address and message. I want to receive an email if users fill up the custom form and gravity form which contains the item that are checked wi...
Sus Hill
1

votes
2

answer
1k

Views

How to set css for persian and english text in <p> tag?

How to set css for persian and english text in one ? All my text are in p tag. Direction for persian must be rtl and english must be ltr. html: این یک تست است. Test{ required int a = 1; } css: p :not([dir=ltr]){ direction: rtl; text-align: justify; } What is should I do? I just can cha...
ParisaN
1

votes
3

answer
3k

Views

Create a git repository on server side

I have a big problem and I can't understand this topic. I have a server with a website. I created a repository there with git init. Than I made a git add * to add all files from my server to the repository. Than I made a commit to commit all files to the repository. Than I cloned it with git clone s...
ItsOdi
0

votes
0

answer
9

Views

Get the right url characters when filtering

I made a little search form with a filter in WordPress with Gravity forms and it is working but i dont get one thing working and that is that when somebody select the check in, check out date and guests and you use a filter that the guest stays on the amount you selected (visual). I notice that its...
Maanstraat
1

votes
1

answer
649

Views

Changing structure of WooCommerce shortcode

I have installed WooCommerce on my page, and I'm displaying features posts using shortcode inside of a php file.
BrS
1

votes
3

answer
2.5k

Views

Woocommerce : Remove required field from form-edit-account.php

I tried to remove firstname , lastname and email fields from form-edit-account.php in woocommerce but when I submit form I got some errors from woocommerce form validation! how can I remove validation of this fields? i searching to much and check woocommerce hooks document , but I can't find anythin...
M.D
0

votes
0

answer
2

Views

P tags not rendering in WordPress/WooCommerce

Crazy as this sounds, instead of trying to remove WYSIWYG formatting code, I'm trying to get it to work. I have: echo wpautop($product->get_description()); in my single-product page (well, buried in my functions.php but gets into a custom action on that page). Which gets the right text, but the...
Randy Hall
1

votes
2

answer
1.8k

Views

Get variations IDs from a variable product in Woocommerce 3

It is necessary to get the value from the array with the key [0], but the array is in the object. How can I put it in a variable? WC_Product_Variable Object ( [children:protected] => Array ( [0] => 344 [1] => 345 ) [visible_children:protected] => Array ( [0] => 344 [1] => 345 )
Aleks Pvn
1

votes
1

answer
48

Views

Template Files missing in wordpress theme folder

Im using tyche theme for e-commerce.i have created template files for pages.like profile creating page. Template file:
Hari Rahman

View additional questions