Category "wordpress"

How to get page title in wordpress

Well, I have tried <?php echo get_the_title('About Us');?> But the code is not working. I am using wordpress 4.1. This should work but it isn't. Has wor

How to use ajax-load-more Wordpress plugin for search.php?

i am using Ajax-Load-More wordpress plugin for my web site but i don't understand how to use for search result in search.php there is no code example for searc

Custom hidden field on WooCommerce checkout not saving to user meta issue

I cannot figure out what i am missing here. I am creating a hidden field on the checkout page, that contains a value after a customer's choice. This part is wor

Docker Wordpress tar: <file> Cannot change ownership to uid 33, gid 33: Operation not permitted

I have created a docker-compose file for local development using Wordpress, and I've finally got NFS working (normal volume mount was too slow, because of Docke

Display the default discounted price and percentage on Woocommerce products

I am trying to display the percentage discount of a product on Woocommerce. The solution originally provided (linked below) works, however the discount percenta

Edit product hook WooCommerce

On my product template, I execute this action : <?php /** * woocommerce_single_product_summary hook. * * @hooked woocommerce_template_single

how to change wordpress' wp-login.php font to a custom font-family?

I have uploaded a custom font to my wordpress site and changed the font family everywhere. However, the wp-login.php page's font will not change. I have tried e

Unable to send a Base 64 image to Woocommerce /product API with JS

I am actually trying to make a 3D product configurator with verge 3D and have to create new WooCommerce products for every specific product configuration. Every

WordPress contact 7 with negative response

I have created a website using WordPress. I use a GoDaddy hosting and a plugin WP-Mail-SMTP, which helps me to configure SMTP. I have disable all cache plugins.

WordPress - Add sync defer tag in wp_enqueue_style CSS Files

I need to add sync or defer attribute in Stylesheets CSS file which are included by using wp_enqueue_style. My Code is below. function my_scripts() { wp_enq

Why is my WordPress visual editor not working?

I have website running WordPress 4.6.2 and I can't use the visual editor right now, only the text editor. When I open the browser console it show various errors

Elementor + Woocommerce Checkout Page is saving customer info in the checkout forms. How do I fix this?

I have updated all of my Wordpress plugins and I'm using the Hello Elementor theme as recommended. In Chrome all of the information is saved in the forms, and i

How to setup AWS cloudfront with lightsail for WordPress?

How to setup AWS cloudfront with lightsail for WordPress? (on a subdomain) I'm using Route 53 for all DNS management. I'm using a static IP from lightsail, 3.1

disable spam filter contact form 7

I have a contact form on a website I'm working on. We're using Contact Form 7 and I've run into a snag. They use the form to register campers and a single user

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 a

ignore the selected size for featured image

I set a size using the code below : add_image_size( '350x350', 350, 350, false ); then in the elementor widget, I selected the featured image and the image siz

JavaScript can't select DOM element by ID in WordPress

Is there a way for JavaScript to interact with the DOM on a WordPress page. Or is interaction only possible through jQuery? Button element in header.php: <di

Add a text next to stock quantity if it is less than 10 in Woocommerce single product

I found this posted as a comment on another thread but I don't know what I'm supposed to do with it: if($product->get_stock_quantity() <10){echo 'Limit

How to validate Envato Purchase Code in PHP

I'm working on Envato API to verify Purchase Code I used plugin sample code from GitHub https://github.com/codehaiku/Envato-Purchase-Code-Verifier here I added

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

We have a Nginx listening on ports 80 and 443 and serving our main website. Let's say its name is demosite.com. It is running on AWS EC2 instance, and traffic